Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 25 of 142) sorted by relevance

123456

/third_party/e2fsprogs/lib/e2p/
Dljs.c72 size = (ntohl(jsb->s_blocksize) / 1024) * ntohl(jsb->s_maxlen); in e2p_list_journal_super()
77 nr_users = (unsigned int) ntohl(jsb->s_nr_users); in e2p_list_journal_super()
78 if (exp_block_size != (int) ntohl(jsb->s_blocksize)) in e2p_list_journal_super()
80 (unsigned int)ntohl(jsb->s_blocksize)); in e2p_list_journal_super()
82 (unsigned int)ntohl(jsb->s_maxlen)); in e2p_list_journal_super()
83 if (ntohl(jsb->s_first) != 1) in e2p_list_journal_super()
85 (unsigned int)ntohl(jsb->s_first)); in e2p_list_journal_super()
88 (unsigned int)ntohl(jsb->s_sequence), in e2p_list_journal_super()
89 (unsigned int)ntohl(jsb->s_start)); in e2p_list_journal_super()
112 (int) ntohl(jsb->s_errno)); in e2p_list_journal_super()
/third_party/NuttX/fs/nfs/
Dxdr_subs.h74 #define fxdr_unsigned(t, v) ((t)ntohl(v))
79 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
81 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
97 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
98 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
102 (t)->nfsv3_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
103 (t)->nfsv3_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
119 ((((uint64_t)ntohl(((uint32_t *)(f))[0])) << 32) | \
120 (uint64_t)(ntohl(((uint32_t *)(f))[1])))
/third_party/uboot/u-boot-2020.01/drivers/net/mscc_eswitch/
Dmscc_xfer.c15 #define XTR_EOF_0 ntohl(0x80000000u)
16 #define XTR_EOF_1 ntohl(0x80000001u)
17 #define XTR_EOF_2 ntohl(0x80000002u)
18 #define XTR_EOF_3 ntohl(0x80000003u)
19 #define XTR_PRUNED ntohl(0x80000004u)
20 #define XTR_ABORT ntohl(0x80000005u)
21 #define XTR_ESCAPE ntohl(0x80000006u)
22 #define XTR_NOT_READY ntohl(0x80000007u)
78 cmp = ntohl(val); in mscc_recv()
/third_party/uboot/u-boot-2020.01/net/
Dnfs.c440 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in rpc_lookup_reply()
442 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in rpc_lookup_reply()
452 nfs_server_mount_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply()
455 nfs_server_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply()
470 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_mount_reply()
472 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_mount_reply()
496 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_umountall_reply()
498 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_umountall_reply()
520 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_lookup_reply()
522 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_lookup_reply()
[all …]
/third_party/libnl/lib/netfilter/
Dlog_msg.c86 nfnl_log_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
100 nfnl_log_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
104 nfnl_log_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
108 nfnl_log_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
112 nfnl_log_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
137 nfnl_log_msg_set_uid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
141 nfnl_log_msg_set_gid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
145 nfnl_log_msg_set_seq(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
149 nfnl_log_msg_set_seq_global(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
Dqueue_msg.c78 nfnl_queue_msg_set_packetid(msg, ntohl(hdr->packet_id)); in nfnlmsg_queue_msg_parse()
86 nfnl_queue_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
100 nfnl_queue_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
104 nfnl_queue_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
108 nfnl_queue_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
112 nfnl_queue_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
174 ntohl(nfnl_queue_msg_get_mark(msg))) < 0) in __nfnl_queue_msg_build_verdict()
Dct.c274 ntohl(nla_get_u32(tb[CTA_COUNTERS32_PACKETS]))); in ct_parse_counters()
280 ntohl(nla_get_u32(tb[CTA_COUNTERS32_BYTES]))); in ct_parse_counters()
355 nfnl_ct_set_status(ct, ntohl(nla_get_u32(tb[CTA_STATUS]))); in nfnlmsg_ct_parse()
357 nfnl_ct_set_timeout(ct, ntohl(nla_get_u32(tb[CTA_TIMEOUT]))); in nfnlmsg_ct_parse()
359 nfnl_ct_set_mark(ct, ntohl(nla_get_u32(tb[CTA_MARK]))); in nfnlmsg_ct_parse()
361 nfnl_ct_set_use(ct, ntohl(nla_get_u32(tb[CTA_USE]))); in nfnlmsg_ct_parse()
363 nfnl_ct_set_id(ct, ntohl(nla_get_u32(tb[CTA_ID]))); in nfnlmsg_ct_parse()
/third_party/uboot/u-boot-2020.01/product/hiupdate/
Dauto_update.c155 if (nbytes != (sizeof(*hdr) + ntohl(hdr->ih_size))) { in au_check_cksum_valid()
160 checksum = ntohl(hdr->ih_dcrc); in au_check_cksum_valid()
162 ntohl(hdr->ih_size)) != checksum) { in au_check_cksum_valid()
183 printf("\nmagic %#x %#x\n", ntohl(hdr->ih_magic), IH_MAGIC); in au_check_header_valid()
185 printf("size %#x %#lx\n", ntohl(hdr->ih_size), nbytes); in au_check_header_valid()
192 if (ntohl(hdr->ih_magic) != IH_MAGIC || hdr->ih_arch != IH_ARCH_ARM) { in au_check_header_valid()
197 checksum = ntohl(hdr->ih_hcrc); in au_check_header_valid()
223 checksum = ntohl(hdr->ih_size); in au_check_header_valid()
235 sprintf(env, "%lx", (unsigned long)ntohl(hdr->ih_time)); in au_check_header_valid()
357 write_len = sizeof(*hdr) + ntohl(hdr->ih_size); in au_do_update()
[all …]
/third_party/musl/porting/linux/user/src/network/
Dinet_legacy.c7 return ntohl(inet_addr(p)); in inet_network()
20 uint32_t h = ntohl(in.s_addr); in inet_lnaof()
28 uint32_t h = ntohl(in.s_addr); in inet_netof()
/third_party/musl/porting/liteos_a/user/src/network/
Dinet_legacy.c7 return ntohl(inet_addr(p)); in inet_network()
20 uint32_t h = ntohl(in.s_addr); in inet_lnaof()
28 uint32_t h = ntohl(in.s_addr); in inet_netof()
/third_party/musl/libc-test/src/api/
Darpa_inet.c26 #ifdef ntohl in f()
27 I(uint32_t, ntohl(0LL)) in f()
29 {uint32_t(*p)(uint32_t) = ntohl;} in f()
/third_party/pulseaudio/src/pulsecore/
Dpstream.c776 …l = ntohl(p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH]) - (p->write.index - PA_PSTREAM_DESCRI… in do_write()
806 …if (p->write.index >= PA_PSTREAM_DESCRIPTOR_SIZE + ntohl(p->write.descriptor[PA_PSTREAM_DESCRIPTOR… in do_write()
846 (((uint64_t) ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI])) << 32) | in memblock_complete()
847 (((uint64_t) ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_LO])))); in memblock_complete()
851 ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL]), in memblock_complete()
853 ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS]) & PA_FLAG_SEEKMASK, in memblock_complete()
880 …l = ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH]) - (re->index - PA_PSTREAM_DESCRIPTOR_SIZE); in do_read()
924 flags = ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS]); in do_read()
938 … pa_memexport_process_release(p->export, ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI])); in do_read()
949 … pa_memimport_process_revoke(p->import, ntohl(re->descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI])); in do_read()
[all …]
Dipacl.c100 if (e.bits < 32 && (uint32_t) (ntohl(e.address_ipv4.s_addr) << e.bits) != 0) in pa_ip_acl_new()
203 (ntohl(sai->sin_addr.s_addr ^ e->address_ipv4.s_addr) >> (32 - e->bits)) == 0) in pa_ip_acl_check()
/third_party/uboot/u-boot-2020.01/cmd/
Dtsi148.c204 i, ntohl(__raw_readl(&dev->uregs->outbound[i].otat))); in tsi148_pci_slave_window()
206 i, ntohl(__raw_readl(&dev->uregs->outbound[i].otsal))); in tsi148_pci_slave_window()
208 i, ntohl(__raw_readl(&dev->uregs->outbound[i].oteal))); in tsi148_pci_slave_window()
210 i, ntohl(__raw_readl(&dev->uregs->outbound[i].otofl))); in tsi148_pci_slave_window()
297 i, ntohl(__raw_readl(&dev->uregs->inbound[i].itat))); in tsi148_vme_slave_window()
299 i, ntohl(__raw_readl(&dev->uregs->inbound[i].itsal))); in tsi148_vme_slave_window()
301 i, ntohl(__raw_readl(&dev->uregs->inbound[i].iteal))); in tsi148_vme_slave_window()
303 i, ntohl(__raw_readl(&dev->uregs->inbound[i].itofl))); in tsi148_vme_slave_window()
/third_party/ltp/testcases/network/lib6/
Dasapi_01.c180 expected += ntohl(tpt->tp_dlen); in recvtprot()
189 expected += ntohl(tpt->tp_dlen); in recvtprot()
257 pttp->tp_offset = ntohl(offset); in client()
258 pttp->tp_dlen = ntohl(cstab[i].cs_dlen); in client()
259 pttp->tp_seq = ntohl(++seq); in client()
309 pend = rpbuf + sizeof(struct tprot) + ntohl(prtp->tp_dlen); in client()
/third_party/uboot/u-boot-2020.01/scripts/basic/
Dfixdep.c118 #define INT_CONF ntohl(0x434f4e46)
119 #define INT_ONFI ntohl(0x4f4e4649)
120 #define INT_NFIG ntohl(0x4e464947)
121 #define INT_FIG_ ntohl(0x4649475f)
/third_party/e2fsprogs/debugfs/
Djournal.c566 switch (ntohl(jsb->s_header.h_blocktype)) { in ext2fs_journal_load()
578 if (ntohl(jsb->s_nr_users) > 1 && in ext2fs_journal_load()
581 if (ntohl(jsb->s_nr_users) > 1) in ext2fs_journal_load()
629 if (ntohl(jsb->s_maxlen) < journal->j_maxlen) in ext2fs_journal_load()
630 journal->j_maxlen = ntohl(jsb->s_maxlen); in ext2fs_journal_load()
631 else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) in ext2fs_journal_load()
634 journal->j_tail_sequence = ntohl(jsb->s_sequence); in ext2fs_journal_load()
636 journal->j_tail = ntohl(jsb->s_start); in ext2fs_journal_load()
637 journal->j_first = ntohl(jsb->s_first); in ext2fs_journal_load()
638 journal->j_last = ntohl(jsb->s_maxlen); in ext2fs_journal_load()
/third_party/uboot/u-boot-2020.01/include/linux/byteorder/
Dgeneric.h129 #undef ntohl
140 #define ntohl(x) ___ntohl(x) macro
/third_party/e2fsprogs/e2fsck/
Djournal.c606 switch (ntohl(jsb->s_header.h_blocktype)) { in e2fsck_journal_load()
618 if (ntohl(jsb->s_nr_users) > 1 && in e2fsck_journal_load()
621 if (ntohl(jsb->s_nr_users) > 1) { in e2fsck_journal_load()
675 if (ntohl(jsb->s_maxlen) < journal->j_maxlen) in e2fsck_journal_load()
676 journal->j_maxlen = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
677 else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) { in e2fsck_journal_load()
684 journal->j_tail_sequence = ntohl(jsb->s_sequence); in e2fsck_journal_load()
686 journal->j_tail = ntohl(jsb->s_start); in e2fsck_journal_load()
687 journal->j_first = ntohl(jsb->s_first); in e2fsck_journal_load()
688 journal->j_last = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
/third_party/musl/porting/liteos_a/kernel/src/network/
Dntohl.c4 uint32_t ntohl(uint32_t n) in ntohl() function
/third_party/musl/src/network/
Dntohl.c4 uint32_t ntohl(uint32_t n) in ntohl() function
/third_party/musl/porting/liteos_m/kernel/src/network/
Dntohl.c4 uint32_t ntohl(uint32_t n) in ntohl() function
/third_party/libcoap/src/
Daddress.c111 return IN_MULTICAST(ntohl(a->addr.sin.sin_addr.s_addr)); in coap_is_mcast()
115 IN_MULTICAST(ntohl(a->addr.sin6.sin6_addr.s6_addr[12]))); in coap_is_mcast()
/third_party/mingw-w64/mingw-w64-crt/libce/
Dwinsock.def25 ntohl
/third_party/uboot/u-boot-2020.01/board/ge/common/
Dvpd_reader.c144 ntohl(*(u32 *)(&data[4])) != HEADER_BLOCK_MAGIC) in vpd_reader()
147 u32 offset = ntohl(*(u32 *)(&data[8])); in vpd_reader()

123456