Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 200 of 346) sorted by relevance

12

/linux-4.4.14/include/linux/
Din.h44 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback()
49 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast()
54 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast()
60 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast()
65 return (addr & htonl(0xff000000)) == htonl(0x00000000); in ipv4_is_zeronet()
72 return (addr & htonl(0xff000000)) == htonl(0x0a000000); in ipv4_is_private_10()
77 return (addr & htonl(0xfff00000)) == htonl(0xac100000); in ipv4_is_private_172()
82 return (addr & htonl(0xffff0000)) == htonl(0xc0a80000); in ipv4_is_private_192()
87 return (addr & htonl(0xffff0000)) == htonl(0xa9fe0000); in ipv4_is_linklocal_169()
92 return (addr & htonl(0xffffff00)) == htonl(0xc0586300); in ipv4_is_anycast_6to4()
[all …]
Ddccp.h202 #define DCCP_SERVICE_INVALID_VALUE htonl((__u32)-1)
/linux-4.4.14/fs/nfs/
Dcallback_xdr.c62 return htonl(NFS4_OK); in nfs4_callback_null()
91 return htonl(NFS4ERR_RESOURCE); in decode_string()
97 return htonl(NFS4ERR_RESOURCE); in decode_string()
111 return htonl(NFS4ERR_RESOURCE); in decode_fh()
114 return htonl(NFS4ERR_BADHANDLE); in decode_fh()
117 return htonl(NFS4ERR_RESOURCE); in decode_fh()
130 return htonl(NFS4ERR_RESOURCE); in decode_bitmap()
134 return htonl(NFS4ERR_RESOURCE); in decode_bitmap()
148 return htonl(NFS4ERR_RESOURCE); in decode_stateid()
165 return htonl(NFS4ERR_RESOURCE); in decode_compound_hdr_arg()
[all …]
Dcallback_proc.c30 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr()
35 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr()
77 res = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_recall()
84 res = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_recall()
94 res = htonl(NFS4ERR_BAD_STATEID); in nfs4_callback_recall()
97 res = htonl(NFS4ERR_RESOURCE); in nfs4_callback_recall()
327 return htonl(NFS4ERR_BADSLOT); in validate_seqid()
342 return htonl(NFS4ERR_RETRY_UNCACHED_REP); in validate_seqid()
346 return htonl(NFS4ERR_REP_TOO_BIG_TO_CACHE); in validate_seqid()
356 return htonl(NFS4ERR_SEQ_MISORDERED); in validate_seqid()
[all …]
Dnfsroot.c99 static __be32 servaddr __initdata = htonl(INADDR_NONE);
298 if (servaddr == htonl(INADDR_NONE)) { in nfs_root_data()
/linux-4.4.14/fs/afs/
Dfsclient.c203 *bp++ = htonl(mask); in xdr_encode_AFS_StoreStatus()
204 *bp++ = htonl(mtime); in xdr_encode_AFS_StoreStatus()
205 *bp++ = htonl(owner); in xdr_encode_AFS_StoreStatus()
206 *bp++ = htonl(group); in xdr_encode_AFS_StoreStatus()
207 *bp++ = htonl(mode); in xdr_encode_AFS_StoreStatus()
301 bp[0] = htonl(FSFETCHSTATUS); in afs_fs_fetch_file_status()
302 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_file_status()
303 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_file_status()
304 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_file_status()
477 bp[0] = htonl(FSFETCHDATA64); in afs_fs_fetch_data64()
[all …]
Dcmservice.c442 reply.match = htonl(0); in SRXAFSCB_ProbeUuid()
444 reply.match = htonl(1); in SRXAFSCB_ProbeUuid()
559 reply.ia.nifs = htonl(nifs); in SRXAFSCB_TellMeAboutYourself()
561 reply.ia.uuid[0] = htonl(afs_uuid.time_low); in SRXAFSCB_TellMeAboutYourself()
562 reply.ia.uuid[1] = htonl(afs_uuid.time_mid); in SRXAFSCB_TellMeAboutYourself()
563 reply.ia.uuid[2] = htonl(afs_uuid.time_hi_and_version); in SRXAFSCB_TellMeAboutYourself()
564 reply.ia.uuid[3] = htonl((s8) afs_uuid.clock_seq_hi_and_reserved); in SRXAFSCB_TellMeAboutYourself()
565 reply.ia.uuid[4] = htonl((s8) afs_uuid.clock_seq_low); in SRXAFSCB_TellMeAboutYourself()
567 reply.ia.uuid[loop + 5] = htonl((s8) afs_uuid.node[loop]); in SRXAFSCB_TellMeAboutYourself()
573 reply.ia.mtu[loop] = htonl(ifs[loop].mtu); in SRXAFSCB_TellMeAboutYourself()
[all …]
Dvlclient.c177 *bp++ = htonl(VLGETENTRYBYNAME); in afs_vl_get_entry_by_name()
178 *bp++ = htonl(volnamesz); in afs_vl_get_entry_by_name()
213 *bp++ = htonl(VLGETENTRYBYID); in afs_vl_get_entry_by_id()
214 *bp++ = htonl(volid); in afs_vl_get_entry_by_id()
215 *bp = htonl(voltype); in afs_vl_get_entry_by_id()
/linux-4.4.14/net/ipv6/
Daddrconf_core.c45 if ((st & htonl(0xE0000000)) != htonl(0x00000000) && in __ipv6_addr_type()
46 (st & htonl(0xE0000000)) != htonl(0xE0000000)) in __ipv6_addr_type()
50 if ((st & htonl(0xFF000000)) == htonl(0xFF000000)) { in __ipv6_addr_type()
57 if ((st & htonl(0xFFC00000)) == htonl(0xFE800000)) in __ipv6_addr_type()
60 if ((st & htonl(0xFFC00000)) == htonl(0xFEC00000)) in __ipv6_addr_type()
63 if ((st & htonl(0xFE000000)) == htonl(0xFC000000)) in __ipv6_addr_type()
72 if (addr->s6_addr32[3] == htonl(0x00000001)) in __ipv6_addr_type()
80 if (addr->s6_addr32[2] == htonl(0x0000ffff)) in __ipv6_addr_type()
Doutput_core.c61 skb_shinfo(skb)->ip6_frag_id = htonl(id); in ipv6_proxy_select_ident()
75 return htonl(id); in ipv6_select_ident()
Dip6_checksum.c50 ulen = (__force u32)htonl((__u32) len); in csum_ipv6_magic()
55 uproto = (__force u32)htonl(proto); in csum_ipv6_magic()
Dip6_offload.c232 if ((first_word & htonl(0xF00FFFFF)) || in ipv6_gro_receive()
239 NAPI_GRO_CB(p)->flush |= !!(first_word & htonl(0x0FF00000)); in ipv6_gro_receive()
Dxfrm6_tunnel.c111 return htonl(spi); in xfrm6_tunnel_spi_lookup()
187 return htonl(spi); in xfrm6_tunnel_alloc_spi()
Dip6_udp_tunnel.c101 ip6_flow_hdr(ip6h, prio, htonl(0)); in udp_tunnel6_xmit_skb()
Dsit.c180 ipv6_addr_set(&t->ip6rd.prefix, htonl(0x20020000), 0, 0, 0); in ipip6_tunnel_clone_6rd()
301 if (cmax > 1 && kprl.addr != htonl(INADDR_ANY)) in ipip6_tunnel_get_prl()
332 if (kprl.addr != htonl(INADDR_ANY) && prl->addr != kprl.addr) in ipip6_tunnel_get_prl()
337 if (kprl.addr != htonl(INADDR_ANY)) in ipip6_tunnel_get_prl()
359 if (a->addr == htonl(INADDR_ANY)) in ipip6_tunnel_add_prl()
416 if (a && a->addr != htonl(INADDR_ANY)) { in ipip6_tunnel_del_prl()
780 *v4dst = tunnel->ip6rd.relay_prefix | htonl(d); in check_6rd()
1119 htonl(0xffffffffUL << in ipip6_tunnel_update_6rd()
Desp6.c233 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp6_output()
244 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.hi); in esp6_output()
421 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.input.hi); in esp6_input()
Dipcomp6.c70 spi = htonl(ntohs(ipcomph->cpi)); in ipcomp6_err()
Dtcp_ipv6.c773 t1->seq = htonl(seq); in tcp_v6_send_response()
774 t1->ack_seq = htonl(ack); in tcp_v6_send_response()
782 *topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v6_send_response()
784 *topt++ = htonl(tsval); in tcp_v6_send_response()
785 *topt++ = htonl(tsecr); in tcp_v6_send_response()
790 *topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v6_send_response()
Dah6.c423 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in ah6_output()
430 *seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi); in ah6_output()
/linux-4.4.14/drivers/scsi/csiostor/
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 …]
Dcsio_lnode.c336 val = htonl(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT); in csio_ln_fdmi_rhba_cbfn()
343 val = htonl(FC_PORTSPEED_1GBIT); in csio_ln_fdmi_rhba_cbfn()
345 val = htonl(FC_PORTSPEED_10GBIT); in csio_ln_fdmi_rhba_cbfn()
347 val = htonl(CSIO_HBA_PORTSPEED_UNKNOWN); in csio_ln_fdmi_rhba_cbfn()
368 attrib_blk->numattrs = htonl(numattrs); in csio_ln_fdmi_rhba_cbfn()
393 __be32 maxpayload = htonl(65536); in csio_ln_fdmi_dprt_cbfn()
429 reg_pl->numport = htonl(1); in csio_ln_fdmi_dprt_cbfn()
476 attrib_blk->numattrs = htonl(numattrs); in csio_ln_fdmi_dprt_cbfn()
1685 port_id = htonl(sid); in csio_ln_prep_ecwr()
1687 port_id = htonl(did); in csio_ln_prep_ecwr()
[all …]
Dcsio_hw_t5.c201 *data++ = htonl(csio_rd_reg32(hw, MC_DATA(i))); in csio_t5_mc_read()
257 *data++ = htonl(csio_rd_reg32(hw, EDC_DATA(i))); in csio_t5_edc_read()
Dcsio_hw.c511 *data = (__force __u32) htonl(*data); in csio_hw_read_flash()
732 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); in csio_hw_fw_dload()
1709 htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | in csio_hw_use_fwconfig()
1713 htonl(FW_CAPS_CONFIG_CMD_CFVALID_F | in csio_hw_use_fwconfig()
1732 caps_cmd->op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | in csio_hw_use_fwconfig()
1735 caps_cmd->cfvalid_to_len16 = htonl(FW_LEN16(*caps_cmd)); in csio_hw_use_fwconfig()
1756 htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | in csio_hw_use_fwconfig()
1759 caps_cmd->cfvalid_to_len16 = htonl(FW_LEN16(*caps_cmd)); in csio_hw_use_fwconfig()
/linux-4.4.14/fs/nfsd/
Dnfsxdr.c154 *p++ = htonl(nfs_ftypes[type >> 12]); in encode_fattr()
155 *p++ = htonl((u32) stat->mode); in encode_fattr()
156 *p++ = htonl((u32) stat->nlink); in encode_fattr()
157 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); in encode_fattr()
158 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); in encode_fattr()
161 *p++ = htonl(NFS_MAXPATHLEN); in encode_fattr()
163 *p++ = htonl((u32) stat->size); in encode_fattr()
165 *p++ = htonl((u32) stat->blksize); in encode_fattr()
167 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr()
169 *p++ = htonl(0xffffffff); in encode_fattr()
[all …]
Dnfs3xdr.c35 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3()
71 *p++ = htonl(size); in encode_fh()
167 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in encode_fattr3()
168 *p++ = htonl((u32) (stat->mode & S_IALLUGO)); in encode_fattr3()
169 *p++ = htonl((u32) stat->nlink); in encode_fattr3()
170 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); in encode_fattr3()
171 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); in encode_fattr3()
178 *p++ = htonl((u32) MAJOR(stat->rdev)); in encode_fattr3()
179 *p++ = htonl((u32) MINOR(stat->rdev)); in encode_fattr3()
667 *p++ = htonl(resp->access); in nfs3svc_encode_accessres()
[all …]
Dnfsfh.h92 fsidv[0] = (__force __u32)htonl((MAJOR(dev)<<16) | in mk_fsid()
100 fsidv[0] = (__force __u32)htonl(MAJOR(dev)); in mk_fsid()
101 fsidv[1] = (__force __u32)htonl(MINOR(dev)); in mk_fsid()
Dnfs2acl.c274 *p++ = htonl(resp->mask); in nfsaclsvc_encode_getaclres()
311 *p++ = htonl(resp->access); in nfsaclsvc_encode_accessres()
Dnfs4xdr.c1975 pathlen = htonl(count); in nfsd4_encode_components_esc()
2770 attrlen = htonl(xdr->buf->len - attrlen_offset - 4); in nfsd4_encode_fattr()
2905 *p++ = htonl(2); in nfsd4_encode_rdattr_error()
2906 *p++ = htonl(FATTR4_WORD0_RDATTR_ERROR); /* bmval0 */ in nfsd4_encode_rdattr_error()
2907 *p++ = htonl(0); /* bmval1 */ in nfsd4_encode_rdattr_error()
2909 *p++ = htonl(4); /* attribute length */ in nfsd4_encode_rdattr_error()
3371 *(p++) = htonl(eof); in nfsd4_encode_splice_read()
3372 *(p++) = htonl(maxcount); in nfsd4_encode_splice_read()
3448 tmp = htonl(eof); in nfsd4_encode_readv()
3450 tmp = htonl(maxcount); in nfsd4_encode_readv()
[all …]
Dnfs3acl.c184 *p++ = htonl(resp->mask); in nfs3svc_encode_getaclres()
/linux-4.4.14/arch/m32r/include/asm/
Dflat.h67 unsigned long addr = htonl(*rp); in m32r_flat_get_addr_from_rp()
84 return htonl(*rp) & 0xFFFF; in m32r_flat_get_addr_from_rp()
89 return (htonl(*rp) & 0xFFFF) + textlen; in m32r_flat_get_addr_from_rp()
93 return htonl(*rp) & 0xFFFFFF; in m32r_flat_get_addr_from_rp()
95 return htonl(*rp); in m32r_flat_get_addr_from_rp()
130 *rp = (htonl(*rp) & 0xFFFF0000) | (addr & 0xFFFF); in m32r_flat_put_addr_at_rp()
136 *rp = (htonl(*rp) & 0xFF000000) | (addr & 0xFFFFFF); in m32r_flat_put_addr_at_rp()
Dchecksum.h196 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_dbg.c86 fw_dump->fw_major_version = htonl(ha->fw_major_version); in qla2xxx_prep_dump()
87 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); in qla2xxx_prep_dump()
88 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); in qla2xxx_prep_dump()
89 fw_dump->fw_attributes = htonl(ha->fw_attributes); in qla2xxx_prep_dump()
91 fw_dump->vendor = htonl(ha->pdev->vendor); in qla2xxx_prep_dump()
92 fw_dump->device = htonl(ha->pdev->device); in qla2xxx_prep_dump()
93 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); in qla2xxx_prep_dump()
94 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); in qla2xxx_prep_dump()
302 *buf++ = htonl(RD_REG_DWORD(dmp_reg++)); in qla24xx_read_window()
489 fcec->type = htonl(DUMP_CHAIN_FCE); in qla25xx_copy_fce()
[all …]
/linux-4.4.14/include/uapi/linux/
Digmp.h118 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
119 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
120 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
121 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
122 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
Dtipc_config.h399 tcm_hdr->tcm_len = htonl(msg_len); in TCM_SET()
/linux-4.4.14/arch/powerpc/boot/
Dmktree.c61 bt.bb_magic = htonl(0x0052504F); in main()
64 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
65 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
71 bt.bb_num_512blocks = htonl(nblks); in main()
104 if (tmpbuf[0] != htonl(0x7f454c46)) { in main()
139 bt.bb_checksum = htonl(cksum); in main()
/linux-4.4.14/net/sunrpc/
Dauth_unix.c151 *p++ = htonl(RPC_AUTH_UNIX); in unx_marshal()
153 *p++ = htonl(jiffies/HZ); in unx_marshal()
160 *p++ = htonl((u32) from_kuid(&init_user_ns, cred->uc_uid)); in unx_marshal()
161 *p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gid)); in unx_marshal()
164 *p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gids[i])); in unx_marshal()
165 *hold = htonl(p - hold - 1); /* gid array length */ in unx_marshal()
166 *base = htonl((p - base - 1) << 2); /* cred length */ in unx_marshal()
168 *p++ = htonl(RPC_AUTH_NULL); in unx_marshal()
169 *p++ = htonl(0); in unx_marshal()
Dauth_null.c66 *p++ = htonl(RPC_AUTH_NULL); in nul_marshal()
68 *p++ = htonl(RPC_AUTH_NULL); in nul_marshal()
Dclnt.c1124 .sin_addr.s_addr = htonl(INADDR_ANY),
2225 *p++ = htonl(RPC_CALL); /* CALL */ in rpc_encode_header()
2226 *p++ = htonl(RPC_VERSION); /* RPC version */ in rpc_encode_header()
2227 *p++ = htonl(clnt->cl_prog); /* program number */ in rpc_encode_header()
2228 *p++ = htonl(clnt->cl_vers); /* program version */ in rpc_encode_header()
2229 *p++ = htonl(task->tk_msg.rpc_proc->p_proc); /* procedure */ in rpc_encode_header()
/linux-4.4.14/include/net/
Daddrconf.h339 htonl(0xFF020000), 0, in addrconf_addr_solict_mult()
340 htonl(0x1), in addrconf_addr_solict_mult()
341 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
350 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
352 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
362 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
364 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
370 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap()
381 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult()
383 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult()
Dinet_ecn.h66 (label) &= ~htonl(INET_ECN_MASK << 20); \
71 (label) |= htonl(INET_ECN_ECT_0 << 20); \
128 to = from | htonl(INET_ECN_CE << 20); in IP6_ECN_set_ce()
137 *(__be32*)iph &= ~htonl(INET_ECN_MASK << 20); in IP6_ECN_clear()
Dipv6.h488 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) in ipv6_prefix_equal()
609 return (a->s6_addr32[0] & htonl(0xfffffff0)) == htonl(0x20010010); in ipv6_addr_orchid()
614 return (addr->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000); in ipv6_addr_is_multicast()
622 htonl(0x0000FFFF), in ipv6_addr_set_v4mapped()
802 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr()
Dgue.h62 #define GUE_PFLAG_REMCSUM htonl(1 << 31)
Dif_inet6.h256 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) in ipv6_ipgre_mc_map()
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_cm.c179 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in release_tid()
180 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, hwtid)); in release_tid()
194 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in iwch_quiesce_tid()
195 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); in iwch_quiesce_tid()
196 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); in iwch_quiesce_tid()
215 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in iwch_resume_tid()
216 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); in iwch_resume_tid()
217 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); in iwch_resume_tid()
401 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_halfclose()
402 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); in send_halfclose()
[all …]
/linux-4.4.14/net/netfilter/
Dnf_synproxy_core.c119 *ptr++ = htonl((TCPOPT_MSS << 24) | in synproxy_build_options()
125 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) | in synproxy_build_options()
130 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options()
135 *ptr++ = htonl(opts->tsval); in synproxy_build_options()
136 *ptr++ = htonl(opts->tsecr); in synproxy_build_options()
138 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options()
144 *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()
Dnf_conntrack_seqadj.c87 new_start_seq = htonl(ntohl(sack->start_seq) - in nf_ct_sack_block_adjust()
90 new_start_seq = htonl(ntohl(sack->start_seq) - in nf_ct_sack_block_adjust()
95 new_end_seq = htonl(ntohl(sack->end_seq) - in nf_ct_sack_block_adjust()
98 new_end_seq = htonl(ntohl(sack->end_seq) - in nf_ct_sack_block_adjust()
193 newseq = htonl(ntohl(tcph->seq) + seqoff); in nf_ct_seq_adjust()
194 newack = htonl(ntohl(tcph->ack_seq) - ackoff); in nf_ct_seq_adjust()
Dnft_byteorder.c50 d[i].u32 = (__force __u32)htonl(s[i].u32); in nft_byteorder_eval()
128 if (nla_put_be32(skb, NFTA_BYTEORDER_OP, htonl(priv->op))) in nft_byteorder_dump()
130 if (nla_put_be32(skb, NFTA_BYTEORDER_LEN, htonl(priv->len))) in nft_byteorder_dump()
132 if (nla_put_be32(skb, NFTA_BYTEORDER_SIZE, htonl(priv->size))) in nft_byteorder_dump()
Dnfnetlink_log.c440 htonl(indev->ifindex))) in __build_packet_message()
448 htonl(indev->ifindex)) || in __build_packet_message()
452 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in __build_packet_message()
460 htonl(indev->ifindex))) in __build_packet_message()
466 htonl(physindev->ifindex))) in __build_packet_message()
475 htonl(outdev->ifindex))) in __build_packet_message()
483 htonl(outdev->ifindex)) || in __build_packet_message()
487 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in __build_packet_message()
495 htonl(outdev->ifindex))) in __build_packet_message()
501 htonl(physoutdev->ifindex))) in __build_packet_message()
[all …]
Dnfnetlink_queue.c253 return flags ? nla_put_be32(nlskb, NFQA_SKB_INFO, htonl(flags)) : 0; in nfqnl_put_packet_info()
267 htonl(from_kuid_munged(&init_user_ns, cred->fsuid)))) in nfqnl_put_sk_uidgid()
270 htonl(from_kgid_munged(&init_user_ns, cred->fsgid)))) in nfqnl_put_sk_uidgid()
418 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message()
426 htonl(indev->ifindex)) || in nfqnl_build_packet_message()
430 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in nfqnl_build_packet_message()
438 htonl(indev->ifindex))) in nfqnl_build_packet_message()
444 htonl(physinif))) in nfqnl_build_packet_message()
452 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) in nfqnl_build_packet_message()
460 htonl(outdev->ifindex)) || in nfqnl_build_packet_message()
[all …]
Dnft_nat.c221 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_SNAT))) in nft_nat_dump()
225 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_DNAT))) in nft_nat_dump()
230 if (nla_put_be32(skb, NFTA_NAT_FAMILY, htonl(priv->family))) in nft_nat_dump()
250 if (nla_put_be32(skb, NFTA_NAT_FLAGS, htonl(priv->flags))) in nft_nat_dump()
Dnf_conntrack_netlink.c147 if (nla_put_be32(skb, CTA_STATUS, htonl(ct->status))) in ctnetlink_dump_status()
163 if (nla_put_be32(skb, CTA_TIMEOUT, htonl(timeout))) in ctnetlink_dump_timeout()
306 if (nla_put_be32(skb, CTA_MARK, htonl(ct->mark))) in ctnetlink_dump_mark()
414 htonl(seq->correction_pos)) || in dump_ct_seq_adj()
416 htonl(seq->offset_before)) || in dump_ct_seq_adj()
418 htonl(seq->offset_after))) in dump_ct_seq_adj()
452 if (nla_put_be32(skb, CTA_ID, htonl((unsigned long)ct))) in ctnetlink_dump_id()
463 if (nla_put_be32(skb, CTA_USE, htonl(atomic_read(&ct->ct_general.use)))) in ctnetlink_dump_use()
1984 if (nla_put_be32(skb, CTA_STATS_SEARCHED, htonl(st->searched)) || in ctnetlink_ct_stat_cpu_fill_info()
1985 nla_put_be32(skb, CTA_STATS_FOUND, htonl(st->found)) || in ctnetlink_ct_stat_cpu_fill_info()
[all …]
Dnft_payload.c136 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || in nft_payload_dump()
137 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || in nft_payload_dump()
138 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len))) in nft_payload_dump()
Dnft_log.c143 if (nla_put_be32(skb, NFTA_LOG_LEVEL, htonl(li->u.log.level))) in nft_log_dump()
148 htonl(li->u.log.logflags))) in nft_log_dump()
158 htonl(li->u.ulog.copy_len))) in nft_log_dump()
Dnfnetlink_cthelper.c380 htonl(helper->expect_class_max))) in nfnl_cthelper_dump_policy()
394 htonl(helper->expect_policy[i].max_expected))) in nfnl_cthelper_dump_policy()
398 htonl(helper->expect_policy[i].timeout))) in nfnl_cthelper_dump_policy()
432 if (nla_put_be32(skb, NFCTH_QUEUE_NUM, htonl(helper->queue_num))) in nfnl_cthelper_fill_info()
441 if (nla_put_be32(skb, NFCTH_PRIV_DATA_LEN, htonl(helper->data_len))) in nfnl_cthelper_fill_info()
449 if (nla_put_be32(skb, NFCTH_STATUS, htonl(status))) in nfnl_cthelper_fill_info()
Dnft_exthdr.c86 if (nla_put_be32(skb, NFTA_EXTHDR_OFFSET, htonl(priv->offset))) in nft_exthdr_dump()
88 if (nla_put_be32(skb, NFTA_EXTHDR_LEN, htonl(priv->len))) in nft_exthdr_dump()
Dxt_cluster.c66 return ((st & htonl(0xFF000000)) == htonl(0xFF000000)); in xt_cluster_ipv6_is_multicast()
Dnf_conntrack_proto_tcp.c456 && *(__be32 *)ptr == htonl((TCPOPT_NOP << 24) in tcp_sack()
1361 htonl(timeouts[TCP_CONNTRACK_SYN_SENT] / HZ)) || in tcp_timeout_obj_to_nlattr()
1363 htonl(timeouts[TCP_CONNTRACK_SYN_RECV] / HZ)) || in tcp_timeout_obj_to_nlattr()
1365 htonl(timeouts[TCP_CONNTRACK_ESTABLISHED] / HZ)) || in tcp_timeout_obj_to_nlattr()
1367 htonl(timeouts[TCP_CONNTRACK_FIN_WAIT] / HZ)) || in tcp_timeout_obj_to_nlattr()
1369 htonl(timeouts[TCP_CONNTRACK_CLOSE_WAIT] / HZ)) || in tcp_timeout_obj_to_nlattr()
1371 htonl(timeouts[TCP_CONNTRACK_LAST_ACK] / HZ)) || in tcp_timeout_obj_to_nlattr()
1373 htonl(timeouts[TCP_CONNTRACK_TIME_WAIT] / HZ)) || in tcp_timeout_obj_to_nlattr()
1375 htonl(timeouts[TCP_CONNTRACK_CLOSE] / HZ)) || in tcp_timeout_obj_to_nlattr()
1377 htonl(timeouts[TCP_CONNTRACK_SYN_SENT2] / HZ)) || in tcp_timeout_obj_to_nlattr()
[all …]
Dnf_conntrack_sane.c104 if (req->RPC_code != htonl(SANE_NET_START)) { in help()
128 if (reply->status != htonl(SANE_STATUS_SUCCESS)) { in help()
Dnft_cmp.c98 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(priv->op))) in nft_cmp_dump()
153 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(NFT_CMP_EQ))) in nft_cmp_fast_dump()
Dnft_masq.c68 if (nla_put_be32(skb, NFTA_MASQ_FLAGS, htonl(priv->flags))) in nft_masq_dump()
Dnft_limit.c94 nla_put_be32(skb, NFTA_LIMIT_BURST, htonl(limit->burst)) || in nft_limit_dump()
95 nla_put_be32(skb, NFTA_LIMIT_TYPE, htonl(type))) in nft_limit_dump()
Dnft_reject.c58 if (nla_put_be32(skb, NFTA_REJECT_TYPE, htonl(priv->type))) in nft_reject_dump()
Dnft_redir.c100 nla_put_be32(skb, NFTA_REDIR_FLAGS, htonl(priv->flags))) in nft_redir_dump()
Dnf_nat_redirect.c49 newdst = htonl(0x7F000001); in nf_nat_redirect_ipv4()
Dnf_conntrack_proto_udp.c188 htonl(timeouts[UDP_CT_UNREPLIED] / HZ)) || in udp_timeout_obj_to_nlattr()
190 htonl(timeouts[UDP_CT_REPLIED] / HZ))) in udp_timeout_obj_to_nlattr()
Dnf_conntrack_proto_udplite.c203 htonl(timeouts[UDPLITE_CT_UNREPLIED] / HZ)) || in udplite_timeout_obj_to_nlattr()
205 htonl(timeouts[UDPLITE_CT_REPLIED] / HZ))) in udplite_timeout_obj_to_nlattr()
Dnft_meta.c309 if (nla_put_be32(skb, NFTA_META_KEY, htonl(priv->key))) in nft_meta_get_dump()
325 if (nla_put_be32(skb, NFTA_META_KEY, htonl(priv->key))) in nft_meta_set_dump()
Dnft_reject_inet.c101 if (nla_put_be32(skb, NFTA_REJECT_TYPE, htonl(priv->type))) in nft_reject_inet_dump()
Dnft_ct.c365 if (nla_put_be32(skb, NFTA_CT_KEY, htonl(priv->key))) in nft_ct_get_dump()
393 if (nla_put_be32(skb, NFTA_CT_KEY, htonl(priv->key))) in nft_ct_set_dump()
Dnft_compat.c272 nla_put_be32(skb, NFTA_TARGET_REV, htonl(target->revision)) || in nft_target_dump()
454 nla_put_be32(skb, NFTA_MATCH_REV, htonl(match->revision)) || in nft_match_dump()
509 nla_put_be32(skb, NFTA_COMPAT_REV, htonl(rev)) || in nfnl_compat_fill_info()
510 nla_put_be32(skb, NFTA_COMPAT_TYPE, htonl(target))) in nfnl_compat_fill_info()
Dnf_conntrack_proto_gre.c333 htonl(timeouts[GRE_CT_UNREPLIED] / HZ)) || in gre_timeout_obj_to_nlattr()
335 htonl(timeouts[GRE_CT_REPLIED] / HZ))) in gre_timeout_obj_to_nlattr()
Dnft_bitwise.c101 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(priv->len))) in nft_bitwise_dump()
Dnf_conntrack_proto_generic.c129 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr()
Dnf_tables_api.c460 nla_put_be32(skb, NFTA_TABLE_FLAGS, htonl(table->flags)) || in nf_tables_fill_table_info()
461 nla_put_be32(skb, NFTA_TABLE_USE, htonl(table->use))) in nf_tables_fill_table_info()
993 if (nla_put_be32(skb, NFTA_HOOK_HOOKNUM, htonl(ops->hooknum))) in nf_tables_fill_chain_info()
995 if (nla_put_be32(skb, NFTA_HOOK_PRIORITY, htonl(ops->priority))) in nf_tables_fill_chain_info()
1003 htonl(basechain->policy))) in nf_tables_fill_chain_info()
1013 if (nla_put_be32(skb, NFTA_CHAIN_USE, htonl(chain->use))) in nf_tables_fill_chain_info()
2471 if (nla_put_be32(skb, NFTA_SET_FLAGS, htonl(set->flags))) in nf_tables_fill_set()
2474 if (nla_put_be32(skb, NFTA_SET_KEY_TYPE, htonl(set->ktype))) in nf_tables_fill_set()
2476 if (nla_put_be32(skb, NFTA_SET_KEY_LEN, htonl(set->klen))) in nf_tables_fill_set()
2479 if (nla_put_be32(skb, NFTA_SET_DATA_TYPE, htonl(set->dtype))) in nf_tables_fill_set()
[all …]
Dnfnetlink_acct.c166 nla_put_be32(skb, NFACCT_USE, htonl(atomic_read(&acct->refcnt)))) in nfnl_acct_fill_info()
171 if (nla_put_be32(skb, NFACCT_FLAGS, htonl(old_flags)) || in nfnl_acct_fill_info()
Dnf_conntrack_ftp.c164 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | in try_rfc959()
256 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) in try_eprt()
/linux-4.4.14/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c164 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in send_act_open_req()
165 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req()
171 req->opt0h = htonl(V_KEEP_ALIVE(1) | F_TCAM_BYPASS | in send_act_open_req()
174 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | in send_act_open_req()
209 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_close_req()
210 req->wr.wr_lo = htonl(V_WR_TID(tid)); in send_close_req()
211 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid)); in send_close_req()
212 req->rsvd = htonl(csk->write_seq); in send_close_req()
253 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); in send_abort_req()
254 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_req()
[all …]
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Dvnic_vic.c40 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc()
69 vp->num_tlvs = htonl(ntohl(vp->num_tlvs) + 1); in vic_provinfo_add_tlv()
70 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv()
/linux-4.4.14/fs/nfs_common/
Dnfsacl.c57 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
60 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode()
63 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode()
66 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode()
69 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode()
75 *p++ = htonl(entry->e_perm & S_IRWXO); in xdr_nfsace_encode()
/linux-4.4.14/drivers/media/usb/ttusb-dec/
Dttusbdecfe.c100 __be32 freq = htonl(p->frequency / 1000); in ttusbdecfe_dvbt_set_frontend()
137 freq = htonl(p->frequency + in ttusbdecfe_dvbs_set_frontend()
140 sym_rate = htonl(p->symbol_rate); in ttusbdecfe_dvbs_set_frontend()
142 band = htonl(state->hi_band ? LOF_HI : LOF_LO); in ttusbdecfe_dvbs_set_frontend()
144 lnb_voltage = htonl(state->voltage); in ttusbdecfe_dvbs_set_frontend()
/linux-4.4.14/net/rxrpc/
Drxkad.c138 tmpbuf.x[3] = htonl(conn->security_ix); in rxkad_prime_packet_security()
175 tmpbuf.hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth()
220 rxkhdr.data_size = htonl(data_size | (u32) check << 16); in rxkad_secure_packet_encrypt()
289 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); in rxkad_secure_packet()
524 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); in rxkad_verify_packet()
584 challenge.version = htonl(2); in rxkad_issue_challenge()
585 challenge.nonce = htonl(conn->security_nonce); in rxkad_issue_challenge()
586 challenge.min_level = htonl(0); in rxkad_issue_challenge()
613 hdr.serial = htonl(atomic_inc_return(&conn->serial)); in rxkad_issue_challenge()
663 hdr->serial = htonl(atomic_inc_return(&conn->serial)); in rxkad_send_response()
[all …]
Dar-ack.c251 htonl(atomic_inc_return(&call->conn->serial)); in rxrpc_resend()
980 data = htonl(call->abort_code); in rxrpc_process_call()
1000 ack.firstPacket = htonl(call->rx_data_eaten + 1); in rxrpc_process_call()
1109 ack.firstPacket = htonl(call->rx_data_eaten + 1); in rxrpc_process_call()
1220 ackinfo.maxMTU = htonl(mtu); in rxrpc_process_call()
1221 ackinfo.rwind = htonl(rxrpc_rx_window_size); in rxrpc_process_call()
1224 ackinfo.rxMTU = htonl(rxrpc_rx_mtu); in rxrpc_process_call()
1225 ackinfo.jumbo_max = htonl(rxrpc_rx_jumbo_max); in rxrpc_process_call()
1227 hdr.serial = htonl(atomic_inc_return(&call->conn->serial)); in rxrpc_process_call()
1245 hdr.serial = htonl(atomic_inc_return(&call->conn->serial)); in rxrpc_process_call()
Dar-connevent.c103 word = htonl(abort_code); in rxrpc_abort_connection()
112 hdr.serial = htonl(atomic_inc_return(&conn->serial)); in rxrpc_abort_connection()
382 code = htonl(skb->priority); in rxrpc_reject_packets()
Dar-connection.c272 conn->cid = htonl(real_conn_id); in rxrpc_assign_connection_id()
407 call->cid = conn->cid | htonl(chan); in rxrpc_connect_exclusive()
408 call->call_id = htonl(++conn->call_counter); in rxrpc_connect_exclusive()
596 call->cid = conn->cid | htonl(chan); in rxrpc_connect_call()
597 call->call_id = htonl(++conn->call_counter); in rxrpc_connect_call()
Dar-output.c656 sp->hdr.seq = htonl(seq); in rxrpc_send_data()
658 htonl(atomic_inc_return(&conn->serial)); in rxrpc_send_data()
Dar-input.c484 sp->hdr.seq = htonl(ntohl(sp->hdr.seq) + 1); in rxrpc_process_jumbo_packet()
485 sp->hdr.serial = htonl(ntohl(sp->hdr.serial) + 1); in rxrpc_process_jumbo_packet()
/linux-4.4.14/net/netfilter/ipset/
Dpfxlen.c8 htonl(a), htonl(b), \
9 htonl(c), htonl(d), \
Dip_set_hash_netnet.c115 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netnet4_data_list()
217 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netnet4_uadt()
218 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netnet4_uadt()
254 e.ip[0] = htonl(ip); in hash_netnet4_uadt()
260 e.ip[1] = htonl(ip2); in hash_netnet4_uadt()
346 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netnet6_data_list()
Dip_set_hash_ipportnet.c115 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_ipportnet4_data_list()
230 e.ip = htonl(ip); in hash_ipportnet4_uadt()
231 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()
275 e.ip = htonl(ip); in hash_ipportnet4_uadt()
285 e.ip2 = htonl(ip2); in hash_ipportnet4_uadt()
364 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_ipportnet6_data_list()
Dip_set_hash_net.c96 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_net4_data_list()
178 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
197 e.ip = htonl(ip); in hash_net4_uadt()
262 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_net6_data_list()
Dip_set_hash_netportnet.c125 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netportnet4_data_list()
251 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netportnet4_uadt()
252 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netportnet4_uadt()
295 e.ip[0] = htonl(ip); in hash_netportnet4_uadt()
305 e.ip[1] = htonl(ip2); in hash_netportnet4_uadt()
400 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netportnet6_data_list()
Dip_set_hash_ipmark.c64 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark4_data_list()
153 e.ip = htonl(ip); in hash_ipmark4_uadt()
187 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark6_data_list()
Dip_set_hash_netport.c111 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netport4_data_list()
218 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
245 e.ip = htonl(ip); in hash_netport4_uadt()
323 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netport6_data_list()
Dip_set_hash_netiface.c118 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netiface4_data_list()
240 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
261 e.ip = htonl(ip); in hash_netiface4_uadt()
344 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) in hash_netiface6_data_list()
Dip_set_bitmap_ip.c99 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list()
105 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || in bitmap_ip_do_head()
106 nla_put_ipaddr4(skb, IPSET_ATTR_IP_TO, htonl(map->last_ip)) || in bitmap_ip_do_head()
Dip_set_bitmap_ipmac.c198 htonl(map->first_ip + id)) || in bitmap_ipmac_do_list()
206 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || in bitmap_ipmac_do_head()
207 nla_put_ipaddr4(skb, IPSET_ATTR_IP_TO, htonl(map->last_ip)); in bitmap_ipmac_do_head()
Dip_set_hash_ip.c128 e.ip = htonl(ip); in hash_ip4_uadt()
154 e.ip = htonl(ip); in hash_ip4_uadt()
Dip_set_bitmap_gen.h98 nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)) || in mtype_head()
99 nla_put_net32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize))) in mtype_head()
Dip_set_list_set.c459 if (nla_put_net32(skb, IPSET_ATTR_SIZE, htonl(map->size)) || in list_set_head()
460 nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)) || in list_set_head()
462 htonl(sizeof(*map) + n * set->dsize))) in list_set_head()
Dip_set_hash_gen.h1073 htonl(jhash_size(htable_bits))) || in mtype_head()
1074 nla_put_net32(skb, IPSET_ATTR_MAXELEM, htonl(h->maxelem))) in mtype_head()
1085 if (nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)) || in mtype_head()
1086 nla_put_net32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize))) in mtype_head()
/linux-4.4.14/arch/x86/um/asm/
Dchecksum_32.h33 "r"(htonl(len)), "r"(htonl(proto)), "0"(sum)); in csum_ipv6_magic()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h56 (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_TP_WR) | \
58 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \
65 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
69 (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | \
71 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \
Dsge.c862 sgl->len0 = htonl(len); in write_sgl()
866 sgl->len0 = htonl(skb_frag_size(&si->frags[0])); in write_sgl()
870 sgl->cmd_nsge = htonl(ULPTX_CMD_V(ULP_TX_SC_DSGL) | in write_sgl()
1215 wr->equiq_to_len16 = htonl(wr_mid); in t4_eth_xmit()
1228 wr->op_immdlen = htonl(FW_WR_OP_V(FW_ETH_TX_PKT_WR) | in t4_eth_xmit()
1230 lso->c.lso_ctrl = htonl(LSO_OPCODE_V(CPL_TX_PKT_LSO) | in t4_eth_xmit()
1238 lso->c.seqno_offset = htonl(0); in t4_eth_xmit()
1240 lso->c.len = htonl(skb->len); in t4_eth_xmit()
1242 lso->c.len = htonl(LSO_T5_XFER_SIZE_V(skb->len)); in t4_eth_xmit()
1257 wr->op_immdlen = htonl(FW_WR_OP_V(FW_ETH_TX_PKT_WR) | in t4_eth_xmit()
[all …]
Dclip_tbl.c51 c.op_to_write = htonl(FW_CMD_OP_V(FW_CLIP_CMD) | in clip6_get_mbox()
53 c.alloc_to_len16 = htonl(FW_CLIP_CMD_ALLOC_F | FW_LEN16(c)); in clip6_get_mbox()
66 c.op_to_write = htonl(FW_CMD_OP_V(FW_CLIP_CMD) | in clip6_release_mbox()
68 c.alloc_to_len16 = htonl(FW_CLIP_CMD_FREE_F | FW_LEN16(c)); in clip6_release_mbox()
Dcxgb4_main.c1211 fwr->op_pkd = htonl(FW_WR_OP_V(FW_FILTER_WR)); in set_filter_wr()
1212 fwr->len16_pkd = htonl(FW_WR_LEN16_V(sizeof(*fwr)/16)); in set_filter_wr()
1214 htonl(FW_FILTER_WR_TID_V(ftid) | in set_filter_wr()
1219 htonl(FW_FILTER_WR_RPTTID_V(f->fs.rpttid) | in set_filter_wr()
1249 htonl(FW_FILTER_WR_MACI_V(f->fs.val.macidx) | in set_filter_wr()
1604 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, tid)); in mk_tid_release()
1768 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, stid)); in cxgb4_create_server()
1772 req->peer_ip = htonl(0); in cxgb4_create_server()
1809 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ6, stid)); in cxgb4_create_server6()
1841 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, stid)); in cxgb4_remove_server()
[all …]
/linux-4.4.14/samples/bpf/
Dsockex3_user.c57 inet_ntoa((struct in_addr){htonl(next_key.src)}), in main()
59 inet_ntoa((struct in_addr){htonl(next_key.dst)}), in main()
Dsockex2_user.c42 inet_ntoa((struct in_addr){htonl(next_key)}), in main()
/linux-4.4.14/net/ipv4/netfilter/
Dipt_SYNPROXY.c99 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
100 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
140 nth->seq = htonl(recv_seq - 1); in synproxy_send_server_syn()
144 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
185 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack()
186 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_server_ack()
223 nth->seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_ack()
Dnf_reject_ipv4.c86 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + in nf_reject_ip_tcphdr_put()
/linux-4.4.14/arch/arm/include/asm/
Dchecksum.h150 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
151 htonl(proto), sum)); in csum_ipv6_magic()
/linux-4.4.14/arch/score/include/asm/
Dchecksum.h240 "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_SYNPROXY.c112 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
113 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
153 nth->seq = htonl(recv_seq - 1); in synproxy_send_server_syn()
157 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
198 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack()
199 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_server_ack()
236 nth->seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_ack()
Dip6t_NPT.c55 mask = htonl((1 << (i - pfx_len + 32)) - 1); in ip6t_npt_map_pfx()
Dnf_reject_ipv6.c111 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + in nf_reject_ip6_tcphdr_put()
/linux-4.4.14/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c415 req->rsvd0 = htonl(csk->snd_nxt); in send_abort_req()
538 htonl(FW_WR_OP_V(FW_FLOWC_WR) | FW_FLOWC_WR_NPARAMS_V(nparams)); in send_tx_flowc_wr()
540 htonl(FW_WR_LEN16_V(flowclen16) | FW_WR_FLOWID_V(csk->tid)); in send_tx_flowc_wr()
542 flowc->mnemval[0].val = htonl(csk->cdev->pfvf); in send_tx_flowc_wr()
544 flowc->mnemval[1].val = htonl(csk->tx_chan); in send_tx_flowc_wr()
546 flowc->mnemval[2].val = htonl(csk->tx_chan); in send_tx_flowc_wr()
548 flowc->mnemval[3].val = htonl(csk->rss_qid); in send_tx_flowc_wr()
550 flowc->mnemval[4].val = htonl(csk->snd_nxt); in send_tx_flowc_wr()
552 flowc->mnemval[5].val = htonl(csk->rcv_nxt); in send_tx_flowc_wr()
554 flowc->mnemval[6].val = htonl(csk->snd_win); in send_tx_flowc_wr()
[all …]
/linux-4.4.14/net/tipc/
Dname_distr.c61 i->type = htonl(p->type); in publ_to_item()
62 i->lower = htonl(p->lower); in publ_to_item()
63 i->upper = htonl(p->upper); in publ_to_item()
64 i->ref = htonl(p->ref); in publ_to_item()
65 i->key = htonl(p->key); in publ_to_item()
Dmsg.h136 m->hdr[w] = htonl(val); in msg_set_word()
149 m->hdr[w] &= ~htonl(mask); in msg_set_bits()
150 m->hdr[w] |= htonl(val); in msg_set_bits()
241 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); in msg_set_size()
Dnetlink_compat.c576 link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP])); in tipc_nl_compat_link_dump()
937 node_info.addr = htonl(nla_get_u32(node[TIPC_NLA_NODE_ADDR])); in tipc_nl_compat_node_dump()
938 node_info.up = htonl(nla_get_flag(node[TIPC_NLA_NODE_UP])); in tipc_nl_compat_node_dump()
976 id = htonl(nla_get_u32(net[TIPC_NLA_NET_ID])); in tipc_nl_compat_net_dump()
/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_80211_rx.c159 hdr->version = htonl(LWNG_CAPHDR_VERSION); in prism2_rx_80211()
160 hdr->length = htonl(phdrlen); in prism2_rx_80211()
163 hdr->phytype = htonl(4); /* dss_dot11_b */ in prism2_rx_80211()
164 hdr->channel = htonl(local->channel); in prism2_rx_80211()
165 hdr->datarate = htonl(rx_stats->rate); in prism2_rx_80211()
166 hdr->antenna = htonl(0); /* unknown */ in prism2_rx_80211()
167 hdr->priority = htonl(0); /* unknown */ in prism2_rx_80211()
168 hdr->ssi_type = htonl(3); /* raw */ in prism2_rx_80211()
169 hdr->ssi_signal = htonl(rx_stats->signal); in prism2_rx_80211()
170 hdr->ssi_noise = htonl(rx_stats->noise); in prism2_rx_80211()
[all …]
/linux-4.4.14/arch/sparc/include/asm/
Dchecksum_64.h154 : "r" (saddr), "r" (daddr), "r"(htonl(len)), in csum_ipv6_magic()
155 "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
Dchecksum_32.h229 "r"(htonl(len)), "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_lib.h85 saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open()
90 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open()
Dpsock_tpacket.c178 ip->saddr = htonl(INADDR_LOOPBACK); in create_payload()
179 ip->daddr = htonl(INADDR_LOOPBACK); in create_payload()
/linux-4.4.14/include/linux/byteorder/
Dgeneric.h130 #undef htonl
138 #define htonl(x) ___htonl(x) macro
/linux-4.4.14/arch/sh/include/asm/
Dchecksum_32.h191 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/arch/xtensa/include/asm/
Dchecksum.h234 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/arch/x86/include/asm/
Dchecksum_32.h170 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/net/802/
Dhippi.c62 hip->fp.fixed = htonl(0x04800018); in hippi_header()
63 hip->fp.d2_size = htonl(len + 8); in hippi_header()
/linux-4.4.14/fs/lockd/
Dxdr.c76 *p++ = htonl(c->len); in nlm_encode_cookie()
161 *p++ = htonl(resp->lock.svid); in nlm_encode_testres()
173 *p++ = htonl(start); in nlm_encode_testres()
174 *p++ = htonl(len); in nlm_encode_testres()
Dxdr4.c76 *p++ = htonl(c->len); in nlm4_encode_cookie()
154 *p++ = htonl(resp->lock.svid); in nlm4_encode_testres()
/linux-4.4.14/drivers/net/wan/
Dhdlc_cisco.c113 data->type = htonl(type); in cisco_keepalive_send()
118 data->time = htonl((jiffies - INITIAL_JIFFIES) * (1000 / HZ)); in cisco_keepalive_send()
274 cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ, htonl(++st->txseq), in cisco_timer()
275 htonl(st->rxseq)); in cisco_timer()
/linux-4.4.14/net/ipv4/
Dip_options.c64 midtime = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC); in ip_options_build()
247 if (*spec_dst == htonl(INADDR_ANY)) in spec_dst_fill()
260 __be32 spec_dst = htonl(INADDR_ANY); in ip_options_compile()
476 icmp_send(skb, ICMP_PARAMETERPROB, 0, htonl((pp_ptr-iph)<<24)); in ip_options_compile()
627 icmp_send(skb, ICMP_PARAMETERPROB, 0, htonl(16<<24)); in ip_options_rcv_srr()
635 icmp_send(skb, ICMP_PARAMETERPROB, 0, htonl((opt->srr+2)<<24)); in ip_options_rcv_srr()
Dtcp_offload.c122 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment()
150 th->seq = htonl(seq); in tcp_gso_segment()
167 delta = htonl(oldlen + (skb_tail_pointer(skb) - in tcp_gso_segment()
Dtcp_output.c453 *ptr++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_options_write()
461 *ptr++ = htonl((TCPOPT_MSS << 24) | in tcp_options_write()
468 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) | in tcp_options_write()
474 *ptr++ = htonl((TCPOPT_NOP << 24) | in tcp_options_write()
479 *ptr++ = htonl(opts->tsval); in tcp_options_write()
480 *ptr++ = htonl(opts->tsecr); in tcp_options_write()
484 *ptr++ = htonl((TCPOPT_NOP << 24) | in tcp_options_write()
491 *ptr++ = htonl((TCPOPT_NOP << 24) | in tcp_options_write()
502 *ptr++ = htonl((TCPOPT_NOP << 24) | in tcp_options_write()
510 *ptr++ = htonl(sp[this_sack].start_seq); in tcp_options_write()
[all …]
Dxfrm4_output.c39 ICMP_FRAG_NEEDED, htonl(mtu)); in xfrm4_tunnel_check_size()
Dip_forward.c126 htonl(mtu)); in ip_forward()
Dipmr.c839 int line = MFC_HASH(htonl(INADDR_ANY), htonl(INADDR_ANY)); in ipmr_cache_find_any_parent()
843 if (c->mfc_origin == htonl(INADDR_ANY) && in ipmr_cache_find_any_parent()
844 c->mfc_mcastgrp == htonl(INADDR_ANY) && in ipmr_cache_find_any_parent()
855 int line = MFC_HASH(mcastgrp, htonl(INADDR_ANY)); in ipmr_cache_find_any()
858 if (mcastgrp == htonl(INADDR_ANY)) in ipmr_cache_find_any()
862 if (c->mfc_origin == htonl(INADDR_ANY) && in ipmr_cache_find_any()
1155 if (mfc->mfcc_mcastgrp.s_addr != htonl(INADDR_ANY) && in ipmr_mfc_add()
1818 if (cache->mfc_origin == htonl(INADDR_ANY) && true_vifi >= 0) { in ip_mr_forward()
1874 if (cache->mfc_origin == htonl(INADDR_ANY) && in ip_mr_forward()
1875 cache->mfc_mcastgrp == htonl(INADDR_ANY)) { in ip_mr_forward()
[all …]
Desp4.c241 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp_output()
252 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.hi); in esp_output()
467 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.input.hi); in esp_input()
Dfib_trie.c1195 rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, in fib_table_insert()
1246 rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, new_fa->tb_id, in fib_table_insert()
1546 rtmsg_fib(RTM_DELROUTE, htonl(key), fa_to_delete, plen, tb->tb_id, in fib_table_delete()
1900 __be32 xkey = htonl(l->key); in fn_trie_dump_leaf()
2391 __be32 prf = htonl(n->key); in fib_trie_seq_show()
2399 __be32 val = htonl(n->key); in fib_trie_seq_show()
2556 if (mask == htonl(0xFFFFFFFF)) in fib_flag_trans()
2583 prefix = htonl(l->key); in fib_route_seq_show()
Dtcp_ipv4.c622 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
664 rep.opt[0] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_reset()
734 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v4_send_ack()
737 rep.opt[1] = htonl(tsval); in tcp_v4_send_ack()
738 rep.opt[2] = htonl(tsecr); in tcp_v4_send_ack()
746 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
747 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
755 rep.opt[offset++] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_ack()
Dipcomp.c44 spi = htonl(ntohs(ipch->cpi)); in ipcomp4_err()
Dipconfig.c457 ic_netmask = htonl(IN_CLASSA_NET); in ic_defaults()
459 ic_netmask = htonl(IN_CLASSB_NET); in ic_defaults()
461 ic_netmask = htonl(IN_CLASSC_NET); in ic_defaults()
834 h->daddr = htonl(INADDR_BROADCAST); in ic_bootp_send_if()
Dah4.c220 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in ah_output()
227 *seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi); in ah_output()
/linux-4.4.14/drivers/net/slip/
Dslhc.c544 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); in slhc_uncompress()
545 thp->seq = htonl( ntohl(thp->seq) + i); in slhc_uncompress()
550 thp->seq = htonl( ntohl(thp->seq) + in slhc_uncompress()
573 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x); in slhc_uncompress()
579 thp->seq = htonl( ntohl(thp->seq) + x); in slhc_uncompress()
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c96 #define MYRI10GE_NO_CONFIRM_DATA htonl(0xffffffff)
406 buf->data0 = htonl(data->data0); in myri10ge_send_cmd()
407 buf->data1 = htonl(data->data1); in myri10ge_send_cmd()
408 buf->data2 = htonl(data->data2); in myri10ge_send_cmd()
409 buf->cmd = htonl(cmd); in myri10ge_send_cmd()
413 buf->response_addr.low = htonl(dma_low); in myri10ge_send_cmd()
414 buf->response_addr.high = htonl(dma_high); in myri10ge_send_cmd()
415 response->result = htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd()
430 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd()
439 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd()
[all …]
/linux-4.4.14/arch/mips/include/asm/
Dchecksum.h277 "0" (htonl(len)), "r" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
/linux-4.4.14/net/batman-adv/
Dgateway_common.c176 gw.bandwidth_down = htonl(down); in batadv_gw_tvlv_container_update()
177 gw.bandwidth_up = htonl(up); in batadv_gw_tvlv_container_update()
/linux-4.4.14/net/sctp/
Dsm_make_chunk.c248 init.init_tag = htonl(asoc->c.my_vtag); in sctp_make_init()
249 init.a_rwnd = htonl(asoc->rwnd); in sctp_make_init()
252 init.initial_tsn = htonl(asoc->c.initial_tsn); in sctp_make_init()
362 aiparam.adaptation_ind = htonl(sp->adaptation_ind); in sctp_make_init()
407 initack.init_tag = htonl(asoc->c.my_vtag); in sctp_make_init_ack()
408 initack.a_rwnd = htonl(asoc->rwnd); in sctp_make_init_ack()
411 initack.initial_tsn = htonl(asoc->c.initial_tsn); in sctp_make_init_ack()
503 aiparam.adaptation_ind = htonl(sp->adaptation_ind); in sctp_make_init_ack()
665 cwr.lowest_tsn = htonl(lowest_tsn); in sctp_make_cwr()
699 ecne.lowest_tsn = htonl(lowest_tsn); in sctp_make_ecne()
[all …]
Dprotocol.c325 addr->v4.sin_addr.s_addr = htonl(INADDR_ANY); in sctp_v4_inaddr_any()
332 return htonl(INADDR_ANY) == addr->v4.sin_addr.s_addr; in sctp_v4_is_any()
368 if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && in sctp_v4_available()
938 if (htonl(INADDR_ANY) == addr1->v4.sin_addr.s_addr || in sctp_inet_cmp_addr()
939 htonl(INADDR_ANY) == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()
Dipv6.c447 sk->sk_v6_rcv_saddr.s6_addr32[2] = htonl(0x0000ffff); in sctp_v6_to_sk_saddr()
461 sk->sk_v6_daddr.s6_addr32[2] = htonl(0x0000ffff); in sctp_v6_to_sk_daddr()
720 return *((__u32 *)(ipv6_hdr(skb))) & htonl(1 << 20); in sctp_v6_is_ce()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_app.c296 th->seq = htonl(seq + vseq->delta); in vs_fix_seq()
300 th->seq = htonl(seq + vseq->previous_delta); in vs_fix_seq()
325 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq()
330 th->ack_seq = htonl(ack_seq - vseq->previous_delta); in vs_fix_ack_seq()
/linux-4.4.14/net/dccp/
Doptions.c348 __be32 now = htonl(dccp_timestamp()); in dccp_insert_option_timestamp()
365 tstamp_echo = htonl(dreq->dreq_timestamp_echo); in dccp_insert_option_timestamp_echo()
369 tstamp_echo = htonl(dp->dccps_timestamp_echo); in dccp_insert_option_timestamp_echo()
392 const __be32 var32 = htonl(elapsed_time); in dccp_insert_option_timestamp_echo()
Ddccp.h409 dhx->dccph_seq_low = htonl(gss & 0xffffffff); in dccp_hdr_set_seq()
417 dhack->dccph_ack_nr_low = htonl(gsr & 0xffffffff); in dccp_hdr_set_ack()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1069 wrp->wr_hi = htonl(F_WR_SOP | F_WR_EOP | V_WR_DATATYPE(1) | in write_wr_hdr_sgl()
1072 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl()
1080 wrp->wr_hi = htonl(F_WR_SOP | V_WR_DATATYPE(1) | in write_wr_hdr_sgl()
1107 wrp->wr_hi = htonl(V_WR_DATATYPE(1) | in write_wr_hdr_sgl()
1109 wrp->wr_lo = htonl(V_WR_LEN(min(WR_FLITS, in write_wr_hdr_sgl()
1116 wrp->wr_hi |= htonl(F_WR_EOP); in write_wr_hdr_sgl()
1118 wp->wr_lo = htonl(V_WR_LEN(WR_FLITS) | V_WR_GEN(ogen)) | wr_lo; in write_wr_hdr_sgl()
1148 cpl->len = htonl(skb->len); in write_tx_pkt_wr()
1161 hdr->cntrl = htonl(cntrl); in write_tx_pkt_wr()
1167 hdr->lso_info = htonl(tso_info); in write_tx_pkt_wr()
[all …]
Dl2t.c100 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in setup_l2e_send_pending()
101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_L2T_WRITE_REQ, e->idx)); in setup_l2e_send_pending()
102 req->params = htonl(V_L2T_W_IDX(e->idx) | V_L2T_W_IFF(e->smt_idx) | in setup_l2e_send_pending()
Dcxgb3_offload.c556 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in mk_tid_release()
557 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, tid)); in mk_tid_release()
879 htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL)); in do_abort_req_rss()
880 rpl->wr.wr_lo = htonl(V_WR_TID(tid)); in do_abort_req_rss()
881 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, tid)); in do_abort_req_rss()
1100 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in set_l2t_ix()
1101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); in set_l2t_ix()
Dcxgb3_main.c476 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in init_tp_parity()
477 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SMT_WRITE_REQ, i)); in init_tp_parity()
500 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in init_tp_parity()
501 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_L2T_WRITE_REQ, i)); in init_tp_parity()
502 req->params = htonl(V_L2T_W_IDX(i)); in init_tp_parity()
523 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in init_tp_parity()
524 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_RTE_WRITE_REQ, i)); in init_tp_parity()
525 req->l2t_idx = htonl(V_L2T_W_IDX(i)); in init_tp_parity()
543 greq->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in init_tp_parity()
544 OPCODE_TID(greq) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, 0)); in init_tp_parity()
[all …]
/linux-4.4.14/firmware/
Dihex2fw.c232 data32 = htonl(data32); in process_ihex()
270 p->addr = htonl(p->addr); in output_records()
/linux-4.4.14/arch/blackfin/kernel/
Dflat.c52 val = htonl(val); in bfin_get_addr_from_rp()
/linux-4.4.14/include/rdma/
Dib.h63 a->sib_addr32[2] | (a->sib_addr32[3] ^ htonl(1))) == 0); in ib_addr_loopback()
Dib_addr.h282 if (addr->s6_addr32[0] == htonl(0xfe800000) && in rdma_link_local_addr()
/linux-4.4.14/include/net/sctp/
Dtsnmap.h163 map->dup_tsns[map->num_dup_tsns++] = htonl(tsn); in sctp_tsnmap_mark_dup()
Dconstants.h353 ((htonl(INADDR_BROADCAST) == a) || \
/linux-4.4.14/net/sunrpc/auth_gss/
Dauth_gss.c1491 *p++ = htonl(RPC_AUTH_GSS); in gss_marshal()
1498 *p++ = htonl((u32) RPC_GSS_VERSION); in gss_marshal()
1499 *p++ = htonl((u32) ctx->gc_proc); in gss_marshal()
1500 *p++ = htonl((u32) req->rq_seqno); in gss_marshal()
1501 *p++ = htonl((u32) gss_cred->gc_service); in gss_marshal()
1503 *cred_len = htonl((p - (cred_len + 1)) << 2); in gss_marshal()
1513 *p++ = htonl(RPC_AUTH_GSS); in gss_marshal()
1623 seq = htonl(task->tk_rqstp->rq_seqno); in gss_validate()
1679 *p++ = htonl(rqstp->rq_seqno); in gss_wrap_req_integ()
1686 *integ_len = htonl(integ_buf.len); in gss_wrap_req_integ()
[all …]
Dsvcauth_gss.c729 xdr_seq = htonl(seq); in gss_write_verf()
739 *p++ = htonl(mic.len); in gss_write_verf()
1596 *p++ = htonl(integ_len); in svcauth_gss_wrap_resp_integ()
1597 *p++ = htonl(gc->gc_seq); in svcauth_gss_wrap_resp_integ()
1640 *p++ = htonl(gc->gc_seq); in svcauth_gss_wrap_resp_priv()
1680 *len = htonl(resbuf->len - offset); in svcauth_gss_wrap_resp_priv()
/linux-4.4.14/drivers/scsi/
Dosst.c561 aux->format_id = htonl(0); in osst_init_aux()
563 aux->hdwr = htonl(0); in osst_init_aux()
568 aux->update_frame_cntr = htonl(STp->update_frame_cntr); in osst_init_aux()
573 par->first_frame_ppos = htonl(0); in osst_init_aux()
574 par->last_frame_ppos = htonl(0xbb7); in osst_init_aux()
575 aux->frame_seq_num = htonl(0); in osst_init_aux()
576 aux->logical_blk_num_high = htonl(0); in osst_init_aux()
577 aux->logical_blk_num = htonl(0); in osst_init_aux()
578 aux->next_mark_ppos = htonl(STp->first_mark_ppos); in osst_init_aux()
586 dat->dat_list[0].blk_sz = htonl(blk_sz); in osst_init_aux()
[all …]
/linux-4.4.14/drivers/target/tcm_fc/
Dtfc_cmd.c146 fcp->ext.fr_sns_len = htonl(len); in ft_queue_status()
217 txrdy->ft_burst_len = htonl(se_cmd->data_length); in ft_write_pending()
312 fcp->ext.fr_rsp_len = htonl(sizeof(*info)); in ft_send_resp_status()
Dtfc_sess.c396 spp->spp_params = htonl(fcp_parm | FCP_SPPF_TARG_FCN); in ft_prli_locked()
402 spp->spp_params = htonl(fcp_parm); in ft_prli_locked()
/linux-4.4.14/fs/ncpfs/
Dsock.c305 req->sign[0] = htonl(NCP_TCP_XMIT_MAGIC); in ncptcp_start_request()
306 req->sign[1] = htonl(req->tx_totallen + signlen); in ncptcp_start_request()
307 req->sign[2] = htonl(NCP_TCP_XMIT_VERSION); in ncptcp_start_request()
308 req->sign[3] = htonl(req->datalen + 8); in ncptcp_start_request()
569 if (server->rcv.buf.magic != htonl(NCP_TCP_RCVD_MAGIC)) { in __ncptcp_rcv_proc()
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_cm.c485 iph->saddr = htonl(cm_node->mapped_loc_addr); in form_cm_frame()
486 iph->daddr = htonl(cm_node->mapped_rem_addr); in form_cm_frame()
490 tcph->seq = htonl(cm_node->tcp_cntxt.loc_seq_num); in form_cm_frame()
494 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); in form_cm_frame()
548 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), in nes_create_mapinfo()
550 nes_create_sockaddr(htonl(cm_info->mapped_loc_addr), in nes_create_mapinfo()
568 nes_create_sockaddr(htonl(loc_addr), htons(loc_port), &local_sockaddr); in nes_remove_mapinfo()
569 nes_create_sockaddr(htonl(mapped_loc_addr), htons(mapped_loc_port), in nes_remove_mapinfo()
582 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), in nes_form_pm_msg()
584 nes_create_sockaddr(htonl(cm_info->rem_addr), htons(cm_info->rem_port), in nes_form_pm_msg()
[all …]
/linux-4.4.14/drivers/staging/wlan-ng/
Dhfa384x_usb.c3591 caphdr->version = htonl(P80211CAPTURE_VERSION); in hfa384x_int_rxmonitor()
3592 caphdr->length = htonl(sizeof(struct p80211_caphdr)); in hfa384x_int_rxmonitor()
3595 caphdr->phytype = htonl(4); /* dss_dot11_b */ in hfa384x_int_rxmonitor()
3596 caphdr->channel = htonl(hw->sniff_channel); in hfa384x_int_rxmonitor()
3597 caphdr->datarate = htonl(rxdesc->rate); in hfa384x_int_rxmonitor()
3598 caphdr->antenna = htonl(0); /* unknown */ in hfa384x_int_rxmonitor()
3599 caphdr->priority = htonl(0); /* unknown */ in hfa384x_int_rxmonitor()
3600 caphdr->ssi_type = htonl(3); /* rssi_raw */ in hfa384x_int_rxmonitor()
3601 caphdr->ssi_signal = htonl(rxdesc->signal); in hfa384x_int_rxmonitor()
3602 caphdr->ssi_noise = htonl(rxdesc->silence); in hfa384x_int_rxmonitor()
[all …]
/linux-4.4.14/arch/x86/lib/
Dcsum-wrappers_64.c142 rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + in csum_ipv6_magic()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_transport.c178 lesb->lesb_link_fail = htonl(lfc); in __fcoe_get_lesb()
179 lesb->lesb_vlink_fail = htonl(vlfc); in __fcoe_get_lesb()
180 lesb->lesb_miss_fka = htonl(mdac); in __fcoe_get_lesb()
182 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb()
/linux-4.4.14/security/keys/
Dtrusted.h113 *(uint32_t *) & buf->data[buf->len] = htonl(value); in store32()
Dtrusted.c498 ordinal = htonl(TPM_ORD_SEAL); in tpm_seal()
499 datsize = htonl(datalen); in tpm_seal()
500 pcrsize = htonl(pcrinfosize); in tpm_seal()
603 ordinal = htonl(TPM_ORD_UNSEAL); in tpm_unseal()
604 keyhndl = htonl(SRKHANDLE); in tpm_unseal()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.h63 dma_addr->a32.addr_lo = (u32) htonl(pa); in __bfa_dma_be_addr_set()
64 dma_addr->a32.addr_hi = (u32) htonl(upper_32_bits(pa)); in __bfa_dma_be_addr_set()
/linux-4.4.14/net/rds/
Drdma_transport.c155 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY); in rds_rdma_listen_init()
Dbind.c148 sin->sin_addr.s_addr == htonl(INADDR_ANY)) { in rds_bind()
Dtcp_listen.c191 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY); in rds_tcp_listen_init()
/linux-4.4.14/net/xfrm/
Dxfrm_input.c147 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi()
289 seq_hi = htonl(xfrm_replay_seqhi(x, seq)); in xfrm_input()
Dxfrm_hash.h67 mask = htonl((0xffffffff) << (32 - pbi)); in __xfrm6_pref_hash()
/linux-4.4.14/drivers/scsi/libfc/
Dfc_rport.c1447 lesb->lesb_link_fail = htonl(hst->link_failure_count); in fc_rport_recv_rls_req()
1448 lesb->lesb_sync_loss = htonl(hst->loss_of_sync_count); in fc_rport_recv_rls_req()
1449 lesb->lesb_sig_loss = htonl(hst->loss_of_signal_count); in fc_rport_recv_rls_req()
1450 lesb->lesb_prim_err = htonl(hst->prim_seq_protocol_err_count); in fc_rport_recv_rls_req()
1451 lesb->lesb_inv_word = htonl(hst->invalid_tx_word_count); in fc_rport_recv_rls_req()
1452 lesb->lesb_inv_crc = htonl(hst->invalid_crc_count); in fc_rport_recv_rls_req()
2001 spp->spp_params = htonl(fcp_parm | lport->service_params); in fc_rport_fcp_prli()
Dfc_libfc.c199 fh->fh_parm_offset = htonl(parm_offset); in fc_fill_hdr()
/linux-4.4.14/net/core/
Dpktgen.c183 #define MPLS_STACK_BOTTOM htonl(0x00000100)
843 pkt_dev->labels[n] = htonl(tmp); in get_labels()
2334 x = xfrm_state_lookup_byspi(pn->net, htonl(pkt_dev->spi), AF_INET); in get_ipsec_sa()
2448 htonl(0x000fffff)); in mod_cur_headers()
2499 pkt_dev->cur_saddr = htonl(t); in mod_cur_headers()
2515 s = htonl(t); in mod_cur_headers()
2528 pkt_dev->cur_daddr = htonl(t); in mod_cur_headers()
2758 pgh->pgh_magic = htonl(PKTGEN_MAGIC); in pktgen_finalize_skb()
2759 pgh->seq_num = htonl(pkt_dev->seq_num); in pktgen_finalize_skb()
2766 pgh->tv_sec = htonl(timestamp.tv_sec); in pktgen_finalize_skb()
[all …]
Dutils.c73 return htonl(l); in in_aton()
/linux-4.4.14/arch/um/drivers/
Dport_user.c128 addr.sin_addr.s_addr = htonl(INADDR_ANY); in port_listen_fd()
/linux-4.4.14/drivers/net/
Dvxlan.c126 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
171 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
782 ip->sin.sin_addr.s_addr = htonl(INADDR_ANY); in vxlan_fdb_parse()
1672 vxh->vx_flags |= htonl(VXLAN_HF_GBP); in vxlan_build_gbp_hdr()
1737 vxh->vx_flags = htonl(VXLAN_HF_VNI); in vxlan6_xmit_skb()
1747 vxh->vx_vni |= htonl(data); in vxlan6_xmit_skb()
1748 vxh->vx_flags |= htonl(VXLAN_HF_RCO); in vxlan6_xmit_skb()
1816 vxh->vx_flags = htonl(VXLAN_HF_VNI); in vxlan_xmit_skb()
1826 vxh->vx_vni |= htonl(data); in vxlan_xmit_skb()
1827 vxh->vx_flags |= htonl(VXLAN_HF_RCO); in vxlan_xmit_skb()
[all …]
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-socket.c400 INADDR_ANY : htonl(local_ip); in lnet_sock_create()
574 srvaddr.sin_addr.s_addr = htonl(peer_ip); in lnet_sock_connect()
/linux-4.4.14/include/scsi/
Dfc_encode.h67 fh->fh_parm_offset = htonl(parm_offset); in __fc_fill_fc_hdr()
556 csp->sp_e_d_tov = htonl(lport->e_d_tov); in fc_plogi_fill()
670 pp->spp.spp_params = htonl(lport->service_params); in fc_prli_fill()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcq.c292 swsqe->cqe.header |= htonl(CQE_SWCQE_V(1)); in flush_completed_wrs()
308 read_cqe->len = htonl(wq->sq.oldest_read->read_len); in create_read_req_cqe()
309 read_cqe->header = htonl(CQE_QPID_V(CQE_QPID(hw_cqe)) | in create_read_req_cqe()
584 hw_cqe->header |= htonl(CQE_STATUS_V(T4_ERR_MSN)); in poll_cq()
Dcm.c1827 req->op_compl = htonl(WR_OP_V(FW_OFLD_CONNECTION_WR)); in send_fw_act_open_req()
1828 req->len16_pkd = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16))); in send_fw_act_open_req()
1839 htonl(FW_OFLD_CONNECTION_WR_T_STATE_V(TCP_SYN_SENT) | in send_fw_act_open_req()
3605 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_REQ, in passive_ofld_conn_reply()
3606 (__force u32) htonl( in passive_ofld_conn_reply()
3708 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_REQ, 0)); in build_cpl_pass_accept_req()
3726 req->op_compl = htonl(WR_OP_V(FW_OFLD_CONNECTION_WR) | FW_WR_COMPL_F); in send_fw_pass_open_req()
3727 req->len16_pkd = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16))); in send_fw_pass_open_req()
3728 req->le.version_cpl = htonl(FW_OFLD_CONNECTION_WR_CPL_F); in send_fw_pass_open_req()
3734 req->tcb.rcv_nxt = htonl(rcv_isn + 1); in send_fw_pass_open_req()
[all …]
/linux-4.4.14/include/linux/netfilter/ipset/
Dip_set.h277 htonl(set->timeout)))) in ip_set_put_flags()
290 return nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(cadt_flags)); in ip_set_put_flags()
/linux-4.4.14/tools/usb/usbip/src/
Dusbip_network.c70 i = htonl(*num); in usbip_net_pack_uint32_t()
/linux-4.4.14/scripts/
Dsign-file.c312 sig_info.sig_len = htonl(sig_size); in main()
/linux-4.4.14/drivers/block/
Dnbd.c255 request.magic = htonl(NBD_REQUEST_MAGIC); in nbd_send_req()
256 request.type = htonl(type); in nbd_send_req()
259 request.len = htonl(size); in nbd_send_req()
/linux-4.4.14/Documentation/networking/
Dtproxy.txt36 name.sin_addr.s_addr = htonl(0xDEADBEEF);
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_srq.c182 next->nda_op = htonl(((i + 1) << srq->wqe_shift) | 1); in mthca_alloc_srq_buf()
468 last_free->nda_op = htonl((ind << srq->wqe_shift) | 1); in mthca_free_srq_wqe()
/linux-4.4.14/net/dccp/ccids/
Dccid3.c657 x_recv = htonl(hc->rx_x_recv); in ccid3_hc_rx_insert_options()
658 pinv = htonl(hc->rx_pinv); in ccid3_hc_rx_insert_options()
/linux-4.4.14/drivers/net/ppp/
Dpptp.c249 hdr->seq = htonl(++opt->seq_sent); in pptp_xmit()
253 hdr->ack = htonl(seq_recv); in pptp_xmit()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dselftest.c382 payload->ip.daddr = htonl(INADDR_LOOPBACK); in efx_iterate_state()
429 payload->ip.saddr = htonl(INADDR_LOOPBACK | (i << 2)); in efx_begin_loopback()

12