Home
last modified time | relevance | path

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

123456

/third_party/e2fsprogs/lib/e2p/
Dljs.c73 journal_blks = ntohl(jsb->s_maxlen) - num_fc_blks; in e2p_list_journal_super()
88 size = (ntohl(jsb->s_blocksize) / 1024) * ntohl(jsb->s_maxlen); in e2p_list_journal_super()
93 nr_users = (unsigned int) ntohl(jsb->s_nr_users); in e2p_list_journal_super()
94 if (exp_block_size != (int) ntohl(jsb->s_blocksize)) in e2p_list_journal_super()
96 (unsigned int)ntohl(jsb->s_blocksize)); in e2p_list_journal_super()
104 if (ntohl(jsb->s_first) != 1) in e2p_list_journal_super()
106 (unsigned int)ntohl(jsb->s_first)); in e2p_list_journal_super()
109 (unsigned int)ntohl(jsb->s_sequence), in e2p_list_journal_super()
110 (unsigned int)ntohl(jsb->s_start)); in e2p_list_journal_super()
133 (int) ntohl(jsb->s_errno)); in e2p_list_journal_super()
/third_party/NuttX/fs/nfs/
Dxdr_subs.h75 #define fxdr_unsigned(t, v) ((t)ntohl(v))
80 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
82 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
98 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
99 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
103 (t)->nfsv3_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
104 (t)->nfsv3_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
120 ((((uint64_t)ntohl(((uint32_t *)(f))[0])) << 32) | \
121 (uint64_t)(ntohl(((uint32_t *)(f))[1])))
/third_party/mesa3d/src/freedreno/perfcntrs/
Dfreedreno_dt.c83 uint32_t freq = ntohl(buf[0]); in find_freqs_fn()
161 dev.address_cells = ntohl(*val); in find_device_fn()
166 dev.size_cells = ntohl(*val); in find_device_fn()
200 uint32_t u[2] = {ntohl(buf[0]), ntohl(buf[1])}; in find_device()
204 dev.base = ntohl(buf[0]); in find_device()
209 uint32_t u[2] = {ntohl(buf[0]), ntohl(buf[1])}; in find_device()
213 dev.size = ntohl(buf[0]); in find_device()
/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/mesa3d/src/util/sha1/
Dsha1.h43 x[0] = ntohl(x[0]); \
44 x[1] = ntohl(x[1]); \
45 x[2] = ntohl(x[2]); \
46 x[3] = ntohl(x[3]); \
47 x[4] = ntohl(x[4]); } while (0)
/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/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/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/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/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_total_len) in ext2fs_journal_load()
630 journal->j_total_len = ntohl(jsb->s_maxlen); in ext2fs_journal_load()
631 else if (ntohl(jsb->s_maxlen) > journal->j_total_len) 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/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_input.c137 if (ntohl(init->a_rwnd) < SCTP_MIN_RWND) { in sctp_handle_init()
315 asoc->peer_vtag = ntohl(init->initiate_tag); in sctp_process_init()
316 asoc->peers_rwnd = ntohl(init->a_rwnd); in sctp_process_init()
318 asoc->highest_tsn_inside_map = asoc->asconf_seq_in = ntohl(init->initial_tsn) - 1; in sctp_process_init()
405 asoc->mapping_array_base_tsn = ntohl(init->initial_tsn); in sctp_process_init()
1302 asoc->cookie_preserve_req = ntohl(stale_cookie->stale_time); in sctp_handle_error()
1457 if (ntohl(init_ack->a_rwnd) < SCTP_MIN_RWND) { in sctp_handle_init_ack()
1665 if ((ntohl(initack_cp->init.initiate_tag) == asoc->my_vtag) && in sctp_process_cookie_existing()
1666 (ntohl(init_cp->init.initiate_tag) == asoc->peer_vtag)) { in sctp_process_cookie_existing()
1671 if (ntohl(initack_cp->init.initial_tsn) != asoc->init_seq_number) { in sctp_process_cookie_existing()
[all …]
/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/musl/porting/liteos_m/kernel/src/network/
Dntohl.c4 uint32_t ntohl(uint32_t n) in ntohl() function
/third_party/musl/porting/uniproton/kernel/src/network/
Dntohl.c4 uint32_t ntohl(uint32_t n) in ntohl() function
/third_party/musl/porting/liteos_m_iccarm/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_a/kernel/src/network/
Dntohl.c4 uint32_t ntohl(uint32_t n) in ntohl() function
/third_party/ltp/lib/
Dtst_net.c56 return tst_bit_count(ntohl(mask.s_addr)); in tst_mask2prefix()
153 switch (ntohl(inet_ptr->sin_addr.s_addr)) { in tst_get_connect_address()
/third_party/e2fsprogs/e2fsck/
Djournal.c1279 switch (ntohl(jsb->s_header.h_blocktype)) { in e2fsck_journal_load()
1291 if (ntohl(jsb->s_nr_users) > 1 && in e2fsck_journal_load()
1294 if (ntohl(jsb->s_nr_users) > 1) { in e2fsck_journal_load()
1348 if (ntohl(jsb->s_maxlen) < journal->j_total_len) in e2fsck_journal_load()
1349 journal->j_total_len = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
1350 else if (ntohl(jsb->s_maxlen) > journal->j_total_len) { in e2fsck_journal_load()
1357 journal->j_tail_sequence = ntohl(jsb->s_sequence); in e2fsck_journal_load()
1359 journal->j_tail = ntohl(jsb->s_start); in e2fsck_journal_load()
1360 journal->j_first = ntohl(jsb->s_first); in e2fsck_journal_load()
1362 if (ntohl(jsb->s_maxlen) - jbd2_journal_get_num_fc_blks(jsb) in e2fsck_journal_load()
[all …]
/third_party/libwebsockets/lib/system/dhcpclient/
Ddhcpc4.c328 r->is.sa46[which].sa4.sin_addr.s_addr = ntohl(lws_ser_ru32be(p)); in lws_sa46_set_ipv4()
462 r->is.nums[n] = ntohl(lws_ser_ru32be(p)); in lws_dhcpc4_parse()
474 m = (int)ntohl(r->is.nums[n]); in lws_dhcpc4_parse()
/third_party/pulseaudio/src/modules/rtp/
Drtp-native.c280 header = ntohl(header); in pa_rtp_recv()
281 *rtp_tstamp = ntohl(*rtp_tstamp); in pa_rtp_recv()
282 ssrc = ntohl(c->ssrc); in pa_rtp_recv()

123456