Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 462) sorted by relevance

12345678910>>...19

/linux/include/linux/
H A Din.h40 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback()
45 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast()
50 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast()
56 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast()
61 return addr == htonl(INADDR_ALLSNOOPERS_GROUP); in ipv4_is_all_snoopers()
73 return (addr & htonl(0xff000000)) == htonl(0x0a000000); in ipv4_is_private_10()
78 return (addr & htonl(0xfff00000)) == htonl(0xac100000); in ipv4_is_private_172()
83 return (addr & htonl(0xffff0000)) == htonl(0xc0a80000); in ipv4_is_private_192()
88 return (addr & htonl(0xffff0000)) == htonl(0xa9fe0000); in ipv4_is_linklocal_169()
93 return (addr & htonl(0xffffff00)) == htonl(0xc0586300); in ipv4_is_anycast_6to4()
[all …]
/linux/fs/afs/
H A Dfsclient.c66 if (xdr->if_version != htonl(AFS_FSTATUS_VERSION)) { in xdr_decode_AFSFetchStatus()
67 if (xdr->if_version == htonl(0) && in xdr_decode_AFSFetchStatus()
201 *bp++ = htonl(mask); in xdr_encode_AFS_StoreStatus()
202 *bp++ = htonl(mtime); in xdr_encode_AFS_StoreStatus()
203 *bp++ = htonl(owner); in xdr_encode_AFS_StoreStatus()
204 *bp++ = htonl(group); in xdr_encode_AFS_StoreStatus()
205 *bp++ = htonl(mode); in xdr_encode_AFS_StoreStatus()
288 bp[0] = htonl(FSFETCHSTATUS); in afs_fs_fetch_status()
289 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_status()
290 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status()
[all …]
H A Dvlclient.c144 *bp++ = htonl(VLGETENTRYBYNAMEU); in afs_vl_get_entry_by_name_u()
145 *bp++ = htonl(volnamesz); in afs_vl_get_entry_by_name_u()
285 *bp++ = htonl(VLGETADDRSU); in afs_vl_get_addrs_u()
287 r->Mask = htonl(AFS_VLADDR_UUID); in afs_vl_get_addrs_u()
292 r->uuid.time_mid = htonl(ntohs(u->time_mid)); in afs_vl_get_addrs_u()
293 r->uuid.time_hi_and_version = htonl(ntohs(u->time_hi_and_version)); in afs_vl_get_addrs_u()
294 r->uuid.clock_seq_hi_and_reserved = htonl(u->clock_seq_hi_and_reserved); in afs_vl_get_addrs_u()
295 r->uuid.clock_seq_low = htonl(u->clock_seq_low); in afs_vl_get_addrs_u()
297 r->uuid.node[i] = htonl(u->node[i]); in afs_vl_get_addrs_u()
413 *bp++ = htonl(VLGETCAPABILITIES); in afs_vl_get_capabilities()
[all …]
/linux/fs/nfs/
H A Dcallback_xdr.c64 return htonl(NFS4_OK); in nfs4_callback_null()
94 return htonl(NFS4ERR_RESOURCE); in decode_fh()
97 return htonl(NFS4ERR_BADHANDLE); in decode_fh()
100 return htonl(NFS4ERR_RESOURCE); in decode_fh()
113 return htonl(NFS4ERR_RESOURCE); in decode_bitmap()
117 return htonl(NFS4ERR_RESOURCE); in decode_bitmap()
133 return htonl(NFS4ERR_RESOURCE); in decode_stateid()
154 return htonl(NFS4ERR_RESOURCE); in decode_compound_hdr_arg()
163 return htonl(NFS4ERR_MINOR_VERS_MISMATCH); in decode_compound_hdr_arg()
174 return htonl(NFS4ERR_RESOURCE_HDR); in decode_op_hdr()
[all …]
H A Dcallback_proc.c36 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr()
41 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr()
49 res->status = htonl(NFS4ERR_DELAY); in nfs4_callback_getattr()
89 res = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_recall()
96 res = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_recall()
100 res = htonl(NFS4ERR_DELAY); in nfs4_callback_recall()
111 res = htonl(NFS4ERR_BAD_STATEID); in nfs4_callback_recall()
114 res = htonl(NFS4ERR_RESOURCE); in nfs4_callback_recall()
509 __be32 status = htonl(NFS4ERR_BADSESSION); in nfs4_callback_sequence()
530 status = htonl(NFS4ERR_DELAY); in nfs4_callback_sequence()
[all …]
/linux/drivers/scsi/csiostor/
H A Dcsio_mb.c84 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | in csio_mb_hello()
86 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_hello()
87 cmdp->err_to_clearinit = htonl( in csio_mb_hello()
147 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_BYE_CMD) | in csio_mb_bye()
149 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_bye()
170 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_RESET_CMD) | in csio_mb_reset()
172 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_reset()
173 cmdp->val = htonl(reset); in csio_mb_reset()
174 cmdp->halt_pkd = htonl(halt); in csio_mb_reset()
205 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | in csio_mb_params()
[all …]
/linux/net/ipv6/
H A Daddrconf_core.c47 if ((st & htonl(0xE0000000)) != htonl(0x00000000) && in __ipv6_addr_type()
48 (st & htonl(0xE0000000)) != htonl(0xE0000000)) in __ipv6_addr_type()
52 if ((st & htonl(0xFF000000)) == htonl(0xFF000000)) { in __ipv6_addr_type()
59 if ((st & htonl(0xFFC00000)) == htonl(0xFE800000)) in __ipv6_addr_type()
62 if ((st & htonl(0xFFC00000)) == htonl(0xFEC00000)) in __ipv6_addr_type()
65 if ((st & htonl(0xFE000000)) == htonl(0xFC000000)) in __ipv6_addr_type()
74 if (addr->s6_addr32[3] == htonl(0x00000001)) in __ipv6_addr_type()
82 if (addr->s6_addr32[2] == htonl(0x0000ffff)) in __ipv6_addr_type()
/linux/drivers/scsi/qla2xxx/
H A Dqla_dbg.c75 fw_dump->fw_major_version = htonl(ha->fw_major_version); in qla2xxx_prep_dump()
76 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); in qla2xxx_prep_dump()
77 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); in qla2xxx_prep_dump()
78 fw_dump->fw_attributes = htonl(ha->fw_attributes); in qla2xxx_prep_dump()
80 fw_dump->vendor = htonl(ha->pdev->vendor); in qla2xxx_prep_dump()
81 fw_dump->device = htonl(ha->pdev->device); in qla2xxx_prep_dump()
82 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); in qla2xxx_prep_dump()
83 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); in qla2xxx_prep_dump()
304 *buf++ = htonl(rd_reg_dword(dmp_reg)); in qla24xx_read_window()
492 fcec->type = htonl(DUMP_CHAIN_FCE); in qla25xx_copy_fce()
[all …]
/linux/drivers/net/wireguard/selftest/
H A Dratelimiter.c56 hdr4->saddr = htonl(ntohl(hdr4->saddr) + i + 1); in timings_test()
64 hdr4->saddr = htonl(ntohl(hdr4->saddr) - i - 1); in timings_test()
67 hdr6->saddr.in6_u.u6_addr32[2] = htonl(i); in timings_test()
68 hdr6->saddr.in6_u.u6_addr32[3] = htonl(i); in timings_test()
78 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) + i + 1); in timings_test()
87 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) - i - 1); in timings_test()
110 hdr4->saddr = htonl(i); in capacity_test()
152 hdr4->saddr = htonl(8182); in wg_ratelimiter_selftest()
164 hdr6->saddr.in6_u.u6_addr32[0] = htonl(1212); in wg_ratelimiter_selftest()
165 hdr6->saddr.in6_u.u6_addr32[1] = htonl(289188); in wg_ratelimiter_selftest()
/linux/drivers/crypto/chelsio/
H A Dchcr_algo.h122 htonl( \
132 htonl( \
139 htonl( \
146 htonl( \
158 #define FILL_SEC_CPL_IVGEN_HDRLEN(last, more, ctx_in, mac, ivdrop, len) htonl( \
171 htonl(KEY_CONTEXT_VALID_V(1) | \
180 htonl(TLS_KEYCTX_RXMK_SIZE_V(mk_size) | \
189 htonl( \
198 htonl( \
206 htonl(ULPTX_CMD_V(ULP_TX_PKT) | \
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c199 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, qid_atid)); in chcr_ktls_act_open_req()
213 cpl->opt2 = htonl(options); in chcr_ktls_act_open_req()
249 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ6, qid_atid)); in chcr_ktls_act_open_req6()
264 cpl->opt2 = htonl(options); in chcr_ktls_act_open_req6()
752 txpkt->cmd_dest = htonl(ULPTX_CMD_V(ULP_TX_PKT) | in __chcr_write_cpl_set_tcb_ulp()
756 txpkt->len = htonl(DIV_ROUND_UP(CHCR_SET_TCB_FIELD_LEN, 16)); in __chcr_write_cpl_set_tcb_ulp()
760 idata->cmd_more = htonl(ULPTX_CMD_V(ULP_TX_SC_IMM)); in __chcr_write_cpl_set_tcb_ulp()
761 idata->len = htonl(sizeof(*cpl)); in __chcr_write_cpl_set_tcb_ulp()
766 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); in __chcr_write_cpl_set_tcb_ulp()
775 idata->cmd_more = htonl(ULPTX_CMD_V(ULP_TX_SC_NOOP)); in __chcr_write_cpl_set_tcb_ulp()
[all …]
/linux/include/uapi/linux/
H A Digmp.h120 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
121 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
122 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
123 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
124 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
/linux/arch/powerpc/boot/
H A Dmktree.c62 bt.bb_magic = htonl(0x0052504F); in main()
65 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
66 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
72 bt.bb_num_512blocks = htonl(nblks); in main()
105 if (tmpbuf[0] != htonl(0x7f454c46)) { in main()
140 bt.bb_checksum = htonl(cksum); in main()
/linux/net/rxrpc/
H A Doutput.c103 ack->firstPacket = htonl(window); in rxrpc_fill_out_ack()
104 ack->previousPacket = htonl(call->rx_highest_seq); in rxrpc_fill_out_ack()
105 ack->serial = htonl(serial); in rxrpc_fill_out_ack()
141 trailer->maxMTU = htonl(rxrpc_rx_mtu); in rxrpc_fill_out_ack()
142 trailer->ifMTU = htonl(mtu); in rxrpc_fill_out_ack()
143 trailer->rwind = htonl(rsize); in rxrpc_fill_out_ack()
144 trailer->jumbo_max = htonl(jmax); in rxrpc_fill_out_ack()
201 whdr->serial = htonl(txb->serial); in rxrpc_send_ack_packet()
293 pkt.whdr.epoch = htonl(conn->proto.epoch); in rxrpc_send_abort_packet()
294 pkt.whdr.cid = htonl(call->cid); in rxrpc_send_abort_packet()
[all …]
H A Drxkad.c211 tmpbuf[0] = htonl(conn->proto.epoch); in rxkad_prime_packet_security()
212 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security()
214 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security()
264 hdr->data_size = htonl((u32)check << 16 | txb->len); in rxkad_secure_packet_auth()
309 rxkhdr->data_size = htonl(txb->len | (u32)check << 16); in rxkad_secure_packet_encrypt()
369 crypto.buf[0] = htonl(call->call_id); in rxkad_secure_packet()
370 crypto.buf[1] = htonl(x); in rxkad_secure_packet()
582 crypto.buf[0] = htonl(call->call_id); in rxkad_verify_packet()
583 crypto.buf[1] = htonl(x); in rxkad_verify_packet()
640 challenge.version = htonl(2); in rxkad_issue_challenge()
[all …]
H A Dconn_event.c130 pkt.whdr.epoch = htonl(conn->proto.epoch); in rxrpc_conn_retransmit_call()
131 pkt.whdr.cid = htonl(conn->proto.cid | channel); in rxrpc_conn_retransmit_call()
132 pkt.whdr.callNumber = htonl(call_id); in rxrpc_conn_retransmit_call()
133 pkt.whdr.serial = htonl(serial); in rxrpc_conn_retransmit_call()
145 pkt.abort_code = htonl(chan->last_abort); in rxrpc_conn_retransmit_call()
156 pkt.ack.firstPacket = htonl(chan->last_seq + 1); in rxrpc_conn_retransmit_call()
157 pkt.ack.previousPacket = htonl(chan->last_seq); in rxrpc_conn_retransmit_call()
158 pkt.ack.serial = htonl(skb ? sp->hdr.serial : 0); in rxrpc_conn_retransmit_call()
161 trailer.maxMTU = htonl(rxrpc_rx_mtu); in rxrpc_conn_retransmit_call()
162 trailer.ifMTU = htonl(mtu); in rxrpc_conn_retransmit_call()
[all …]
H A Dtxbuf.c64 whdr->epoch = htonl(call->conn->proto.epoch); in rxrpc_alloc_data_txbuf()
65 whdr->cid = htonl(call->cid); in rxrpc_alloc_data_txbuf()
66 whdr->callNumber = htonl(call->call_id); in rxrpc_alloc_data_txbuf()
67 whdr->seq = htonl(txb->seq); in rxrpc_alloc_data_txbuf()
141 whdr->epoch = htonl(call->conn->proto.epoch); in rxrpc_alloc_ack_txbuf()
142 whdr->cid = htonl(call->cid); in rxrpc_alloc_ack_txbuf()
143 whdr->callNumber = htonl(call->call_id); in rxrpc_alloc_ack_txbuf()
/linux/include/net/
H A Daddrconf.h460 htonl(0xFF020000), 0, in addrconf_addr_solict_mult()
461 htonl(0x1), in addrconf_addr_solict_mult()
462 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
471 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
473 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
483 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
485 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
491 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap()
502 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult()
504 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult()
[all …]
/linux/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.c167 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in send_act_open_req()
168 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req()
174 req->opt0h = htonl(V_KEEP_ALIVE(1) | F_TCAM_BYPASS | in send_act_open_req()
177 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | in send_act_open_req()
212 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_close_req()
213 req->wr.wr_lo = htonl(V_WR_TID(tid)); in send_close_req()
214 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid)); in send_close_req()
215 req->rsvd = htonl(csk->write_seq); in send_close_req()
256 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); in send_abort_req()
257 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_req()
[all …]
/linux/net/netfilter/
H A Dnft_hash.c151 if (nla_put_be32(skb, NFTA_HASH_LEN, htonl(priv->len))) in nft_jhash_dump()
153 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_jhash_dump()
156 nla_put_be32(skb, NFTA_HASH_SEED, htonl(priv->seed))) in nft_jhash_dump()
159 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_jhash_dump()
161 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_JENKINS))) in nft_jhash_dump()
186 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_symhash_dump()
189 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_symhash_dump()
191 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_SYM))) in nft_symhash_dump()
H A Dnf_synproxy_core.c121 *ptr++ = htonl((TCPOPT_MSS << 24) | in synproxy_build_options()
127 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) | in synproxy_build_options()
132 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options()
137 *ptr++ = htonl(opts->tsval); in synproxy_build_options()
138 *ptr++ = htonl(opts->tsecr); in synproxy_build_options()
140 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options()
146 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options()
221 *ptr = htonl(ntohl(*ptr) - in synproxy_tstamp_adjust()
226 *ptr = htonl(ntohl(*ptr) + in synproxy_tstamp_adjust()
472 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
[all …]
H A Dnf_conntrack_seqadj.c88 new_start_seq = htonl(ntohl(sack->start_seq) - in nf_ct_sack_block_adjust()
91 new_start_seq = htonl(ntohl(sack->start_seq) - in nf_ct_sack_block_adjust()
96 new_end_seq = htonl(ntohl(sack->end_seq) - in nf_ct_sack_block_adjust()
99 new_end_seq = htonl(ntohl(sack->end_seq) - in nf_ct_sack_block_adjust()
189 newseq = htonl(ntohl(tcph->seq) + seqoff); in nf_ct_seq_adjust()
204 newack = htonl(ntohl(tcph->ack_seq) - ackoff); in nf_ct_seq_adjust()
/linux/drivers/media/test-drivers/vicodec/
H A Dcodec-v4l2-fwht.c254 p_hdr->version = htonl(V4L2_FWHT_VERSION); in v4l2_fwht_encode()
255 p_hdr->width = htonl(state->visible_width); in v4l2_fwht_encode()
256 p_hdr->height = htonl(state->visible_height); in v4l2_fwht_encode()
273 p_hdr->flags = htonl(flags); in v4l2_fwht_encode()
274 p_hdr->colorspace = htonl(state->colorspace); in v4l2_fwht_encode()
275 p_hdr->xfer_func = htonl(state->xfer_func); in v4l2_fwht_encode()
276 p_hdr->ycbcr_enc = htonl(state->ycbcr_enc); in v4l2_fwht_encode()
277 p_hdr->quantization = htonl(state->quantization); in v4l2_fwht_encode()
278 p_hdr->size = htonl(cf.size); in v4l2_fwht_encode()
/linux/net/netfilter/ipset/
H A Dpfxlen.c144 htonl(a), htonl(b), \
145 htonl(c), htonl(d), \
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_dsa.c101 dsa_words[0] = htonl(words[0]); in prestera_dsa_build()
102 dsa_words[1] = htonl(words[1]); in prestera_dsa_build()
103 dsa_words[2] = htonl(words[2]); in prestera_dsa_build()
104 dsa_words[3] = htonl(words[3]); in prestera_dsa_build()

12345678910>>...19