Searched refs:htonl (Results 1 - 200 of 348) sorted by relevance

12

/linux-4.1.27/include/linux/
H A Din.h44 return (addr & htonl(0xff000000)) == htonl(0x7f000000); ipv4_is_loopback()
49 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); ipv4_is_multicast()
54 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); ipv4_is_local_multicast()
60 return addr == htonl(INADDR_BROADCAST); ipv4_is_lbcast()
65 return (addr & htonl(0xff000000)) == htonl(0x00000000); ipv4_is_zeronet()
72 return (addr & htonl(0xff000000)) == htonl(0x0a000000); ipv4_is_private_10()
77 return (addr & htonl(0xfff00000)) == htonl(0xac100000); ipv4_is_private_172()
82 return (addr & htonl(0xffff0000)) == htonl(0xc0a80000); ipv4_is_private_192()
87 return (addr & htonl(0xffff0000)) == htonl(0xa9fe0000); ipv4_is_linklocal_169()
92 return (addr & htonl(0xffffff00)) == htonl(0xc0586300); ipv4_is_anycast_6to4()
97 return (addr & htonl(0xffffff00)) == htonl(0xc0000200); ipv4_is_test_192()
102 return (addr & htonl(0xfffe0000)) == htonl(0xc6120000); ipv4_is_test_198()
H A Dinetdevice.h245 return htonl(~((1U<<(32-logmask))-1)); inet_make_mask()
/linux-4.1.27/net/ipv6/
H A Daddrconf_core.c45 if ((st & htonl(0xE0000000)) != htonl(0x00000000) && __ipv6_addr_type()
46 (st & htonl(0xE0000000)) != htonl(0xE0000000)) __ipv6_addr_type()
50 if ((st & htonl(0xFF000000)) == htonl(0xFF000000)) { __ipv6_addr_type()
57 if ((st & htonl(0xFFC00000)) == htonl(0xFE800000)) __ipv6_addr_type()
60 if ((st & htonl(0xFFC00000)) == htonl(0xFEC00000)) __ipv6_addr_type()
63 if ((st & htonl(0xFE000000)) == htonl(0xFC000000)) __ipv6_addr_type()
72 if (addr->s6_addr32[3] == htonl(0x00000001)) __ipv6_addr_type()
80 if (addr->s6_addr32[2] == htonl(0x0000ffff)) __ipv6_addr_type()
H A Dip6_checksum.c50 ulen = (__force u32)htonl((__u32) len); csum_ipv6_magic()
55 uproto = (__force u32)htonl(proto); csum_ipv6_magic()
H A Doutput_core.c59 skb_shinfo(skb)->ip6_frag_id = htonl(id); ipv6_proxy_select_ident()
73 fhdr->identification = htonl(id); ipv6_select_ident()
H A Dip6_udp_tunnel.c94 ip6_flow_hdr(ip6h, prio, htonl(0)); udp_tunnel6_xmit_skb()
H A Dip6_offload.c232 if ((first_word & htonl(0xF00FFFFF)) || ipv6_gro_receive()
239 NAPI_GRO_CB(p)->flush |= !!(first_word & htonl(0x0FF00000)); ipv6_gro_receive()
H A Dxfrm6_tunnel.c111 return htonl(spi); xfrm6_tunnel_spi_lookup()
187 return htonl(spi); xfrm6_tunnel_alloc_spi()
H A Dipcomp6.c70 spi = htonl(ntohs(ipcomph->cpi)); ipcomp6_err()
H A Dsit.c180 ipv6_addr_set(&t->ip6rd.prefix, htonl(0x20020000), 0, 0, 0); ipip6_tunnel_clone_6rd()
301 if (cmax > 1 && kprl.addr != htonl(INADDR_ANY)) ipip6_tunnel_get_prl()
332 if (kprl.addr != htonl(INADDR_ANY) && prl->addr != kprl.addr) ipip6_tunnel_get_prl()
337 if (kprl.addr != htonl(INADDR_ANY)) ipip6_tunnel_get_prl()
359 if (a->addr == htonl(INADDR_ANY)) ipip6_tunnel_add_prl()
416 if (a && a->addr != htonl(INADDR_ANY)) { ipip6_tunnel_del_prl()
780 *v4dst = tunnel->ip6rd.relay_prefix | htonl(d); check_6rd()
1119 htonl(0xffffffffUL << ipip6_tunnel_update_6rd()
H A Dtcp_ipv6.c770 t1->seq = htonl(seq); tcp_v6_send_response()
771 t1->ack_seq = htonl(ack); tcp_v6_send_response()
779 *topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | tcp_v6_send_response()
781 *topt++ = htonl(tsval); tcp_v6_send_response()
782 *topt++ = htonl(tsecr); tcp_v6_send_response()
787 *topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | tcp_v6_send_response()
H A Desp6.c231 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); esp6_output()
241 *seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi); esp6_output()
H A Dah6.c423 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); ah6_output()
430 *seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi); ah6_output()
/linux-4.1.27/fs/nfs/
H A Dcallback_xdr.c60 return htonl(NFS4_OK); nfs4_callback_null()
89 return htonl(NFS4ERR_RESOURCE); decode_string()
95 return htonl(NFS4ERR_RESOURCE); decode_string()
109 return htonl(NFS4ERR_RESOURCE); decode_fh()
112 return htonl(NFS4ERR_BADHANDLE); decode_fh()
115 return htonl(NFS4ERR_RESOURCE); decode_fh()
128 return htonl(NFS4ERR_RESOURCE); decode_bitmap()
132 return htonl(NFS4ERR_RESOURCE); decode_bitmap()
146 return htonl(NFS4ERR_RESOURCE); decode_stateid()
163 return htonl(NFS4ERR_RESOURCE); decode_compound_hdr_arg()
167 return htonl(NFS4ERR_RESOURCE); decode_compound_hdr_arg()
176 return htonl(NFS4ERR_MINOR_VERS_MISMATCH); decode_compound_hdr_arg()
189 return htonl(NFS4ERR_RESOURCE_HDR); decode_op_hdr()
219 status = htonl(NFS4ERR_RESOURCE); decode_recall_args()
242 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
262 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
273 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
279 status = htonl(NFS4ERR_BADXDR); decode_layoutrecall_args()
305 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
312 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
318 status = htonl(NFS4ERR_DELAY); decode_devicenotify_args()
328 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
334 status = htonl(NFS4ERR_INVAL); decode_devicenotify_args()
340 status = htonl(NFS4ERR_INVAL); decode_devicenotify_args()
349 status = htonl(NFS4ERR_INVAL); decode_devicenotify_args()
359 status = htonl(NFS4ERR_BADXDR); decode_devicenotify_args()
390 return htonl(NFS4ERR_RESOURCE); decode_sessionid()
407 status = htonl(NFS4ERR_RESOURCE); decode_rc_list()
446 status = htonl(NFS4ERR_RESOURCE); decode_cb_sequence_args()
506 return htonl(NFS4ERR_BADXDR); decode_recallany_args()
525 return htonl(NFS4ERR_BADXDR); decode_recallslot_args()
538 return htonl(NFS4ERR_RESOURCE); encode_string()
550 bm[0] = htonl(bitmap[0] & CB_SUPPORTED_ATTR0); encode_attr_bitmap()
551 bm[1] = htonl(bitmap[1] & CB_SUPPORTED_ATTR1); encode_attr_bitmap()
555 return htonl(NFS4ERR_RESOURCE); encode_attr_bitmap()
556 *p++ = htonl(2); encode_attr_bitmap()
562 return htonl(NFS4ERR_RESOURCE); encode_attr_bitmap()
563 *p++ = htonl(1); encode_attr_bitmap()
568 return htonl(NFS4ERR_RESOURCE); encode_attr_bitmap()
569 *p++ = htonl(0); encode_attr_bitmap()
583 return htonl(NFS4ERR_RESOURCE); encode_attr_change()
596 return htonl(NFS4ERR_RESOURCE); encode_attr_size()
607 return htonl(NFS4ERR_RESOURCE); encode_attr_time()
609 *p = htonl(time->tv_nsec); encode_attr_time()
633 return htonl(NFS4ERR_RESOURCE); encode_compound_hdr_res()
639 return htonl(NFS4ERR_RESOURCE); encode_compound_hdr_res()
649 return htonl(NFS4ERR_RESOURCE_HDR); encode_op_hdr()
650 *p++ = htonl(op); encode_op_hdr()
675 *savep = htonl((unsigned int)((char *)xdr->p - (char *)(savep+1))); encode_getattr_res()
691 return htonl(NFS4ERR_RESOURCE); encode_sessionid()
711 return htonl(NFS4ERR_RESOURCE); encode_cb_sequence_res()
713 *p++ = htonl(res->csr_sequenceid); encode_cb_sequence_res()
714 *p++ = htonl(res->csr_slotid); encode_cb_sequence_res()
715 *p++ = htonl(res->csr_highestslotid); encode_cb_sequence_res()
716 *p++ = htonl(res->csr_target_highestslotid); encode_cb_sequence_res()
727 return htonl(NFS4ERR_SEQUENCE_POS); preprocess_nfs41_op()
730 return htonl(NFS4ERR_OP_NOT_IN_SESSION); preprocess_nfs41_op()
749 return htonl(NFS4ERR_NOTSUPP); preprocess_nfs41_op()
752 return htonl(NFS4ERR_OP_ILLEGAL); preprocess_nfs41_op()
755 return htonl(NFS_OK); preprocess_nfs41_op()
783 return htonl(NFS4ERR_MINOR_VERS_MISMATCH); preprocess_nfs41_op()
796 if (status != htonl(NFS4ERR_OP_ILLEGAL)) preprocess_nfs42_op()
800 return htonl(NFS4ERR_NOTSUPP); preprocess_nfs42_op()
801 return htonl(NFS4ERR_OP_ILLEGAL); preprocess_nfs42_op()
807 return htonl(NFS4ERR_MINOR_VERS_MISMATCH); preprocess_nfs42_op()
820 return htonl(NFS4ERR_OP_ILLEGAL); preprocess_nfs4_op()
823 return htonl(NFS_OK); preprocess_nfs4_op()
856 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); process_op()
859 if (status == htonl(NFS4ERR_OP_ILLEGAL)) process_op()
875 status = htonl(NFS4ERR_RESOURCE); process_op()
935 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { nfs4_callback_compound()
936 status = htonl(NFS4ERR_RESOURCE); nfs4_callback_compound()
941 *hdr_res.nops = htonl(nops); nfs4_callback_compound()
H A Dcallback_proc.c32 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); nfs4_callback_getattr()
37 res->status = htonl(NFS4ERR_BADHANDLE); nfs4_callback_getattr()
75 res = htonl(NFS4ERR_OP_NOT_IN_SESSION); nfs4_callback_recall()
82 res = htonl(NFS4ERR_BADHANDLE); nfs4_callback_recall()
92 res = htonl(NFS4ERR_BAD_STATEID); nfs4_callback_recall()
95 res = htonl(NFS4ERR_RESOURCE); nfs4_callback_recall()
324 return htonl(NFS4ERR_BADSLOT); validate_seqid()
341 return htonl(NFS4ERR_RETRY_UNCACHED_REP); validate_seqid()
345 return htonl(NFS4ERR_REP_TOO_BIG_TO_CACHE); validate_seqid()
355 return htonl(NFS4ERR_SEQ_MISORDERED); validate_seqid()
358 return htonl(NFS4_OK); validate_seqid()
423 __be32 status = htonl(NFS4ERR_BADSESSION); nfs4_callback_sequence()
438 status = htonl(NFS4ERR_DELAY); nfs4_callback_sequence()
443 status = htonl(NFS4ERR_BADSESSION); nfs4_callback_sequence()
460 status = htonl(NFS4ERR_DELAY); nfs4_callback_sequence()
477 if (status == htonl(NFS4ERR_RETRY_UNCACHED_REP)) { nfs4_callback_sequence()
536 status = htonl(NFS4ERR_OP_NOT_IN_SESSION); nfs4_callback_recallslot()
546 status = htonl(NFS4_OK); nfs4_callback_recallslot()
H A Dnfsroot.c99 static __be32 servaddr __initdata = htonl(INADDR_NONE);
298 if (servaddr == htonl(INADDR_NONE)) { nfs_root_data()
/linux-4.1.27/fs/afs/
H A Dfsclient.c203 *bp++ = htonl(mask); xdr_encode_AFS_StoreStatus()
204 *bp++ = htonl(mtime); xdr_encode_AFS_StoreStatus()
205 *bp++ = htonl(owner); xdr_encode_AFS_StoreStatus()
206 *bp++ = htonl(group); xdr_encode_AFS_StoreStatus()
207 *bp++ = htonl(mode); xdr_encode_AFS_StoreStatus()
301 bp[0] = htonl(FSFETCHSTATUS); afs_fs_fetch_file_status()
302 bp[1] = htonl(vnode->fid.vid); afs_fs_fetch_file_status()
303 bp[2] = htonl(vnode->fid.vnode); afs_fs_fetch_file_status()
304 bp[3] = htonl(vnode->fid.unique); afs_fs_fetch_file_status()
477 bp[0] = htonl(FSFETCHDATA64); afs_fs_fetch_data64()
478 bp[1] = htonl(vnode->fid.vid); afs_fs_fetch_data64()
479 bp[2] = htonl(vnode->fid.vnode); afs_fs_fetch_data64()
480 bp[3] = htonl(vnode->fid.unique); afs_fs_fetch_data64()
481 bp[4] = htonl(upper_32_bits(offset)); afs_fs_fetch_data64()
482 bp[5] = htonl((u32) offset); afs_fs_fetch_data64()
484 bp[7] = htonl((u32) length); afs_fs_fetch_data64()
522 bp[0] = htonl(FSFETCHDATA); afs_fs_fetch_data()
523 bp[1] = htonl(vnode->fid.vid); afs_fs_fetch_data()
524 bp[2] = htonl(vnode->fid.vnode); afs_fs_fetch_data()
525 bp[3] = htonl(vnode->fid.unique); afs_fs_fetch_data()
526 bp[4] = htonl(offset); afs_fs_fetch_data()
527 bp[5] = htonl(length); afs_fs_fetch_data()
590 *bp++ = htonl(FSGIVEUPCALLBACKS); afs_fs_give_up_callbacks()
591 *bp++ = htonl(ncallbacks); afs_fs_give_up_callbacks()
592 *tp++ = htonl(ncallbacks); afs_fs_give_up_callbacks()
599 *bp++ = htonl(cb->fid.vid); afs_fs_give_up_callbacks()
600 *bp++ = htonl(cb->fid.vnode); afs_fs_give_up_callbacks()
601 *bp++ = htonl(cb->fid.unique); afs_fs_give_up_callbacks()
602 *tp++ = htonl(cb->version); afs_fs_give_up_callbacks()
603 *tp++ = htonl(cb->expiry); afs_fs_give_up_callbacks()
604 *tp++ = htonl(cb->type); afs_fs_give_up_callbacks()
695 *bp++ = htonl(S_ISDIR(mode) ? FSMAKEDIR : FSCREATEFILE); afs_fs_create()
696 *bp++ = htonl(vnode->fid.vid); afs_fs_create()
697 *bp++ = htonl(vnode->fid.vnode); afs_fs_create()
698 *bp++ = htonl(vnode->fid.unique); afs_fs_create()
699 *bp++ = htonl(namesz); afs_fs_create()
706 *bp++ = htonl(AFS_SET_MODE); afs_fs_create()
710 *bp++ = htonl(mode & S_IALLUGO); /* unix mode */ afs_fs_create()
784 *bp++ = htonl(isdir ? FSREMOVEDIR : FSREMOVEFILE); afs_fs_remove()
785 *bp++ = htonl(vnode->fid.vid); afs_fs_remove()
786 *bp++ = htonl(vnode->fid.vnode); afs_fs_remove()
787 *bp++ = htonl(vnode->fid.unique); afs_fs_remove()
788 *bp++ = htonl(namesz); afs_fs_remove()
869 *bp++ = htonl(FSLINK); afs_fs_link()
870 *bp++ = htonl(dvnode->fid.vid); afs_fs_link()
871 *bp++ = htonl(dvnode->fid.vnode); afs_fs_link()
872 *bp++ = htonl(dvnode->fid.unique); afs_fs_link()
873 *bp++ = htonl(namesz); afs_fs_link()
880 *bp++ = htonl(vnode->fid.vid); afs_fs_link()
881 *bp++ = htonl(vnode->fid.vnode); afs_fs_link()
882 *bp++ = htonl(vnode->fid.unique); afs_fs_link()
966 *bp++ = htonl(FSSYMLINK); afs_fs_symlink()
967 *bp++ = htonl(vnode->fid.vid); afs_fs_symlink()
968 *bp++ = htonl(vnode->fid.vnode); afs_fs_symlink()
969 *bp++ = htonl(vnode->fid.unique); afs_fs_symlink()
970 *bp++ = htonl(namesz); afs_fs_symlink()
977 *bp++ = htonl(c_namesz); afs_fs_symlink()
984 *bp++ = htonl(AFS_SET_MODE); afs_fs_symlink()
988 *bp++ = htonl(S_IRWXUGO); /* unix mode */ afs_fs_symlink()
1074 *bp++ = htonl(FSRENAME); afs_fs_rename()
1075 *bp++ = htonl(orig_dvnode->fid.vid); afs_fs_rename()
1076 *bp++ = htonl(orig_dvnode->fid.vnode); afs_fs_rename()
1077 *bp++ = htonl(orig_dvnode->fid.unique); afs_fs_rename()
1078 *bp++ = htonl(o_namesz); afs_fs_rename()
1086 *bp++ = htonl(new_dvnode->fid.vid); afs_fs_rename()
1087 *bp++ = htonl(new_dvnode->fid.vnode); afs_fs_rename()
1088 *bp++ = htonl(new_dvnode->fid.unique); afs_fs_rename()
1089 *bp++ = htonl(n_namesz); afs_fs_rename()
1190 *bp++ = htonl(FSSTOREDATA64); afs_fs_store_data64()
1191 *bp++ = htonl(vnode->fid.vid); afs_fs_store_data64()
1192 *bp++ = htonl(vnode->fid.vnode); afs_fs_store_data64()
1193 *bp++ = htonl(vnode->fid.unique); afs_fs_store_data64()
1202 *bp++ = htonl(pos >> 32); afs_fs_store_data64()
1203 *bp++ = htonl((u32) pos); afs_fs_store_data64()
1204 *bp++ = htonl(size >> 32); afs_fs_store_data64()
1205 *bp++ = htonl((u32) size); afs_fs_store_data64()
1206 *bp++ = htonl(i_size >> 32); afs_fs_store_data64()
1207 *bp++ = htonl((u32) i_size); afs_fs_store_data64()
1267 *bp++ = htonl(FSSTOREDATA); afs_fs_store_data()
1268 *bp++ = htonl(vnode->fid.vid); afs_fs_store_data()
1269 *bp++ = htonl(vnode->fid.vnode); afs_fs_store_data()
1270 *bp++ = htonl(vnode->fid.unique); afs_fs_store_data()
1279 *bp++ = htonl(pos); afs_fs_store_data()
1280 *bp++ = htonl(size); afs_fs_store_data()
1281 *bp++ = htonl(i_size); afs_fs_store_data()
1378 *bp++ = htonl(FSSTOREDATA64); afs_fs_setattr_size64()
1379 *bp++ = htonl(vnode->fid.vid); afs_fs_setattr_size64()
1380 *bp++ = htonl(vnode->fid.vnode); afs_fs_setattr_size64()
1381 *bp++ = htonl(vnode->fid.unique); afs_fs_setattr_size64()
1389 *bp++ = htonl(attr->ia_size >> 32); /* new file length */ afs_fs_setattr_size64()
1390 *bp++ = htonl((u32) attr->ia_size); afs_fs_setattr_size64()
1429 *bp++ = htonl(FSSTOREDATA); afs_fs_setattr_size()
1430 *bp++ = htonl(vnode->fid.vid); afs_fs_setattr_size()
1431 *bp++ = htonl(vnode->fid.vnode); afs_fs_setattr_size()
1432 *bp++ = htonl(vnode->fid.unique); afs_fs_setattr_size()
1438 *bp++ = htonl(attr->ia_size); /* new file length */ afs_fs_setattr_size()
1475 *bp++ = htonl(FSSTORESTATUS); afs_fs_setattr()
1476 *bp++ = htonl(vnode->fid.vid); afs_fs_setattr()
1477 *bp++ = htonl(vnode->fid.vnode); afs_fs_setattr()
1478 *bp++ = htonl(vnode->fid.unique); afs_fs_setattr()
1754 bp[0] = htonl(FSGETVOLUMESTATUS); afs_fs_get_volume_status()
1755 bp[1] = htonl(vnode->fid.vid); afs_fs_get_volume_status()
1840 *bp++ = htonl(FSSETLOCK); afs_fs_set_lock()
1841 *bp++ = htonl(vnode->fid.vid); afs_fs_set_lock()
1842 *bp++ = htonl(vnode->fid.vnode); afs_fs_set_lock()
1843 *bp++ = htonl(vnode->fid.unique); afs_fs_set_lock()
1844 *bp++ = htonl(type); afs_fs_set_lock()
1873 *bp++ = htonl(FSEXTENDLOCK); afs_fs_extend_lock()
1874 *bp++ = htonl(vnode->fid.vid); afs_fs_extend_lock()
1875 *bp++ = htonl(vnode->fid.vnode); afs_fs_extend_lock()
1876 *bp++ = htonl(vnode->fid.unique); afs_fs_extend_lock()
1905 *bp++ = htonl(FSRELEASELOCK); afs_fs_release_lock()
1906 *bp++ = htonl(vnode->fid.vid); afs_fs_release_lock()
1907 *bp++ = htonl(vnode->fid.vnode); afs_fs_release_lock()
1908 *bp++ = htonl(vnode->fid.unique); afs_fs_release_lock()
H A Dvlclient.c177 *bp++ = htonl(VLGETENTRYBYNAME); afs_vl_get_entry_by_name()
178 *bp++ = htonl(volnamesz); afs_vl_get_entry_by_name()
213 *bp++ = htonl(VLGETENTRYBYID); afs_vl_get_entry_by_id()
214 *bp++ = htonl(volid); afs_vl_get_entry_by_id()
215 *bp = htonl(voltype); afs_vl_get_entry_by_id()
H A Dcmservice.c442 reply.match = htonl(0); SRXAFSCB_ProbeUuid()
444 reply.match = htonl(1); SRXAFSCB_ProbeUuid()
559 reply.ia.nifs = htonl(nifs); SRXAFSCB_TellMeAboutYourself()
561 reply.ia.uuid[0] = htonl(afs_uuid.time_low); SRXAFSCB_TellMeAboutYourself()
562 reply.ia.uuid[1] = htonl(afs_uuid.time_mid); SRXAFSCB_TellMeAboutYourself()
563 reply.ia.uuid[2] = htonl(afs_uuid.time_hi_and_version); SRXAFSCB_TellMeAboutYourself()
564 reply.ia.uuid[3] = htonl((s8) afs_uuid.clock_seq_hi_and_reserved); SRXAFSCB_TellMeAboutYourself()
565 reply.ia.uuid[4] = htonl((s8) afs_uuid.clock_seq_low); SRXAFSCB_TellMeAboutYourself()
567 reply.ia.uuid[loop + 5] = htonl((s8) afs_uuid.node[loop]); SRXAFSCB_TellMeAboutYourself()
573 reply.ia.mtu[loop] = htonl(ifs[loop].mtu); SRXAFSCB_TellMeAboutYourself()
578 reply.cap.capcount = htonl(1); SRXAFSCB_TellMeAboutYourself()
579 reply.cap.caps[0] = htonl(AFS_CAP_ERROR_TRANSLATION); SRXAFSCB_TellMeAboutYourself()
/linux-4.1.27/fs/nfsd/
H A Dnfsxdr.c154 *p++ = htonl(nfs_ftypes[type >> 12]); encode_fattr()
155 *p++ = htonl((u32) stat->mode); encode_fattr()
156 *p++ = htonl((u32) stat->nlink); encode_fattr()
157 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); encode_fattr()
158 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); encode_fattr()
161 *p++ = htonl(NFS_MAXPATHLEN); encode_fattr()
163 *p++ = htonl((u32) stat->size); encode_fattr()
165 *p++ = htonl((u32) stat->blksize); encode_fattr()
167 *p++ = htonl(new_encode_dev(stat->rdev)); encode_fattr()
169 *p++ = htonl(0xffffffff); encode_fattr()
170 *p++ = htonl((u32) stat->blocks); encode_fattr()
174 *p++ = htonl(new_encode_dev(stat->dev)); encode_fattr()
177 *p++ = htonl((u32) fhp->fh_export->ex_fsid); encode_fattr()
184 *p++ = htonl(f); encode_fattr()
187 *p++ = htonl((u32) stat->ino); encode_fattr()
188 *p++ = htonl((u32) stat->atime.tv_sec); encode_fattr()
189 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); encode_fattr()
191 *p++ = htonl((u32) time.tv_sec); encode_fattr()
192 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); encode_fattr()
193 *p++ = htonl((u32) stat->ctime.tv_sec); encode_fattr()
194 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); encode_fattr()
438 *p++ = htonl(resp->len); nfssvc_encode_readlinkres()
455 *p++ = htonl(resp->count); nfssvc_encode_readres()
476 *p++ = htonl((resp->common.err == nfserr_eof)); nfssvc_encode_readdirres()
488 *p++ = htonl(NFSSVC_MAXBLKSIZE_V2); /* max transfer size */ nfssvc_encode_statfsres()
489 *p++ = htonl(stat->f_bsize); nfssvc_encode_statfsres()
490 *p++ = htonl(stat->f_blocks); nfssvc_encode_statfsres()
491 *p++ = htonl(stat->f_bfree); nfssvc_encode_statfsres()
492 *p++ = htonl(stat->f_bavail); nfssvc_encode_statfsres()
515 *cd->offset = htonl(offset); nfssvc_encode_entry()
530 *p++ = htonl((u32) ino); /* file id */ nfssvc_encode_entry()
533 *p++ = htonl(~0U); /* offset of next entry */ nfssvc_encode_entry()
H A Dnfs3xdr.c6 * 2003-08-09 Jamie Lokier: Use htonl() for nanoseconds, not htons()!
35 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); encode_time3()
71 *p++ = htonl(size); encode_fh()
167 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); encode_fattr3()
168 *p++ = htonl((u32) (stat->mode & S_IALLUGO)); encode_fattr3()
169 *p++ = htonl((u32) stat->nlink); encode_fattr3()
170 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); encode_fattr3()
171 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); encode_fattr3()
178 *p++ = htonl((u32) MAJOR(stat->rdev)); encode_fattr3()
179 *p++ = htonl((u32) MINOR(stat->rdev)); encode_fattr3()
667 *p++ = htonl(resp->access); nfs3svc_encode_accessres()
678 *p++ = htonl(resp->len); nfs3svc_encode_readlinkres()
699 *p++ = htonl(resp->count); nfs3svc_encode_readres()
700 *p++ = htonl(resp->eof); nfs3svc_encode_readres()
701 *p++ = htonl(resp->count); /* xdr opaque count */ nfs3svc_encode_readres()
725 *p++ = htonl(resp->count); nfs3svc_encode_writeres()
726 *p++ = htonl(resp->committed); nfs3svc_encode_writeres()
727 *p++ = htonl(nn->nfssvc_boot.tv_sec); nfs3svc_encode_writeres()
728 *p++ = htonl(nn->nfssvc_boot.tv_usec); nfs3svc_encode_writeres()
785 *p++ = htonl(resp->common.err == nfserr_eof); nfs3svc_encode_readdirres()
889 *cd->offset = htonl(offset64 >> 32); encode_entry()
890 *cd->offset1 = htonl(offset64 & 0xffffffff); encode_entry()
1032 *p++ = htonl(resp->invarsec); /* mean unchanged time */ nfs3svc_encode_fsstatres()
1045 *p++ = htonl(resp->f_rtmax); nfs3svc_encode_fsinfores()
1046 *p++ = htonl(resp->f_rtpref); nfs3svc_encode_fsinfores()
1047 *p++ = htonl(resp->f_rtmult); nfs3svc_encode_fsinfores()
1048 *p++ = htonl(resp->f_wtmax); nfs3svc_encode_fsinfores()
1049 *p++ = htonl(resp->f_wtpref); nfs3svc_encode_fsinfores()
1050 *p++ = htonl(resp->f_wtmult); nfs3svc_encode_fsinfores()
1051 *p++ = htonl(resp->f_dtpref); nfs3svc_encode_fsinfores()
1055 *p++ = htonl(resp->f_properties); nfs3svc_encode_fsinfores()
1069 *p++ = htonl(resp->p_link_max); nfs3svc_encode_pathconfres()
1070 *p++ = htonl(resp->p_name_max); nfs3svc_encode_pathconfres()
1071 *p++ = htonl(resp->p_no_trunc); nfs3svc_encode_pathconfres()
1072 *p++ = htonl(resp->p_chown_restricted); nfs3svc_encode_pathconfres()
1073 *p++ = htonl(resp->p_case_insensitive); nfs3svc_encode_pathconfres()
1074 *p++ = htonl(resp->p_case_preserving); nfs3svc_encode_pathconfres()
1090 *p++ = htonl(nn->nfssvc_boot.tv_sec); nfs3svc_encode_commitres()
1091 *p++ = htonl(nn->nfssvc_boot.tv_usec); nfs3svc_encode_commitres()
H A Dnfsfh.h92 fsidv[0] = (__force __u32)htonl((MAJOR(dev)<<16) | mk_fsid()
100 fsidv[0] = (__force __u32)htonl(MAJOR(dev)); mk_fsid()
101 fsidv[1] = (__force __u32)htonl(MINOR(dev)); mk_fsid()
H A Dnfs2acl.c274 *p++ = htonl(resp->mask); nfsaclsvc_encode_getaclres()
313 *p++ = htonl(resp->access); nfsaclsvc_encode_accessres()
H A Dnfs4xdr.c1974 pathlen = htonl(count); nfsd4_encode_components_esc()
2754 attrlen = htonl(xdr->buf->len - attrlen_offset - 4); nfsd4_encode_fattr()
2889 *p++ = htonl(2); nfsd4_encode_rdattr_error()
2890 *p++ = htonl(FATTR4_WORD0_RDATTR_ERROR); /* bmval0 */ nfsd4_encode_rdattr_error()
2891 *p++ = htonl(0); /* bmval1 */ nfsd4_encode_rdattr_error()
2893 *p++ = htonl(4); /* attribute length */ nfsd4_encode_rdattr_error()
2894 *p++ = nfserr; /* no htonl */ nfsd4_encode_rdattr_error()
3350 *(p++) = htonl(eof); nfsd4_encode_splice_read()
3351 *(p++) = htonl(maxcount); nfsd4_encode_splice_read()
3427 tmp = htonl(eof); nfsd4_encode_readv()
3429 tmp = htonl(maxcount); nfsd4_encode_readv()
3530 wire_count = htonl(maxcount); nfsd4_encode_readlink()
3624 *p++ = htonl(readdir->common.err == nfserr_eof); nfsd4_encode_readdir()
3731 *flavorsp = htonl(supported); nfsd4_do_encode_secinfo()
4009 *p++ = htonl(test_stateid->ts_num_ids); nfsd4_encode_test_stateid()
4461 *p++ = htonl(resp->taglen); nfs4svc_encode_compoundres()
4464 *p++ = htonl(resp->opcnt); nfs4svc_encode_compoundres()
H A Dnfs3acl.c184 *p++ = htonl(resp->mask); nfs3svc_encode_getaclres()
H A Dnfs3proc.c496 *resp->offset = htonl(offset >> 32); nfsd3_proc_readdirplus()
497 *resp->offset1 = htonl(offset & 0xffffffff); nfsd3_proc_readdirplus()
/linux-4.1.27/arch/powerpc/boot/
H A Dmktree.c6 * We use htonl, which is a network macro, to make sure we're doing
61 bt.bb_magic = htonl(0x0052504F); main()
64 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); main()
65 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); main()
71 bt.bb_num_512blocks = htonl(nblks); main()
104 if (tmpbuf[0] != htonl(0x7f454c46)) { main()
139 bt.bb_checksum = htonl(cksum); main()
/linux-4.1.27/arch/m32r/include/asm/
H A Dflat.h67 unsigned long addr = htonl(*rp); m32r_flat_get_addr_from_rp()
84 return htonl(*rp) & 0xFFFF; m32r_flat_get_addr_from_rp()
89 return (htonl(*rp) & 0xFFFF) + textlen; m32r_flat_get_addr_from_rp()
93 return htonl(*rp) & 0xFFFFFF; m32r_flat_get_addr_from_rp()
95 return htonl(*rp); m32r_flat_get_addr_from_rp()
130 *rp = (htonl(*rp) & 0xFFFF0000) | (addr & 0xFFFF); m32r_flat_put_addr_at_rp()
136 *rp = (htonl(*rp) & 0xFF000000) | (addr & 0xFFFFFF); m32r_flat_put_addr_at_rp()
H A Dchecksum.h196 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) csum_ipv6_magic()
/linux-4.1.27/include/uapi/linux/
H A 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)
H A Din.h282 /* <asm/byteorder.h> contains the htonl type stuff.. */
/linux-4.1.27/net/sunrpc/
H A Dauth_unix.c151 *p++ = htonl(RPC_AUTH_UNIX); unx_marshal()
153 *p++ = htonl(jiffies/HZ); unx_marshal()
160 *p++ = htonl((u32) from_kuid(&init_user_ns, cred->uc_uid)); unx_marshal()
161 *p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gid)); unx_marshal()
164 *p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gids[i])); unx_marshal()
165 *hold = htonl(p - hold - 1); /* gid array length */ unx_marshal()
166 *base = htonl((p - base - 1) << 2); /* cred length */ unx_marshal()
168 *p++ = htonl(RPC_AUTH_NULL); unx_marshal()
169 *p++ = htonl(0); unx_marshal()
H A Dauth_null.c66 *p++ = htonl(RPC_AUTH_NULL); nul_marshal()
68 *p++ = htonl(RPC_AUTH_NULL); nul_marshal()
H A Dclnt.c1132 .sin_addr.s_addr = htonl(INADDR_ANY),
2221 *p++ = htonl(RPC_CALL); /* CALL */ rpc_encode_header()
2222 *p++ = htonl(RPC_VERSION); /* RPC version */ rpc_encode_header()
2223 *p++ = htonl(clnt->cl_prog); /* program number */ rpc_encode_header()
2224 *p++ = htonl(clnt->cl_vers); /* program version */ rpc_encode_header()
2225 *p++ = htonl(task->tk_msg.rpc_proc->p_proc); /* procedure */ rpc_encode_header()
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_mb.c84 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | csio_mb_hello()
86 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_mb_hello()
87 cmdp->err_to_clearinit = htonl( csio_mb_hello()
147 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_BYE_CMD) | csio_mb_bye()
149 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_mb_bye()
170 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_RESET_CMD) | csio_mb_reset()
172 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_mb_reset()
173 cmdp->val = htonl(reset); csio_mb_reset()
174 cmdp->halt_pkd = htonl(halt); csio_mb_reset()
205 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | csio_mb_params()
210 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_mb_params()
218 *p++ = htonl(temp_params); csio_mb_params()
219 *p++ = htonl(temp_val); csio_mb_params()
224 *p = htonl(temp_params); csio_mb_params()
274 htonl(FW_CMD_OP_V(FW_LDST_CMD) | csio_mb_ldst()
278 ldst_cmd->cycles_to_len16 = htonl(FW_LEN16(struct fw_ldst_cmd)); csio_mb_ldst()
309 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | csio_mb_caps_config()
312 cmdp->cfvalid_to_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_mb_caps_config()
355 cmdp->op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | csio_mb_port()
360 cmdp->action_to_len16 = htonl( csio_mb_port()
367 cmdp->action_to_len16 = htonl( csio_mb_port()
377 cmdp->u.l1cfg.rcap = htonl((caps & CSIO_ADVERT_MASK) | lfc); csio_mb_port()
379 cmdp->u.l1cfg.rcap = htonl((caps & CSIO_ADVERT_MASK) | csio_mb_port()
419 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_INITIALIZE_CMD) | csio_mb_initialize()
421 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_mb_initialize()
447 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | csio_mb_iq_alloc()
452 cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC_F | csio_mb_iq_alloc()
455 cmdp->type_to_iqandstindex = htonl( csio_mb_iq_alloc()
503 cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_IQ_CMD) | csio_mb_iq_write()
507 cmdp->alloc_to_len16 |= htonl(iq_start_stop | csio_mb_iq_write()
512 cmdp->type_to_iqandstindex |= htonl( csio_mb_iq_write()
529 cmdp->iqns_to_fl0congen |= htonl( csio_mb_iq_write()
537 cmdp->iqns_to_fl0congen |= htonl( csio_mb_iq_write()
626 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | csio_mb_iq_free()
630 cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_FREE_F | csio_mb_iq_free()
632 cmdp->type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iq_params->type)); csio_mb_iq_free()
661 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | csio_mb_eq_ofld_alloc()
665 cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC_F | csio_mb_eq_ofld_alloc()
709 cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | csio_mb_eq_ofld_write()
713 cmdp->alloc_to_len16 |= htonl(eq_start_stop | csio_mb_eq_ofld_write()
716 cmdp->eqid_pkd |= htonl(FW_EQ_OFLD_CMD_EQID_V(eq_ofld_params->eqid)); csio_mb_eq_ofld_write()
718 cmdp->fetchszm_to_iqid |= htonl( csio_mb_eq_ofld_write()
724 cmdp->dcaen_to_eqsize |= htonl( csio_mb_eq_ofld_write()
812 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | csio_mb_eq_ofld_free()
816 cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE_F | csio_mb_eq_ofld_free()
818 cmdp->eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID_V(eq_ofld_params->eqid)); csio_mb_eq_ofld_free()
844 cmdp->op_to_portid = htonl(( csio_write_fcoe_link_cond_init_mb()
849 cmdp->sub_opcode_fcfi = htonl( csio_write_fcoe_link_cond_init_mb()
853 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_write_fcoe_link_cond_init_mb()
878 cmdp->op_to_read = htonl((FW_CMD_OP_V(FW_FCOE_RES_INFO_CMD) | csio_fcoe_read_res_info_init_mb()
882 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_fcoe_read_res_info_init_mb()
913 cmdp->op_to_fcfi = htonl((FW_CMD_OP_V(FW_FCOE_VNP_CMD) | csio_fcoe_vnp_alloc_init_mb()
918 cmdp->alloc_to_len16 = htonl(FW_FCOE_VNP_CMD_ALLOC | csio_fcoe_vnp_alloc_init_mb()
921 cmdp->gen_wwn_to_vnpi = htonl(FW_FCOE_VNP_CMD_VNPI(vnpi)); csio_fcoe_vnp_alloc_init_mb()
926 cmdp->gen_wwn_to_vnpi |= htonl(FW_FCOE_VNP_CMD_GEN_WWN); csio_fcoe_vnp_alloc_init_mb()
953 cmdp->op_to_fcfi = htonl(FW_CMD_OP_V(FW_FCOE_VNP_CMD) | csio_fcoe_vnp_read_init_mb()
957 cmdp->alloc_to_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_fcoe_vnp_read_init_mb()
958 cmdp->gen_wwn_to_vnpi = htonl(FW_FCOE_VNP_CMD_VNPI(vnpi)); csio_fcoe_vnp_read_init_mb()
983 cmdp->op_to_fcfi = htonl(FW_CMD_OP_V(FW_FCOE_VNP_CMD) | csio_fcoe_vnp_free_init_mb()
987 cmdp->alloc_to_len16 = htonl(FW_FCOE_VNP_CMD_FREE | csio_fcoe_vnp_free_init_mb()
989 cmdp->gen_wwn_to_vnpi = htonl(FW_FCOE_VNP_CMD_VNPI(vnpi)); csio_fcoe_vnp_free_init_mb()
1014 cmdp->op_to_fcfi = htonl(FW_CMD_OP_V(FW_FCOE_FCF_CMD) | csio_fcoe_read_fcf_init_mb()
1018 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); csio_fcoe_read_fcf_init_mb()
1034 cmdp->op_to_flowid = htonl(FW_CMD_OP_V(FW_FCOE_STATS_CMD) | csio_fcoe_read_portparams_init_mb()
1036 cmdp->free_to_len16 = htonl(FW_CMD_LEN16_V(CSIO_MAX_MB_SIZE/16)); csio_fcoe_read_portparams_init_mb()
1581 fw_hdr->lo = htonl(FW_CMD_RETVAL_V(FW_ETIMEDOUT)); csio_mb_tmo_handler()
1633 hdr->lo = htonl(FW_CMD_RETVAL_V(FW_HOSTERROR)); list_for_each()
H A Dcsio_lnode.c336 val = htonl(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT); csio_ln_fdmi_rhba_cbfn()
343 val = htonl(FC_PORTSPEED_1GBIT); csio_ln_fdmi_rhba_cbfn()
345 val = htonl(FC_PORTSPEED_10GBIT); csio_ln_fdmi_rhba_cbfn()
347 val = htonl(CSIO_HBA_PORTSPEED_UNKNOWN); csio_ln_fdmi_rhba_cbfn()
368 attrib_blk->numattrs = htonl(numattrs); csio_ln_fdmi_rhba_cbfn()
393 __be32 maxpayload = htonl(65536); csio_ln_fdmi_dprt_cbfn()
429 reg_pl->numport = htonl(1); csio_ln_fdmi_dprt_cbfn()
476 attrib_blk->numattrs = htonl(numattrs); csio_ln_fdmi_dprt_cbfn()
1685 port_id = htonl(sid); csio_ln_prep_ecwr()
1687 port_id = htonl(did); csio_ln_prep_ecwr()
1760 dsgl.cmd_nsge = htonl(ULPTX_CMD_V(ULP_TX_SC_DSGL) | csio_ln_mgmt_submit_wr()
H A Dcsio_hw_t5.c201 *data++ = htonl(csio_rd_reg32(hw, MC_DATA(i))); csio_t5_mc_read()
257 *data++ = htonl(csio_rd_reg32(hw, EDC_DATA(i))); csio_t5_edc_read()
/linux-4.1.27/arch/x86/um/asm/
H A Dchecksum_32.h33 "r"(htonl(len)), "r"(htonl(proto)), "0"(sum)); csum_ipv6_magic()
/linux-4.1.27/net/sunrpc/xprtrdma/
H A Dsvc_rdma_marshal.c276 *va++ = htonl(rmsgp->rm_xid); svc_rdma_xdr_encode_error()
277 *va++ = htonl(rmsgp->rm_vers); svc_rdma_xdr_encode_error()
278 *va++ = htonl(xprt->sc_max_requests); svc_rdma_xdr_encode_error()
279 *va++ = htonl(RDMA_ERROR); svc_rdma_xdr_encode_error()
280 *va++ = htonl(err); svc_rdma_xdr_encode_error()
282 *va++ = htonl(RPCRDMA_VERSION); svc_rdma_xdr_encode_error()
283 *va++ = htonl(RPCRDMA_VERSION); svc_rdma_xdr_encode_error()
328 ary->wc_nchunks = htonl(chunks); svc_rdma_xdr_encode_write_list()
341 ary->wc_nchunks = htonl(chunks); svc_rdma_xdr_encode_reply_array()
353 seg->rs_length = htonl(write_len); svc_rdma_xdr_encode_array_chunk()
361 rdma_resp->rm_xid = htonl(rdma_argp->rm_xid); svc_rdma_xdr_encode_reply_header()
362 rdma_resp->rm_vers = htonl(rdma_argp->rm_vers); svc_rdma_xdr_encode_reply_header()
363 rdma_resp->rm_credit = htonl(xprt->sc_max_requests); svc_rdma_xdr_encode_reply_header()
364 rdma_resp->rm_type = htonl(rdma_type); svc_rdma_xdr_encode_reply_header()
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_dbg.c86 fw_dump->fw_major_version = htonl(ha->fw_major_version); qla2xxx_prep_dump()
87 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); qla2xxx_prep_dump()
88 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); qla2xxx_prep_dump()
89 fw_dump->fw_attributes = htonl(ha->fw_attributes); qla2xxx_prep_dump()
91 fw_dump->vendor = htonl(ha->pdev->vendor); qla2xxx_prep_dump()
92 fw_dump->device = htonl(ha->pdev->device); qla2xxx_prep_dump()
93 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); qla2xxx_prep_dump()
94 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); qla2xxx_prep_dump()
302 *buf++ = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_read_window()
490 fcec->chain_size = htonl(sizeof(struct qla2xxx_fce_chain) + qla25xx_copy_fce()
492 fcec->size = htonl(fce_calc_size(ha->fce_bufs)); qla25xx_copy_fce()
493 fcec->addr_l = htonl(LSD(ha->fce_dma)); qla25xx_copy_fce()
494 fcec->addr_h = htonl(MSD(ha->fce_dma)); qla25xx_copy_fce()
498 *iter_reg++ = htonl(ha->fce_mb[cnt]); qla25xx_copy_fce()
531 q->chain_size = htonl( qla2xxx_copy_atioqueues()
540 qh->number = htonl(que); qla2xxx_copy_atioqueues()
541 qh->size = htonl(aqp->length * sizeof(request_t)); qla2xxx_copy_atioqueues()
575 q->chain_size = htonl( qla25xx_copy_mqueues()
584 qh->number = htonl(que); qla25xx_copy_mqueues()
585 qh->size = htonl(req->length * sizeof(request_t)); qla25xx_copy_mqueues()
603 q->chain_size = htonl( qla25xx_copy_mqueues()
612 qh->number = htonl(que); qla25xx_copy_mqueues()
613 qh->size = htonl(rsp->length * sizeof(response_t)); qla25xx_copy_mqueues()
642 mq->count = htonl(que_cnt); qla25xx_copy_mq()
647 htonl(RD_REG_DWORD(&reg->isp25mq.req_q_in)); qla25xx_copy_mq()
649 htonl(RD_REG_DWORD(&reg->isp25mq.req_q_out)); qla25xx_copy_mq()
651 htonl(RD_REG_DWORD(&reg->isp25mq.rsp_q_in)); qla25xx_copy_mq()
653 htonl(RD_REG_DWORD(&reg->isp25mq.rsp_q_out)); qla25xx_copy_mq()
1082 fw->host_status = htonl(RD_REG_DWORD(&reg->host_status)); qla24xx_fw_dump()
1093 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_fw_dump()
1103 fw->shadow_reg[0] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1106 fw->shadow_reg[1] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1109 fw->shadow_reg[2] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1112 fw->shadow_reg[3] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1115 fw->shadow_reg[4] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1118 fw->shadow_reg[5] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1121 fw->shadow_reg[6] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla24xx_fw_dump()
1165 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_fw_dump()
1171 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_fw_dump()
1177 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_fw_dump()
1334 fw->host_status = htonl(RD_REG_DWORD(&reg->host_status)); qla25xx_fw_dump()
1352 fw->pcie_regs[0] = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump()
1353 fw->pcie_regs[1] = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump()
1354 fw->pcie_regs[2] = htonl(RD_REG_DWORD(dmp_reg)); qla25xx_fw_dump()
1355 fw->pcie_regs[3] = htonl(RD_REG_DWORD(&reg->iobase_window)); qla25xx_fw_dump()
1363 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump()
1373 fw->shadow_reg[0] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1376 fw->shadow_reg[1] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1379 fw->shadow_reg[2] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1382 fw->shadow_reg[3] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1385 fw->shadow_reg[4] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1388 fw->shadow_reg[5] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1391 fw->shadow_reg[6] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1394 fw->shadow_reg[7] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1397 fw->shadow_reg[8] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1400 fw->shadow_reg[9] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1403 fw->shadow_reg[10] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla25xx_fw_dump()
1407 fw->risc_io_reg = htonl(RD_REG_DWORD(&reg->iobase_window)); qla25xx_fw_dump()
1476 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump()
1482 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump()
1488 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump()
1652 fw->host_status = htonl(RD_REG_DWORD(&reg->host_status)); qla81xx_fw_dump()
1670 fw->pcie_regs[0] = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump()
1671 fw->pcie_regs[1] = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump()
1672 fw->pcie_regs[2] = htonl(RD_REG_DWORD(dmp_reg)); qla81xx_fw_dump()
1673 fw->pcie_regs[3] = htonl(RD_REG_DWORD(&reg->iobase_window)); qla81xx_fw_dump()
1681 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump()
1691 fw->shadow_reg[0] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1694 fw->shadow_reg[1] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1697 fw->shadow_reg[2] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1700 fw->shadow_reg[3] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1703 fw->shadow_reg[4] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1706 fw->shadow_reg[5] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1709 fw->shadow_reg[6] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1712 fw->shadow_reg[7] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1715 fw->shadow_reg[8] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1718 fw->shadow_reg[9] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1721 fw->shadow_reg[10] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla81xx_fw_dump()
1725 fw->risc_io_reg = htonl(RD_REG_DWORD(&reg->iobase_window)); qla81xx_fw_dump()
1794 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump()
1800 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump()
1806 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump()
1972 fw->host_status = htonl(RD_REG_DWORD(&reg->host_status)); qla83xx_fw_dump()
2010 fw->pcie_regs[0] = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump()
2011 fw->pcie_regs[1] = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump()
2012 fw->pcie_regs[2] = htonl(RD_REG_DWORD(dmp_reg)); qla83xx_fw_dump()
2013 fw->pcie_regs[3] = htonl(RD_REG_DWORD(&reg->iobase_window)); qla83xx_fw_dump()
2021 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump()
2031 fw->shadow_reg[0] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2034 fw->shadow_reg[1] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2037 fw->shadow_reg[2] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2040 fw->shadow_reg[3] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2043 fw->shadow_reg[4] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2046 fw->shadow_reg[5] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2049 fw->shadow_reg[6] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2052 fw->shadow_reg[7] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2055 fw->shadow_reg[8] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2058 fw->shadow_reg[9] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2061 fw->shadow_reg[10] = htonl(RD_REG_DWORD(&reg->iobase_sdata)); qla83xx_fw_dump()
2065 fw->risc_io_reg = htonl(RD_REG_DWORD(&reg->iobase_window)); qla83xx_fw_dump()
2166 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump()
2172 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump()
2178 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump()
/linux-4.1.27/net/netfilter/
H A Dnf_conntrack_seqadj.c87 new_start_seq = htonl(ntohl(sack->start_seq) - nf_ct_sack_block_adjust()
90 new_start_seq = htonl(ntohl(sack->start_seq) - nf_ct_sack_block_adjust()
95 new_end_seq = htonl(ntohl(sack->end_seq) - nf_ct_sack_block_adjust()
98 new_end_seq = htonl(ntohl(sack->end_seq) - nf_ct_sack_block_adjust()
193 newseq = htonl(ntohl(tcph->seq) + seqoff); nf_ct_seq_adjust()
194 newack = htonl(ntohl(tcph->ack_seq) - ackoff); nf_ct_seq_adjust()
H A Dnf_synproxy_core.c116 *ptr++ = htonl((TCPOPT_MSS << 24) | synproxy_build_options()
122 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) | synproxy_build_options()
127 *ptr++ = htonl((TCPOPT_NOP << 24) | synproxy_build_options()
132 *ptr++ = htonl(opts->tsval); synproxy_build_options()
133 *ptr++ = htonl(opts->tsecr); synproxy_build_options()
135 *ptr++ = htonl((TCPOPT_NOP << 24) | synproxy_build_options()
141 *ptr++ = htonl((TCPOPT_NOP << 24) | synproxy_build_options()
218 *ptr = htonl(ntohl(*ptr) - synproxy_tstamp_adjust()
223 *ptr = htonl(ntohl(*ptr) + synproxy_tstamp_adjust()
H A Dnft_byteorder.c50 d[i].u32 = (__force __u32)htonl(s[i].u32); nft_byteorder_eval()
128 if (nla_put_be32(skb, NFTA_BYTEORDER_OP, htonl(priv->op))) nft_byteorder_dump()
130 if (nla_put_be32(skb, NFTA_BYTEORDER_LEN, htonl(priv->len))) nft_byteorder_dump()
132 if (nla_put_be32(skb, NFTA_BYTEORDER_SIZE, htonl(priv->size))) nft_byteorder_dump()
H A Dnft_payload.c81 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || nft_payload_dump()
82 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || nft_payload_dump()
83 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len))) nft_payload_dump()
H A Dnft_log.c144 if (nla_put_be32(skb, NFTA_LOG_LEVEL, htonl(li->u.log.level))) nft_log_dump()
149 htonl(li->u.log.logflags))) nft_log_dump()
159 htonl(li->u.ulog.copy_len))) nft_log_dump()
H A Dnft_exthdr.c86 if (nla_put_be32(skb, NFTA_EXTHDR_OFFSET, htonl(priv->offset))) nft_exthdr_dump()
88 if (nla_put_be32(skb, NFTA_EXTHDR_LEN, htonl(priv->len))) nft_exthdr_dump()
H A Dnfnetlink_queue_core.c253 return flags ? nla_put_be32(nlskb, NFQA_SKB_INFO, htonl(flags)) : 0; nfqnl_put_packet_info()
267 htonl(from_kuid_munged(&init_user_ns, cred->fsuid)))) nfqnl_put_sk_uidgid()
270 htonl(from_kgid_munged(&init_user_ns, cred->fsgid)))) nfqnl_put_sk_uidgid()
384 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) nfqnl_build_packet_message()
392 htonl(indev->ifindex)) || nfqnl_build_packet_message()
396 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) nfqnl_build_packet_message()
404 htonl(indev->ifindex))) nfqnl_build_packet_message()
410 htonl(physinif))) nfqnl_build_packet_message()
418 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) nfqnl_build_packet_message()
426 htonl(outdev->ifindex)) || nfqnl_build_packet_message()
430 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) nfqnl_build_packet_message()
438 htonl(outdev->ifindex))) nfqnl_build_packet_message()
444 htonl(physoutif))) nfqnl_build_packet_message()
451 nla_put_be32(skb, NFQA_MARK, htonl(entskb->mark))) nfqnl_build_packet_message()
486 nla_put_be32(skb, NFQA_CAP_LEN, htonl(cap_len))) nfqnl_build_packet_message()
544 *packet_id_ptr = htonl(entry->id); __nfqnl_enqueue_packet()
H A Dnft_masq.c68 if (nla_put_be32(skb, NFTA_MASQ_FLAGS, htonl(priv->flags))) nft_masq_dump()
H A Dnft_nat.c221 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_SNAT))) nft_nat_dump()
225 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_DNAT))) nft_nat_dump()
230 if (nla_put_be32(skb, NFTA_NAT_FAMILY, htonl(priv->family))) nft_nat_dump()
250 if (nla_put_be32(skb, NFTA_NAT_FLAGS, htonl(priv->flags))) nft_nat_dump()
H A Dnfnetlink_log.c437 htonl(indev->ifindex))) __build_packet_message()
445 htonl(indev->ifindex)) || __build_packet_message()
449 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) __build_packet_message()
457 htonl(indev->ifindex))) __build_packet_message()
463 htonl(physindev->ifindex))) __build_packet_message()
472 htonl(outdev->ifindex))) __build_packet_message()
480 htonl(outdev->ifindex)) || __build_packet_message()
484 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) __build_packet_message()
492 htonl(outdev->ifindex))) __build_packet_message()
498 htonl(physoutdev->ifindex))) __build_packet_message()
505 nla_put_be32(inst->skb, NFULA_MARK, htonl(skb->mark))) __build_packet_message()
557 __be32 uid = htonl(from_kuid_munged(user_ns, cred->fsuid)); __build_packet_message()
558 __be32 gid = htonl(from_kgid_munged(user_ns, cred->fsgid)); __build_packet_message()
569 nla_put_be32(inst->skb, NFULA_SEQ, htonl(inst->seq++))) __build_packet_message()
575 htonl(atomic_inc_return(&log->global_seq)))) __build_packet_message()
H A Dnfnetlink_cthelper.c380 htonl(helper->expect_class_max))) nfnl_cthelper_dump_policy()
394 htonl(helper->expect_policy[i].max_expected))) nfnl_cthelper_dump_policy()
398 htonl(helper->expect_policy[i].timeout))) nfnl_cthelper_dump_policy()
432 if (nla_put_be32(skb, NFCTH_QUEUE_NUM, htonl(helper->queue_num))) nfnl_cthelper_fill_info()
441 if (nla_put_be32(skb, NFCTH_PRIV_DATA_LEN, htonl(helper->data_len))) nfnl_cthelper_fill_info()
449 if (nla_put_be32(skb, NFCTH_STATUS, htonl(status))) nfnl_cthelper_fill_info()
H A Dnf_conntrack_sane.c104 if (req->RPC_code != htonl(SANE_NET_START)) { help()
128 if (reply->status != htonl(SANE_STATUS_SUCCESS)) { help()
H A Dnft_cmp.c98 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(priv->op))) nft_cmp_dump()
153 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(NFT_CMP_EQ))) nft_cmp_fast_dump()
H A Dxt_cluster.c66 return ((st & htonl(0xFF000000)) == htonl(0xFF000000)); xt_cluster_ipv6_is_multicast()
H A Dnfnetlink_queue_ct.c78 if (nla_put_be32(skb, NFQA_CT_INFO, htonl(tmp))) nfqnl_ct_put()
H A Dnft_redir.c100 nla_put_be32(skb, NFTA_REDIR_FLAGS, htonl(priv->flags))) nft_redir_dump()
H A Dnft_reject.c58 if (nla_put_be32(skb, NFTA_REJECT_TYPE, htonl(priv->type))) nft_reject_dump()
H A Dnf_conntrack_netlink.c133 if (nla_put_be32(skb, CTA_STATUS, htonl(ct->status))) ctnetlink_dump_status()
149 if (nla_put_be32(skb, CTA_TIMEOUT, htonl(timeout))) ctnetlink_dump_timeout()
292 if (nla_put_be32(skb, CTA_MARK, htonl(ct->mark))) ctnetlink_dump_mark()
400 htonl(seq->correction_pos)) || dump_ct_seq_adj()
402 htonl(seq->offset_before)) || dump_ct_seq_adj()
404 htonl(seq->offset_after))) dump_ct_seq_adj()
438 if (nla_put_be32(skb, CTA_ID, htonl((unsigned long)ct))) ctnetlink_dump_id()
449 if (nla_put_be32(skb, CTA_USE, htonl(atomic_read(&ct->ct_general.use)))) ctnetlink_dump_use()
1910 if (nla_put_be32(skb, CTA_STATS_SEARCHED, htonl(st->searched)) || ctnetlink_ct_stat_cpu_fill_info()
1911 nla_put_be32(skb, CTA_STATS_FOUND, htonl(st->found)) || ctnetlink_ct_stat_cpu_fill_info()
1912 nla_put_be32(skb, CTA_STATS_NEW, htonl(st->new)) || ctnetlink_ct_stat_cpu_fill_info()
1913 nla_put_be32(skb, CTA_STATS_INVALID, htonl(st->invalid)) || ctnetlink_ct_stat_cpu_fill_info()
1914 nla_put_be32(skb, CTA_STATS_IGNORE, htonl(st->ignore)) || ctnetlink_ct_stat_cpu_fill_info()
1915 nla_put_be32(skb, CTA_STATS_DELETE, htonl(st->delete)) || ctnetlink_ct_stat_cpu_fill_info()
1916 nla_put_be32(skb, CTA_STATS_DELETE_LIST, htonl(st->delete_list)) || ctnetlink_ct_stat_cpu_fill_info()
1917 nla_put_be32(skb, CTA_STATS_INSERT, htonl(st->insert)) || ctnetlink_ct_stat_cpu_fill_info()
1919 htonl(st->insert_failed)) || ctnetlink_ct_stat_cpu_fill_info()
1920 nla_put_be32(skb, CTA_STATS_DROP, htonl(st->drop)) || ctnetlink_ct_stat_cpu_fill_info()
1921 nla_put_be32(skb, CTA_STATS_EARLY_DROP, htonl(st->early_drop)) || ctnetlink_ct_stat_cpu_fill_info()
1922 nla_put_be32(skb, CTA_STATS_ERROR, htonl(st->error)) || ctnetlink_ct_stat_cpu_fill_info()
1924 htonl(st->search_restart))) ctnetlink_ct_stat_cpu_fill_info()
1997 if (nla_put_be32(skb, CTA_STATS_GLOBAL_ENTRIES, htonl(nr_conntracks))) ctnetlink_stat_ct_fill_info()
2379 if (nla_put_be32(skb, CTA_EXPECT_NAT_DIR, htonl(exp->dir))) ctnetlink_exp_dump_expect()
2393 if (nla_put_be32(skb, CTA_EXPECT_TIMEOUT, htonl(timeout)) || ctnetlink_exp_dump_expect()
2394 nla_put_be32(skb, CTA_EXPECT_ID, htonl((unsigned long)exp)) || ctnetlink_exp_dump_expect()
2395 nla_put_be32(skb, CTA_EXPECT_FLAGS, htonl(exp->flags)) || ctnetlink_exp_dump_expect()
2396 nla_put_be32(skb, CTA_EXPECT_CLASS, htonl(exp->class))) ctnetlink_exp_dump_expect()
3071 if (nla_put_be32(skb, CTA_STATS_EXP_NEW, htonl(st->expect_new)) || ctnetlink_exp_stat_fill_info()
3072 nla_put_be32(skb, CTA_STATS_EXP_CREATE, htonl(st->expect_create)) || ctnetlink_exp_stat_fill_info()
3073 nla_put_be32(skb, CTA_STATS_EXP_DELETE, htonl(st->expect_delete))) ctnetlink_exp_stat_fill_info()
H A Dnf_nat_redirect.c49 newdst = htonl(0x7F000001); nf_nat_redirect_ipv4()
H A Dnft_bitwise.c101 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(priv->len))) nft_bitwise_dump()
H A Dnft_reject_inet.c102 if (nla_put_be32(skb, NFTA_REJECT_TYPE, htonl(priv->type))) nft_reject_inet_dump()
H A Dnf_conntrack_proto_udp.c187 htonl(timeouts[UDP_CT_UNREPLIED] / HZ)) || udp_timeout_obj_to_nlattr()
189 htonl(timeouts[UDP_CT_REPLIED] / HZ))) udp_timeout_obj_to_nlattr()
H A Dnf_conntrack_proto_udplite.c202 htonl(timeouts[UDPLITE_CT_UNREPLIED] / HZ)) || udplite_timeout_obj_to_nlattr()
204 htonl(timeouts[UDPLITE_CT_REPLIED] / HZ))) udplite_timeout_obj_to_nlattr()
H A Dnft_meta.c301 if (nla_put_be32(skb, NFTA_META_KEY, htonl(priv->key))) nft_meta_get_dump()
317 if (nla_put_be32(skb, NFTA_META_KEY, htonl(priv->key))) nft_meta_set_dump()
H A Dnf_conntrack_proto_tcp.c456 && *(__be32 *)ptr == htonl((TCPOPT_NOP << 24) tcp_sack()
1361 htonl(timeouts[TCP_CONNTRACK_SYN_SENT] / HZ)) || tcp_timeout_obj_to_nlattr()
1363 htonl(timeouts[TCP_CONNTRACK_SYN_RECV] / HZ)) || tcp_timeout_obj_to_nlattr()
1365 htonl(timeouts[TCP_CONNTRACK_ESTABLISHED] / HZ)) || tcp_timeout_obj_to_nlattr()
1367 htonl(timeouts[TCP_CONNTRACK_FIN_WAIT] / HZ)) || tcp_timeout_obj_to_nlattr()
1369 htonl(timeouts[TCP_CONNTRACK_CLOSE_WAIT] / HZ)) || tcp_timeout_obj_to_nlattr()
1371 htonl(timeouts[TCP_CONNTRACK_LAST_ACK] / HZ)) || tcp_timeout_obj_to_nlattr()
1373 htonl(timeouts[TCP_CONNTRACK_TIME_WAIT] / HZ)) || tcp_timeout_obj_to_nlattr()
1375 htonl(timeouts[TCP_CONNTRACK_CLOSE] / HZ)) || tcp_timeout_obj_to_nlattr()
1377 htonl(timeouts[TCP_CONNTRACK_SYN_SENT2] / HZ)) || tcp_timeout_obj_to_nlattr()
1379 htonl(timeouts[TCP_CONNTRACK_RETRANS] / HZ)) || tcp_timeout_obj_to_nlattr()
1381 htonl(timeouts[TCP_CONNTRACK_UNACK] / HZ))) tcp_timeout_obj_to_nlattr()
H A Dnf_conntrack_proto_generic.c123 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) generic_timeout_obj_to_nlattr()
H A Dnft_compat.c271 nla_put_be32(skb, NFTA_TARGET_REV, htonl(target->revision)) || nft_target_dump()
452 nla_put_be32(skb, NFTA_MATCH_REV, htonl(match->revision)) || nft_match_dump()
507 nla_put_be32(skb, NFTA_COMPAT_REV, htonl(rev)) || nfnl_compat_fill_info()
508 nla_put_be32(skb, NFTA_COMPAT_TYPE, htonl(target))) nfnl_compat_fill_info()
H A Dnf_conntrack_proto_gre.c334 htonl(timeouts[GRE_CT_UNREPLIED] / HZ)) || gre_timeout_obj_to_nlattr()
336 htonl(timeouts[GRE_CT_REPLIED] / HZ))) gre_timeout_obj_to_nlattr()
H A Dnfnetlink_acct.c167 nla_put_be32(skb, NFACCT_USE, htonl(atomic_read(&acct->refcnt)))) nfnl_acct_fill_info()
172 if (nla_put_be32(skb, NFACCT_FLAGS, htonl(old_flags)) || nfnl_acct_fill_info()
H A Dnft_ct.c365 if (nla_put_be32(skb, NFTA_CT_KEY, htonl(priv->key))) nft_ct_get_dump()
392 if (nla_put_be32(skb, NFTA_CT_KEY, htonl(priv->key))) nft_ct_set_dump()
H A Dnf_tables_api.c422 nla_put_be32(skb, NFTA_TABLE_FLAGS, htonl(table->flags)) || nf_tables_fill_table_info()
423 nla_put_be32(skb, NFTA_TABLE_USE, htonl(table->use))) nf_tables_fill_table_info()
953 if (nla_put_be32(skb, NFTA_HOOK_HOOKNUM, htonl(ops->hooknum))) nf_tables_fill_chain_info()
955 if (nla_put_be32(skb, NFTA_HOOK_PRIORITY, htonl(ops->priority))) nf_tables_fill_chain_info()
960 htonl(basechain->policy))) nf_tables_fill_chain_info()
970 if (nla_put_be32(skb, NFTA_CHAIN_USE, htonl(chain->use))) nf_tables_fill_chain_info()
2403 if (nla_put_be32(skb, NFTA_SET_FLAGS, htonl(set->flags))) nf_tables_fill_set()
2406 if (nla_put_be32(skb, NFTA_SET_KEY_TYPE, htonl(set->ktype))) nf_tables_fill_set()
2408 if (nla_put_be32(skb, NFTA_SET_KEY_LEN, htonl(set->klen))) nf_tables_fill_set()
2411 if (nla_put_be32(skb, NFTA_SET_DATA_TYPE, htonl(set->dtype))) nf_tables_fill_set()
2413 if (nla_put_be32(skb, NFTA_SET_DATA_LEN, htonl(set->dlen))) nf_tables_fill_set()
2421 nla_put_be32(skb, NFTA_SET_GC_INTERVAL, htonl(set->gc_int))) nf_tables_fill_set()
2425 if (nla_put_be32(skb, NFTA_SET_POLICY, htonl(set->policy))) nf_tables_fill_set()
2433 nla_put_be32(skb, NFTA_SET_DESC_SIZE, htonl(set->size))) nf_tables_fill_set()
3006 htonl(*nft_set_ext_flags(ext)))) nf_tables_fill_setelem()
3625 if (nla_put_be32(skb, NFTA_GEN_ID, htonl(net->nft.base_seq))) nf_tables_fill_gen_info()
4224 return nla_put_be32(skb, attr, htonl(reg)); nft_dump_register()
4383 if (nla_put_be32(skb, NFTA_VERDICT_CODE, htonl(data->verdict.code))) nft_verdict_dump()
H A Dnft_dynset.c225 if (nla_put_be32(skb, NFTA_DYNSET_OP, htonl(priv->op))) nft_dynset_dump()
H A Dnf_conntrack_ftp.c164 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | try_rfc959()
256 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) try_eprt()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Dvnic_vic.c40 vp->length = htonl(sizeof(vp->num_tlvs)); vic_provinfo_alloc()
69 vp->num_tlvs = htonl(ntohl(vp->num_tlvs) + 1); vic_provinfo_add_tlv()
70 vp->length = htonl(ntohl(vp->length) + vic_provinfo_add_tlv()
/linux-4.1.27/samples/bpf/
H A Dsockex2_user.c42 inet_ntoa((struct in_addr){htonl(next_key)}), main()
/linux-4.1.27/include/net/
H A Daddrconf.h308 htonl(0xFF020000), 0, addrconf_addr_solict_mult()
309 htonl(0x1), addrconf_addr_solict_mult()
310 htonl(0xFF000000) | addr->s6_addr32[3]); addrconf_addr_solict_mult()
319 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | ipv6_addr_is_ll_all_nodes()
321 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; ipv6_addr_is_ll_all_nodes()
331 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | ipv6_addr_is_ll_all_routers()
333 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; ipv6_addr_is_ll_all_routers()
339 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); ipv6_addr_is_isatap()
350 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | ipv6_addr_is_solict_mult()
352 (addr->s6_addr32[2] ^ htonl(0x00000001)) | ipv6_addr_is_solict_mult()
H A 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); IP6_ECN_set_ce()
137 *(__be32*)iph &= ~htonl(INET_ECN_MASK << 20); IP6_ECN_clear()
H A Dgue.h62 #define GUE_PFLAG_REMCSUM htonl(1 << 31)
H A Dipv6.h486 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) ipv6_prefix_equal()
607 return (a->s6_addr32[0] & htonl(0xfffffff0)) == htonl(0x20010010); ipv6_addr_orchid()
612 return (addr->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000); ipv6_addr_is_multicast()
620 htonl(0x0000FFFF), ipv6_addr_set_v4mapped()
762 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; ip6_flow_hdr()
H A Dif_inet6.h256 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) ipv6_ipgre_mc_map()
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
H A Diwch_cm.c179 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); release_tid()
180 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, hwtid)); release_tid()
194 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); iwch_quiesce_tid()
195 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); iwch_quiesce_tid()
196 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); iwch_quiesce_tid()
215 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); iwch_resume_tid()
216 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); iwch_resume_tid()
217 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); iwch_resume_tid()
401 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); send_halfclose()
402 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); send_halfclose()
403 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, ep->hwtid)); send_halfclose()
422 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); send_abort()
423 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); send_abort()
424 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ABORT_REQ, ep->hwtid)); send_abort()
461 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); send_connect()
462 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, ep->atid)); send_connect()
467 req->opt0h = htonl(opt0h); send_connect()
468 req->opt0l = htonl(opt0l); send_connect()
470 req->opt2 = htonl(opt2); send_connect()
519 req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA)|F_WR_COMPL); send_mpa_req()
520 req->wr_lo = htonl(V_WR_TID(ep->hwtid)); send_mpa_req()
521 req->len = htonl(len); send_mpa_req()
522 req->param = htonl(V_TX_PORT(ep->l2t->smt_idx) | send_mpa_req()
524 req->flags = htonl(F_TX_INIT); send_mpa_req()
525 req->sndseq = htonl(ep->snd_seq); send_mpa_req()
570 req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA)|F_WR_COMPL); send_mpa_reject()
571 req->wr_lo = htonl(V_WR_TID(ep->hwtid)); send_mpa_reject()
572 req->len = htonl(mpalen); send_mpa_reject()
573 req->param = htonl(V_TX_PORT(ep->l2t->smt_idx) | send_mpa_reject()
575 req->flags = htonl(F_TX_INIT); send_mpa_reject()
576 req->sndseq = htonl(ep->snd_seq); send_mpa_reject()
621 req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA)|F_WR_COMPL); send_mpa_reply()
622 req->wr_lo = htonl(V_WR_TID(ep->hwtid)); send_mpa_reply()
623 req->len = htonl(len); send_mpa_reply()
624 req->param = htonl(V_TX_PORT(ep->l2t->smt_idx) | send_mpa_reply()
626 req->flags = htonl(F_TX_INIT); send_mpa_reply()
627 req->sndseq = htonl(ep->snd_seq); send_mpa_reply()
806 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); update_rx_credits()
807 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_RX_DATA_ACK, ep->hwtid)); update_rx_credits()
808 req->credit_dack = htonl(V_RX_CREDITS(credits) | V_RX_FORCE_ACK(1)); update_rx_credits()
1213 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); listen_start()
1214 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, ep->stid)); listen_start()
1220 req->opt0h = htonl(F_DELACK | F_TCAM_BYPASS); listen_start()
1221 req->opt0l = htonl(V_RCV_BUFSIZ(rcv_win>>10)); listen_start()
1222 req->opt1 = htonl(V_CONN_POLICY(CPL_CONN_POLICY_ASK)); listen_start()
1254 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); listen_stop()
1256 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, ep->stid)); listen_stop()
1299 rpl->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); accept_cr()
1300 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_RPL, ep->hwtid)); accept_cr()
1302 rpl->opt0h = htonl(opt0h); accept_cr()
1303 rpl->opt0l_status = htonl(opt0l | CPL_PASS_OPEN_ACCEPT); accept_cr()
1304 rpl->opt2 = htonl(opt2); accept_cr()
1328 rpl->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); reject_cr()
1329 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_RPL, reject_cr()
1332 rpl->opt0h = htonl(F_TCAM_BYPASS); reject_cr()
1333 rpl->opt0l_status = htonl(CPL_PASS_OPEN_REJECT); reject_cr()
1630 rpl->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL)); peer_abort()
1631 rpl->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); peer_abort()
1632 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, ep->hwtid)); peer_abort()
/linux-4.1.27/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.c164 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); send_act_open_req()
165 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); send_act_open_req()
171 req->opt0h = htonl(V_KEEP_ALIVE(1) | F_TCAM_BYPASS | send_act_open_req()
174 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | send_act_open_req()
209 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); send_close_req()
210 req->wr.wr_lo = htonl(V_WR_TID(tid)); send_close_req()
211 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid)); send_close_req()
212 req->rsvd = htonl(csk->write_seq); send_close_req()
253 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); send_abort_req()
254 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); send_abort_req()
255 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ABORT_REQ, csk->tid)); send_abort_req()
256 req->rsvd0 = htonl(csk->snd_nxt); send_abort_req()
284 rpl->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL)); send_abort_rpl()
285 rpl->wr.wr_lo = htonl(V_WR_TID(csk->tid)); send_abort_rpl()
286 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, csk->tid)); send_abort_rpl()
312 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); send_rx_credits()
313 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_RX_DATA_ACK, csk->tid)); send_rx_credits()
314 req->credit_dack = htonl(F_RX_DACK_CHANGE | V_RX_DACK_MODE(1) | send_rx_credits()
357 req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA) | make_tx_data_wr()
359 req->wr_lo = htonl(V_WR_TID(csk->tid)); make_tx_data_wr()
361 req->len = htonl(len); make_tx_data_wr()
363 req->flags = htonl(V_TX_ULP_SUBMODE(cxgbi_skcb_ulp_mode(skb)) | make_tx_data_wr()
365 req->sndseq = htonl(csk->snd_nxt); make_tx_data_wr()
366 req->param = htonl(V_TX_PORT(l2t->smt_idx)); make_tx_data_wr()
369 req->flags |= htonl(V_TX_ACK_PAGES(2) | F_TX_INIT | make_tx_data_wr()
372 req->param |= htonl(V_TX_SNDBUF(cxgb3i_snd_win >> 15)); make_tx_data_wr()
1074 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_BYPASS)); ulp_mem_io_set_hdr()
1075 req->cmd_lock_addr = htonl(V_ULP_MEMIO_ADDR(addr >> 5) | ulp_mem_io_set_hdr()
1077 req->len = htonl(V_ULP_MEMIO_DATA_LEN(PPOD_SIZE >> 5) | ulp_mem_io_set_hdr()
1153 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); ddp_setup_conn_pgidx()
1154 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); ddp_setup_conn_pgidx()
1190 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); ddp_setup_conn_digest()
1191 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); ddp_setup_conn_digest()
/linux-4.1.27/arch/arc/include/uapi/asm/
H A Dswab.h12 * -Better htonl implementation (5 instead of 9 ALU instructions)
45 /* The kernel default implementation of htonl is
/linux-4.1.27/fs/nfs_common/
H A Dnfsacl.c57 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); xdr_nfsace_encode()
60 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); xdr_nfsace_encode()
63 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); xdr_nfsace_encode()
66 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); xdr_nfsace_encode()
69 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); xdr_nfsace_encode()
75 *p++ = htonl(entry->e_perm & S_IRWXO); xdr_nfsace_encode()
/linux-4.1.27/net/ipv4/netfilter/
H A Dipt_SYNPROXY.c95 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); synproxy_send_client_synack()
96 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_synack()
136 nth->seq = htonl(recv_seq - 1); synproxy_send_server_syn()
140 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); synproxy_send_server_syn()
181 nth->seq = htonl(ntohl(th->ack_seq)); synproxy_send_server_ack()
182 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_server_ack()
219 nth->seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_ack()
H A Dnf_reject_ipv4.c86 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + nf_reject_ip_tcphdr_put()
/linux-4.1.27/drivers/media/usb/ttusb-dec/
H A Dttusbdecfe.c100 __be32 freq = htonl(p->frequency / 1000); ttusbdecfe_dvbt_set_frontend()
137 freq = htonl(p->frequency + ttusbdecfe_dvbs_set_frontend()
140 sym_rate = htonl(p->symbol_rate); ttusbdecfe_dvbs_set_frontend()
142 band = htonl(state->hi_band ? LOF_HI : LOF_LO); ttusbdecfe_dvbs_set_frontend()
144 lnb_voltage = htonl(state->voltage); ttusbdecfe_dvbs_set_frontend()
/linux-4.1.27/net/netfilter/ipset/
H A Dip_set_hash_netnet.c115 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netnet4_data_list()
213 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); hash_netnet4_uadt()
214 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); hash_netnet4_uadt()
248 e.ip[0] = htonl(ip); hash_netnet4_uadt()
255 e.ip[1] = htonl(ip2); hash_netnet4_uadt()
342 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netnet6_data_list()
H A Dip_set_hash_ipportnet.c115 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_ipportnet4_data_list()
235 e.ip = htonl(ip); hash_ipportnet4_uadt()
236 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); hash_ipportnet4_uadt()
279 e.ip = htonl(ip); hash_ipportnet4_uadt()
289 e.ip2 = htonl(ip2); hash_ipportnet4_uadt()
368 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_ipportnet6_data_list()
H A Dip_set_hash_netportnet.c125 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netportnet4_data_list()
249 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); hash_netportnet4_uadt()
250 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); hash_netportnet4_uadt()
291 e.ip[0] = htonl(ip); hash_netportnet4_uadt()
302 e.ip[1] = htonl(ip2); hash_netportnet4_uadt()
398 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netportnet6_data_list()
H A Dip_set_hash_net.c96 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_net4_data_list()
181 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); hash_net4_uadt()
200 e.ip = htonl(ip); hash_net4_uadt()
265 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_net6_data_list()
H A Dpfxlen.c10 htonl(a), htonl(b), \
11 htonl(c), htonl(d), \
H A Dip_set_bitmap_ip.c97 htonl(map->first_ip + id * map->hosts)); bitmap_ip_do_list()
103 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || bitmap_ip_do_head()
104 nla_put_ipaddr4(skb, IPSET_ATTR_IP_TO, htonl(map->last_ip)) || bitmap_ip_do_head()
H A Dip_set_hash_ipmark.c64 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) hash_ipmark4_data_list()
158 e.ip = htonl(ip); hash_ipmark4_uadt()
192 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) hash_ipmark6_data_list()
H A Dip_set_bitmap_ipmac.c188 htonl(map->first_ip + id)) || bitmap_ipmac_do_list()
196 return nla_put_ipaddr4(skb, IPSET_ATTR_IP, htonl(map->first_ip)) || bitmap_ipmac_do_head()
197 nla_put_ipaddr4(skb, IPSET_ATTR_IP_TO, htonl(map->last_ip)); bitmap_ipmac_do_head()
H A Dip_set_hash_netiface.c194 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netiface4_data_list()
342 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); hash_netiface4_uadt()
362 e.ip = htonl(ip); hash_netiface4_uadt()
445 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netiface6_data_list()
H A Dip_set_hash_netport.c111 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netport4_data_list()
223 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); hash_netport4_uadt()
249 e.ip = htonl(ip); hash_netport4_uadt()
327 nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(flags)))) hash_netport6_data_list()
H A Dip_set_bitmap_gen.h100 nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)) || mtype_head()
102 htonl(sizeof(*map) + mtype_head()
H A Dip_set_hash_ip.c132 e.ip = htonl(ip); hash_ip4_uadt()
158 e.ip = htonl(ip); hash_ip4_uadt()
H A Dip_set_list_set.c485 if (nla_put_net32(skb, IPSET_ATTR_SIZE, htonl(map->size)) || list_set_head()
486 nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)) || list_set_head()
488 htonl(sizeof(*map) + map->size * set->dsize))) list_set_head()
H A Dip_set_hash_gen.h920 htonl(jhash_size(t->htable_bits))) || mtype_head()
921 nla_put_net32(skb, IPSET_ATTR_MAXELEM, htonl(h->maxelem))) mtype_head()
932 if (nla_put_net32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)) || mtype_head()
933 nla_put_net32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize))) mtype_head()
/linux-4.1.27/arch/arm/include/asm/
H A Dchecksum.h150 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), csum_ipv6_magic()
151 htonl(proto), sum)); csum_ipv6_magic()
/linux-4.1.27/tools/testing/selftests/net/
H A Dpsock_lib.h77 saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); pair_udp_open()
82 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); pair_udp_open()
/linux-4.1.27/net/rxrpc/
H A Drxkad.c138 tmpbuf.x[3] = htonl(conn->security_ix); rxkad_prime_packet_security()
175 tmpbuf.hdr.data_size = htonl(data_size); rxkad_secure_packet_auth()
220 rxkhdr.data_size = htonl(data_size | (u32) check << 16); rxkad_secure_packet_encrypt()
289 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); rxkad_secure_packet()
524 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); rxkad_verify_packet()
584 challenge.version = htonl(2); rxkad_issue_challenge()
585 challenge.nonce = htonl(conn->security_nonce); rxkad_issue_challenge()
586 challenge.min_level = htonl(0); rxkad_issue_challenge()
613 hdr.serial = htonl(atomic_inc_return(&conn->serial)); rxkad_issue_challenge()
663 hdr->serial = htonl(atomic_inc_return(&conn->serial)); rxkad_send_response()
688 response->encrypted.checksum = htonl(csum); rxkad_calc_response_checksum()
791 resp.encrypted.securityIndex = htonl(conn->security_ix); rxkad_respond_to_challenge()
800 resp.encrypted.inc_nonce = htonl(nonce + 1); rxkad_respond_to_challenge()
801 resp.encrypted.level = htonl(conn->security_level); rxkad_respond_to_challenge()
802 resp.kvno = htonl(token->kad->kvno); rxkad_respond_to_challenge()
803 resp.ticket_len = htonl(token->kad->ticket_len); rxkad_respond_to_challenge()
1080 if (response.encrypted.inc_nonce != htonl(conn->security_nonce + 1)) rxkad_verify_response()
H A Dar-connevent.c103 word = htonl(abort_code); rxrpc_abort_connection()
112 hdr.serial = htonl(atomic_inc_return(&conn->serial)); rxrpc_abort_connection()
382 code = htonl(skb->priority); rxrpc_reject_packets()
H A Dar-ack.c251 htonl(atomic_inc_return(&call->conn->serial)); rxrpc_resend()
978 data = htonl(call->abort_code); rxrpc_process_call()
998 ack.firstPacket = htonl(call->rx_data_eaten + 1); rxrpc_process_call()
1107 ack.firstPacket = htonl(call->rx_data_eaten + 1); rxrpc_process_call()
1218 ackinfo.maxMTU = htonl(mtu); rxrpc_process_call()
1219 ackinfo.rwind = htonl(rxrpc_rx_window_size); rxrpc_process_call()
1222 ackinfo.rxMTU = htonl(rxrpc_rx_mtu); rxrpc_process_call()
1223 ackinfo.jumbo_max = htonl(rxrpc_rx_jumbo_max); rxrpc_process_call()
1225 hdr.serial = htonl(atomic_inc_return(&call->conn->serial)); rxrpc_process_call()
1243 hdr.serial = htonl(atomic_inc_return(&call->conn->serial)); rxrpc_process_call()
H A Dar-connection.c272 conn->cid = htonl(real_conn_id); rxrpc_assign_connection_id()
407 call->cid = conn->cid | htonl(chan); rxrpc_connect_exclusive()
408 call->call_id = htonl(++conn->call_counter); rxrpc_connect_exclusive()
596 call->cid = conn->cid | htonl(chan); rxrpc_connect_call()
597 call->call_id = htonl(++conn->call_counter); rxrpc_connect_call()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c381 *data++ = htonl(t4_read_reg(adap, MC_DATA(i))); t4_mc_read()
438 *data++ = htonl(t4_read_reg(adap, EDC_DATA(i))); t4_edc_read()
1621 *data = (__force __u32) (htonl(*data)); t4_read_flash()
2015 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); t4_load_fw()
2110 c.op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | FW_CMD_REQUEST_F | t4_link_start()
2112 c.action_to_len16 = htonl(FW_PORT_CMD_ACTION_V(FW_PORT_ACTION_L1_CFG) | t4_link_start()
2116 c.u.l1cfg.rcap = htonl((lc->supported & ADVERT_MASK) | fc); t4_link_start()
2119 c.u.l1cfg.rcap = htonl(lc->requested_speed | fc | mdi); t4_link_start()
2122 c.u.l1cfg.rcap = htonl(lc->advertising | fc | mdi); t4_link_start()
2140 c.op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | FW_CMD_REQUEST_F | t4_restart_aneg()
2142 c.action_to_len16 = htonl(FW_PORT_CMD_ACTION_V(FW_PORT_ACTION_L1_CFG) | t4_restart_aneg()
2144 c.u.l1cfg.rcap = htonl(FW_PORT_CAP_ANEG); t4_restart_aneg()
2948 cmd.op_to_viid = htonl(FW_CMD_OP_V(FW_RSS_IND_TBL_CMD) | t4_config_rss_range()
2951 cmd.retval_len16 = htonl(FW_LEN16(cmd)); t4_config_rss_range()
2977 *qp++ = htonl(v); t4_config_rss_range()
3003 c.op_to_write = htonl(FW_CMD_OP_V(FW_RSS_GLB_CONFIG_CMD) | t4_config_glbl_rss()
3005 c.retval_len16 = htonl(FW_LEN16(c)); t4_config_glbl_rss()
3007 c.u.manual.mode_pkd = htonl(FW_RSS_GLB_CONFIG_CMD_MODE_V(mode)); t4_config_glbl_rss()
3010 htonl(FW_RSS_GLB_CONFIG_CMD_MODE_V(mode)); t4_config_glbl_rss()
3011 c.u.basicvirtual.synmapen_to_hashtoeplitz = htonl(flags); t4_config_glbl_rss()
3647 wr->op_pkd = htonl(FW_WR_OP_V(FW_FILTER_WR)); t4_mk_filtdelwr()
3648 wr->len16_pkd = htonl(FW_WR_LEN16_V(sizeof(*wr) / 16)); t4_mk_filtdelwr()
3649 wr->tid_to_iq = htonl(FW_FILTER_WR_TID_V(ftid) | t4_mk_filtdelwr()
3651 wr->del_filter_to_l2tix = htonl(FW_FILTER_WR_DEL_FILTER_F); t4_mk_filtdelwr()
3657 (var).op_to_write = htonl(FW_CMD_OP_V(FW_##cmd##_CMD) | \
3659 (var).retval_len16 = htonl(FW_LEN16(var)); \
3668 c.op_to_addrspace = htonl(FW_CMD_OP_V(FW_LDST_CMD) | FW_CMD_REQUEST_F | t4_fwaddrspace_write()
3671 c.cycles_to_len16 = htonl(FW_LEN16(c)); t4_fwaddrspace_write()
3672 c.u.addrval.addr = htonl(addr); t4_fwaddrspace_write()
3673 c.u.addrval.val = htonl(val); t4_fwaddrspace_write()
3696 c.op_to_addrspace = htonl(FW_CMD_OP_V(FW_LDST_CMD) | FW_CMD_REQUEST_F | t4_mdio_rd()
3698 c.cycles_to_len16 = htonl(FW_LEN16(c)); t4_mdio_rd()
3726 c.op_to_addrspace = htonl(FW_CMD_OP_V(FW_LDST_CMD) | FW_CMD_REQUEST_F | t4_mdio_wr()
3728 c.cycles_to_len16 = htonl(FW_LEN16(c)); t4_mdio_wr()
3866 c.err_to_clearinit = htonl( t4_fw_hello()
4020 c.val = htonl(reset); t4_fw_reset()
4053 c.val = htonl(PIORST_F | PIORSTMODE_F); t4_fw_halt()
4054 c.halt_pkd = htonl(FW_RESET_CMD_HALT_F); t4_fw_halt()
4348 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | FW_CMD_REQUEST_F | t4_query_params()
4351 c.retval_len16 = htonl(FW_LEN16(c)); t4_query_params()
4353 *p = htonl(*params++); t4_query_params()
4426 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | FW_CMD_REQUEST_F | t4_set_params()
4429 c.retval_len16 = htonl(FW_LEN16(c)); t4_set_params()
4431 *p++ = htonl(*params++); t4_set_params()
4432 *p++ = htonl(*val++); t4_set_params()
4468 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_PFVF_CMD) | FW_CMD_REQUEST_F | t4_cfg_pfvf()
4471 c.retval_len16 = htonl(FW_LEN16(c)); t4_cfg_pfvf()
4472 c.niqflint_niq = htonl(FW_PFVF_CMD_NIQFLINT_V(rxqi) | t4_cfg_pfvf()
4474 c.type_to_neq = htonl(FW_PFVF_CMD_CMASK_V(cmask) | t4_cfg_pfvf()
4477 c.tc_to_nexactf = htonl(FW_PFVF_CMD_TC_V(tc) | FW_PFVF_CMD_NVI_V(vi) | t4_cfg_pfvf()
4479 c.r_caps_to_nethctrl = htonl(FW_PFVF_CMD_R_CAPS_V(rcaps) | t4_cfg_pfvf()
4510 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_VI_CMD) | FW_CMD_REQUEST_F | t4_alloc_vi()
4513 c.alloc_to_len16 = htonl(FW_VI_CMD_ALLOC_F | FW_LEN16(c)); t4_alloc_vi()
4572 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_RXMODE_CMD) | FW_CMD_REQUEST_F | t4_set_rxmode()
4574 c.retval_len16 = htonl(FW_LEN16(c)); t4_set_rxmode()
4575 c.mtu_to_vlanexen = htonl(FW_VI_RXMODE_CMD_MTU_V(mtu) | t4_set_rxmode()
4620 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_MAC_CMD) | FW_CMD_REQUEST_F | t4_alloc_mac_filt()
4623 c.freemacs_to_len16 = htonl(FW_VI_MAC_CMD_FREEMACS_V(free) | t4_alloc_mac_filt()
4683 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_MAC_CMD) | FW_CMD_REQUEST_F | t4_change_mac()
4685 c.freemacs_to_len16 = htonl(FW_CMD_LEN16_V(1)); t4_change_mac()
4717 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_MAC_CMD) | FW_CMD_REQUEST_F | t4_set_addr_hash()
4719 c.freemacs_to_len16 = htonl(FW_VI_MAC_CMD_HASHVECEN_F | t4_set_addr_hash()
4744 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_ENABLE_CMD) | FW_CMD_REQUEST_F | t4_enable_vi_params()
4747 c.ien_to_len16 = htonl(FW_VI_ENABLE_CMD_IEN_V(rx_en) | t4_enable_vi_params()
4784 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_ENABLE_CMD) | FW_CMD_REQUEST_F | t4_identify_port()
4786 c.ien_to_len16 = htonl(FW_VI_ENABLE_CMD_LED_F | FW_LEN16(c)); t4_identify_port()
4811 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | t4_iq_free()
4814 c.alloc_to_len16 = htonl(FW_IQ_CMD_FREE_F | FW_LEN16(c)); t4_iq_free()
4815 c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iqtype)); t4_iq_free()
4838 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | t4_eth_eq_free()
4841 c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_FREE_F | FW_LEN16(c)); t4_eth_eq_free()
4842 c.eqid_pkd = htonl(FW_EQ_ETH_CMD_EQID_V(eqid)); t4_eth_eq_free()
4862 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | t4_ctrl_eq_free()
4865 c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_FREE_F | FW_LEN16(c)); t4_ctrl_eq_free()
4866 c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_EQID_V(eqid)); t4_ctrl_eq_free()
4886 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | t4_ofld_eq_free()
4889 c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE_F | FW_LEN16(c)); t4_ofld_eq_free()
4890 c.eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID_V(eqid)); t4_ofld_eq_free()
5226 devlog_cmd.op_to_write = htonl(FW_CMD_OP_V(FW_DEVLOG_CMD) | t4_init_devlog_params()
5228 devlog_cmd.retval_len16 = htonl(FW_LEN16(devlog_cmd)); t4_init_devlog_params()
5393 c.op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | for_each_port()
5396 c.action_to_len16 = htonl( for_each_port()
5420 rvc.op_to_viid = htonl(FW_CMD_OP_V(FW_RSS_VI_CONFIG_CMD) | for_each_port()
5423 rvc.retval_len16 = htonl(FW_LEN16(rvc)); for_each_port()
H A Dclip_tbl.c51 c.op_to_write = htonl(FW_CMD_OP_V(FW_CLIP_CMD) | clip6_get_mbox()
53 c.alloc_to_len16 = htonl(FW_CLIP_CMD_ALLOC_F | FW_LEN16(c)); clip6_get_mbox()
66 c.op_to_write = htonl(FW_CMD_OP_V(FW_CLIP_CMD) | clip6_release_mbox()
68 c.alloc_to_len16 = htonl(FW_CLIP_CMD_FREE_F | FW_LEN16(c)); clip6_release_mbox()
H A Dcxgb4_uld.h55 (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_TP_WR) | \
57 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \
64 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
68 (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | \
70 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \
H A Dsge.c864 sgl->len0 = htonl(len); write_sgl()
868 sgl->len0 = htonl(skb_frag_size(&si->frags[0])); write_sgl()
872 sgl->cmd_nsge = htonl(ULPTX_CMD_V(ULP_TX_SC_DSGL) | write_sgl()
1201 wr->equiq_to_len16 = htonl(wr_mid); t4_eth_xmit()
1214 wr->op_immdlen = htonl(FW_WR_OP_V(FW_ETH_TX_PKT_WR) | t4_eth_xmit()
1216 lso->c.lso_ctrl = htonl(LSO_OPCODE(CPL_TX_PKT_LSO) | t4_eth_xmit()
1224 lso->c.seqno_offset = htonl(0); t4_eth_xmit()
1226 lso->c.len = htonl(skb->len); t4_eth_xmit()
1228 lso->c.len = htonl(LSO_T5_XFER_SIZE(skb->len)); t4_eth_xmit()
1237 wr->op_immdlen = htonl(FW_WR_OP_V(FW_ETH_TX_PKT_WR) | t4_eth_xmit()
1256 cpl->ctrl0 = htonl(TXPKT_OPCODE(CPL_TX_PKT_XT) | t4_eth_xmit()
1330 wr->lo |= htonl(FW_WR_EQUEQ_F | FW_WR_EQUIQ_F); ctrlq_check_stop()
1512 wr->lo |= htonl(FW_WR_EQUEQ_F | FW_WR_EQUIQ_F); ofldtxq_stop()
1863 if ((pkt->l2info & htonl(RXF_TCP_F)) && t4_ethrx_handler()
1886 if (csum_ok && (pkt->l2info & htonl(RXF_UDP_F | RXF_TCP_F))) { t4_ethrx_handler()
1890 } else if (pkt->l2info & htonl(RXF_IP_F)) { t4_ethrx_handler()
2458 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | t4_sge_alloc_rxq()
2461 c.alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC_F | FW_IQ_CMD_IQSTART_F | t4_sge_alloc_rxq()
2463 c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(FW_IQ_TYPE_FL_INT_CAP) | t4_sge_alloc_rxq()
2484 c.iqns_to_fl0congen = htonl(FW_IQ_CMD_FL0PACKEN_F | t4_sge_alloc_rxq()
2590 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | t4_sge_alloc_eth_txq()
2594 c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_ALLOC_F | t4_sge_alloc_eth_txq()
2596 c.viid_pkd = htonl(FW_EQ_ETH_CMD_AUTOEQUEQE_F | t4_sge_alloc_eth_txq()
2598 c.fetchszm_to_iqid = htonl(FW_EQ_ETH_CMD_HOSTFCMODE_V(2) | t4_sge_alloc_eth_txq()
2602 c.dcaen_to_eqsize = htonl(FW_EQ_ETH_CMD_FBMIN_V(2) | t4_sge_alloc_eth_txq()
2644 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | t4_sge_alloc_ctrl_txq()
2648 c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_ALLOC_F | t4_sge_alloc_ctrl_txq()
2650 c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_CMPLIQID_V(cmplqid)); t4_sge_alloc_ctrl_txq()
2651 c.physeqid_pkd = htonl(0); t4_sge_alloc_ctrl_txq()
2652 c.fetchszm_to_iqid = htonl(FW_EQ_CTRL_CMD_HOSTFCMODE_V(2) | t4_sge_alloc_ctrl_txq()
2656 c.dcaen_to_eqsize = htonl(FW_EQ_CTRL_CMD_FBMIN_V(2) | t4_sge_alloc_ctrl_txq()
2698 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | t4_sge_alloc_ofld_txq()
2702 c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC_F | t4_sge_alloc_ofld_txq()
2704 c.fetchszm_to_iqid = htonl(FW_EQ_OFLD_CMD_HOSTFCMODE_V(2) | t4_sge_alloc_ofld_txq()
2708 c.dcaen_to_eqsize = htonl(FW_EQ_OFLD_CMD_FBMIN_V(2) | t4_sge_alloc_ofld_txq()
H A Dcxgb4_main.c1180 fwr->op_pkd = htonl(FW_WR_OP_V(FW_FILTER_WR)); set_filter_wr()
1181 fwr->len16_pkd = htonl(FW_WR_LEN16_V(sizeof(*fwr)/16)); set_filter_wr()
1183 htonl(FW_FILTER_WR_TID_V(ftid) | set_filter_wr()
1188 htonl(FW_FILTER_WR_RPTTID_V(f->fs.rpttid) | set_filter_wr()
1218 htonl(FW_FILTER_WR_MACI_V(f->fs.val.macidx) | set_filter_wr()
1574 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, tid)); mk_tid_release()
1731 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, stid)); cxgb4_create_server()
1735 req->peer_ip = htonl(0); cxgb4_create_server()
1772 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ6, stid)); cxgb4_create_server6()
1804 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, stid)); cxgb4_remove_server()
3053 htonl(FW_CMD_OP_V(FW_LDST_CMD) | t4_read_pcie_cfg4()
3057 ldst_cmd.cycles_to_len16 = htonl(FW_LEN16(ldst_cmd)); t4_read_pcie_cfg4()
3147 c->op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | adap_init1()
3149 c->cfvalid_to_len16 = htonl(FW_LEN16(*c)); adap_init1()
3164 c->op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | adap_init1()
3392 htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | adap_init0_config()
3396 htonl(FW_CAPS_CONFIG_CMD_CFVALID_F | adap_init0_config()
3412 htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | adap_init0_config()
3415 caps_cmd.cfvalid_to_len16 = htonl(FW_LEN16(caps_cmd)); adap_init0_config()
3437 htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | adap_init0_config()
3440 caps_cmd.cfvalid_to_len16 = htonl(FW_LEN16(caps_cmd)); adap_init0_config()
3814 caps_cmd.op_to_write = htonl(FW_CMD_OP_V(FW_CAPS_CONFIG_CMD) | adap_init0()
3816 caps_cmd.cfvalid_to_len16 = htonl(FW_LEN16(caps_cmd)); adap_init0()
/linux-4.1.27/fs/lockd/
H A Dxdr.c76 *p++ = htonl(c->len); nlm_encode_cookie()
161 *p++ = htonl(resp->lock.svid); nlm_encode_testres()
173 *p++ = htonl(start); nlm_encode_testres()
174 *p++ = htonl(len); nlm_encode_testres()
H A Dxdr4.c76 *p++ = htonl(c->len); nlm4_encode_cookie()
154 *p++ = htonl(resp->lock.svid); nlm4_encode_testres()
/linux-4.1.27/arch/blackfin/kernel/
H A Dflat.c52 val = htonl(val); bfin_get_addr_from_rp()
/linux-4.1.27/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c110 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); synproxy_send_client_synack()
111 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_synack()
151 nth->seq = htonl(recv_seq - 1); synproxy_send_server_syn()
155 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); synproxy_send_server_syn()
196 nth->seq = htonl(ntohl(th->ack_seq)); synproxy_send_server_ack()
197 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_server_ack()
234 nth->seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_ack()
H A Dip6t_NPT.c55 mask = htonl((1 << (i - pfx_len + 32)) - 1); ip6t_npt_map_pfx()
H A Dnf_reject_ipv6.c111 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + nf_reject_ip6_tcphdr_put()
/linux-4.1.27/net/tipc/
H A Dname_distr.c61 i->type = htonl(p->type); publ_to_item()
62 i->lower = htonl(p->lower); publ_to_item()
63 i->upper = htonl(p->upper); publ_to_item()
64 i->ref = htonl(p->ref); publ_to_item()
65 i->key = htonl(p->key); publ_to_item()
H A Dmsg.h135 m->hdr[w] = htonl(val); msg_set_word()
148 m->hdr[w] &= ~htonl(mask); msg_set_bits()
149 m->hdr[w] |= htonl(val); msg_set_bits()
240 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); msg_set_size()
H A Dnetlink_compat.c572 link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP])); tipc_nl_compat_link_dump()
847 node_info.addr = htonl(nla_get_u32(node[TIPC_NLA_NODE_ADDR])); tipc_nl_compat_node_dump()
848 node_info.up = htonl(nla_get_flag(node[TIPC_NLA_NODE_UP])); tipc_nl_compat_node_dump()
885 id = htonl(nla_get_u32(net[TIPC_NLA_NET_ID])); tipc_nl_compat_net_dump()
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c408 req->rsvd0 = htonl(csk->snd_nxt); send_abort_req()
531 htonl(FW_WR_OP_V(FW_FLOWC_WR) | FW_FLOWC_WR_NPARAMS_V(nparams)); send_tx_flowc_wr()
533 htonl(FW_WR_LEN16_V(flowclen16) | FW_WR_FLOWID_V(csk->tid)); send_tx_flowc_wr()
535 flowc->mnemval[0].val = htonl(csk->cdev->pfvf); send_tx_flowc_wr()
537 flowc->mnemval[1].val = htonl(csk->tx_chan); send_tx_flowc_wr()
539 flowc->mnemval[2].val = htonl(csk->tx_chan); send_tx_flowc_wr()
541 flowc->mnemval[3].val = htonl(csk->rss_qid); send_tx_flowc_wr()
543 flowc->mnemval[4].val = htonl(csk->snd_nxt); send_tx_flowc_wr()
545 flowc->mnemval[5].val = htonl(csk->rcv_nxt); send_tx_flowc_wr()
547 flowc->mnemval[6].val = htonl(cxgb4i_snd_win); send_tx_flowc_wr()
549 flowc->mnemval[7].val = htonl(csk->advmss); send_tx_flowc_wr()
579 req->op_to_immdlen = htonl(FW_WR_OP_V(FW_OFLD_TX_DATA_WR) | make_tx_data_wr()
582 req->flowid_len16 = htonl(FW_WR_FLOWID_V(csk->tid) | make_tx_data_wr()
597 req->tunnel_to_proxy = htonl(wr_ulp_mode | make_tx_data_wr()
599 req->plen = htonl(len); make_tx_data_wr()
1535 req->cmd = htonl(ULPTX_CMD_V(ULP_TX_MEM_WRITE) | ulp_mem_io_set_hdr()
1538 req->cmd = htonl(ULPTX_CMD_V(ULP_TX_MEM_WRITE) | ulp_mem_io_set_hdr()
1540 req->dlen = htonl(ULP_MEMIO_DATA_LEN_V(dlen >> 5)); ulp_mem_io_set_hdr()
1541 req->lock_addr = htonl(ULP_MEMIO_ADDR_V(pm_addr >> 5)); ulp_mem_io_set_hdr()
1542 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); ulp_mem_io_set_hdr()
1544 idata->cmd_more = htonl(ULPTX_CMD_V(ULP_TX_SC_IMM)); ulp_mem_io_set_hdr()
1545 idata->len = htonl(dlen); ulp_mem_io_set_hdr()
1642 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, csk->tid)); ddp_setup_conn_pgidx()
1674 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); ddp_setup_conn_digest()
/linux-4.1.27/net/ipv4/
H A Dip_options.c64 midtime = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC); ip_options_build()
247 if (*spec_dst == htonl(INADDR_ANY)) spec_dst_fill()
260 __be32 spec_dst = htonl(INADDR_ANY); ip_options_compile()
476 icmp_send(skb, ICMP_PARAMETERPROB, 0, htonl((pp_ptr-iph)<<24)); ip_options_compile()
627 icmp_send(skb, ICMP_PARAMETERPROB, 0, htonl(16<<24)); ip_options_rcv_srr()
635 icmp_send(skb, ICMP_PARAMETERPROB, 0, htonl((opt->srr+2)<<24)); ip_options_rcv_srr()
H A Dxfrm4_output.c37 ICMP_FRAG_NEEDED, htonl(mtu)); xfrm4_tunnel_check_size()
H A Dtcp_offload.c122 delta = htonl(oldlen + (thlen + mss)); tcp_gso_segment()
150 th->seq = htonl(seq); tcp_gso_segment()
167 delta = htonl(oldlen + (skb_tail_pointer(skb) - tcp_gso_segment()
H A Dipmr.c848 int line = MFC_HASH(htonl(INADDR_ANY), htonl(INADDR_ANY)); ipmr_cache_find_any_parent()
852 if (c->mfc_origin == htonl(INADDR_ANY) && ipmr_cache_find_any_parent()
853 c->mfc_mcastgrp == htonl(INADDR_ANY) && ipmr_cache_find_any_parent()
864 int line = MFC_HASH(mcastgrp, htonl(INADDR_ANY)); ipmr_cache_find_any()
867 if (mcastgrp == htonl(INADDR_ANY)) ipmr_cache_find_any()
871 if (c->mfc_origin == htonl(INADDR_ANY) && ipmr_cache_find_any()
1164 if (mfc->mfcc_mcastgrp.s_addr != htonl(INADDR_ANY) && ipmr_mfc_add()
1826 if (cache->mfc_origin == htonl(INADDR_ANY) && true_vifi >= 0) { ip_mr_forward()
1882 if (cache->mfc_origin == htonl(INADDR_ANY) && ip_mr_forward()
1883 cache->mfc_mcastgrp == htonl(INADDR_ANY)) { ip_mr_forward()
1900 if ((cache->mfc_origin != htonl(INADDR_ANY) || ip_mr_forward()
H A Dip_forward.c120 htonl(mtu)); ip_forward()
H A Dipcomp.c44 spi = htonl(ntohs(ipch->cpi)); ipcomp4_err()
H A Dah4.c220 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); ah_output()
227 *seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi); ah_output()
H A Desp4.c239 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); esp_output()
249 *seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi); esp_output()
H A Dtcp_ipv4.c619 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + tcp_v4_send_reset()
661 rep.opt[0] = htonl((TCPOPT_NOP << 24) | tcp_v4_send_reset()
731 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | tcp_v4_send_ack()
734 rep.opt[1] = htonl(tsval); tcp_v4_send_ack()
735 rep.opt[2] = htonl(tsecr); tcp_v4_send_ack()
743 rep.th.seq = htonl(seq); tcp_v4_send_ack()
744 rep.th.ack_seq = htonl(ack); tcp_v4_send_ack()
752 rep.opt[offset++] = htonl((TCPOPT_NOP << 24) | tcp_v4_send_ack()
H A Dinet_lro.c83 if (*topt != htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) lro_tcp_ip_check()
H A Dtcp_output.c455 *ptr++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | tcp_options_write()
463 *ptr++ = htonl((TCPOPT_MSS << 24) | tcp_options_write()
470 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) | tcp_options_write()
476 *ptr++ = htonl((TCPOPT_NOP << 24) | tcp_options_write()
481 *ptr++ = htonl(opts->tsval); tcp_options_write()
482 *ptr++ = htonl(opts->tsecr); tcp_options_write()
486 *ptr++ = htonl((TCPOPT_NOP << 24) | tcp_options_write()
493 *ptr++ = htonl((TCPOPT_NOP << 24) | tcp_options_write()
504 *ptr++ = htonl((TCPOPT_NOP << 24) | tcp_options_write()
512 *ptr++ = htonl(sp[this_sack].start_seq); tcp_options_write()
513 *ptr++ = htonl(sp[this_sack].end_seq); tcp_options_write()
526 *ptr = htonl((TCPOPT_EXP << 24) | (len << 16) | tcp_options_write()
969 th->seq = htonl(tcb->seq); tcp_transmit_skb()
970 th->ack_seq = htonl(tp->rcv_nxt); tcp_transmit_skb()
3006 th->seq = htonl(TCP_SKB_CB(skb)->seq); tcp_make_synack()
3008 th->ack_seq = htonl(tcp_rsk(req)->rcv_nxt); tcp_make_synack()
H A Dxfrm4_policy.c161 fl4->fl4_ipsec_spi = htonl(ntohs(ipcomp_hdr[1])); _decode_session4()
H A Dfib_trie.c1187 rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen,
1237 rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, new_fa->tb_id,
1524 rtmsg_fib(RTM_DELROUTE, htonl(key), fa_to_delete, plen, tb->tb_id,
1880 __be32 xkey = htonl(l->key); fn_trie_dump_leaf()
2371 __be32 prf = htonl(n->key); fib_trie_seq_show()
2379 __be32 val = htonl(n->key); fib_trie_seq_show()
2536 if (mask == htonl(0xFFFFFFFF)) fib_flag_trans()
2563 prefix = htonl(l->key); fib_route_seq_show()
/linux-4.1.27/arch/xtensa/include/asm/
H A Dchecksum.h234 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) csum_ipv6_magic()
/linux-4.1.27/arch/sparc/include/asm/
H A Dchecksum_64.h154 : "r" (saddr), "r" (daddr), "r"(htonl(len)), csum_ipv6_magic()
155 "r"(htonl(proto)), "r"(sum) csum_ipv6_magic()
H A Dchecksum_32.h229 "r"(htonl(len)), "r"(htonl(proto)), "r"(sum) csum_ipv6_magic()
/linux-4.1.27/arch/x86/include/asm/
H A Dchecksum_32.h170 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) csum_ipv6_magic()
/linux-4.1.27/arch/score/include/asm/
H A Dchecksum.h240 "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); csum_ipv6_magic()
/linux-4.1.27/arch/sh/include/asm/
H A Dchecksum_32.h191 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) csum_ipv6_magic()
/linux-4.1.27/net/batman-adv/
H A Dgateway_common.c131 gw.bandwidth_down = htonl(down); batadv_gw_tvlv_container_update()
132 gw.bandwidth_up = htonl(up); batadv_gw_tvlv_container_update()
/linux-4.1.27/drivers/net/ppp/
H A Dppp_mppe.h19 * but then we have to do a htonl() all the time and/or we still need
H A Dpptp.c250 hdr->seq = htonl(++opt->seq_sent); pptp_xmit()
254 hdr->ack = htonl(seq_recv); pptp_xmit()
/linux-4.1.27/drivers/net/wan/
H A Dhdlc_cisco.c113 data->type = htonl(type); cisco_keepalive_send()
118 data->time = htonl((jiffies - INITIAL_JIFFIES) * (1000 / HZ)); cisco_keepalive_send()
274 cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ, htonl(++st->txseq), cisco_timer()
275 htonl(st->rxseq)); cisco_timer()
/linux-4.1.27/drivers/net/wireless/hostap/
H A Dhostap_80211_rx.c159 hdr->version = htonl(LWNG_CAPHDR_VERSION); prism2_rx_80211()
160 hdr->length = htonl(phdrlen); prism2_rx_80211()
163 hdr->phytype = htonl(4); /* dss_dot11_b */ prism2_rx_80211()
164 hdr->channel = htonl(local->channel); prism2_rx_80211()
165 hdr->datarate = htonl(rx_stats->rate); prism2_rx_80211()
166 hdr->antenna = htonl(0); /* unknown */ prism2_rx_80211()
167 hdr->priority = htonl(0); /* unknown */ prism2_rx_80211()
168 hdr->ssi_type = htonl(3); /* raw */ prism2_rx_80211()
169 hdr->ssi_signal = htonl(rx_stats->signal); prism2_rx_80211()
170 hdr->ssi_noise = htonl(rx_stats->noise); prism2_rx_80211()
171 hdr->preamble = htonl(0); /* unknown */ prism2_rx_80211()
172 hdr->encoding = htonl(1); /* cck */ prism2_rx_80211()
/linux-4.1.27/include/linux/byteorder/
H A Dgeneric.h51 * htonl(__u32 x)
130 #undef htonl macro
138 #define htonl(x) ___htonl(x) macro
/linux-4.1.27/arch/um/drivers/
H A Dport_user.c128 addr.sin_addr.s_addr = htonl(INADDR_ANY); port_listen_fd()
/linux-4.1.27/include/rdma/
H A Dib.h63 a->sib_addr32[2] | (a->sib_addr32[3] ^ htonl(1))) == 0); ib_addr_loopback()
H A Dib_addr.h268 if (addr->s6_addr32[0] == htonl(0xfe800000) && rdma_link_local_addr()
/linux-4.1.27/net/dccp/
H A Doptions.c348 __be32 now = htonl(dccp_timestamp()); dccp_insert_option_timestamp()
365 tstamp_echo = htonl(dreq->dreq_timestamp_echo); dccp_insert_option_timestamp_echo()
369 tstamp_echo = htonl(dp->dccps_timestamp_echo); dccp_insert_option_timestamp_echo()
392 const __be32 var32 = htonl(elapsed_time); dccp_insert_option_timestamp_echo()
H A Ddccp.h407 dhx->dccph_seq_low = htonl(gss & 0xffffffff);
415 dhack->dccph_ack_nr_low = htonl(gsr & 0xffffffff);
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_app.c304 th->seq = htonl(seq + vseq->delta); vs_fix_seq()
308 th->seq = htonl(seq + vseq->previous_delta); vs_fix_seq()
333 th->ack_seq = htonl(ack_seq - vseq->delta); vs_fix_ack_seq()
338 th->ack_seq = htonl(ack_seq - vseq->previous_delta); vs_fix_ack_seq()
/linux-4.1.27/security/keys/
H A Dtrusted.h124 *(uint32_t *) & buf->data[buf->len] = htonl(value); store32()
H A Dtrusted.c498 ordinal = htonl(TPM_ORD_SEAL); tpm_seal()
499 datsize = htonl(datalen); tpm_seal()
500 pcrsize = htonl(pcrinfosize); tpm_seal()
603 ordinal = htonl(TPM_ORD_UNSEAL); tpm_unseal()
604 keyhndl = htonl(SRKHANDLE); tpm_unseal()
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c96 #define MYRI10GE_NO_CONFIRM_DATA htonl(0xffffffff)
406 buf->data0 = htonl(data->data0); myri10ge_send_cmd()
407 buf->data1 = htonl(data->data1); myri10ge_send_cmd()
408 buf->data2 = htonl(data->data2); myri10ge_send_cmd()
409 buf->cmd = htonl(cmd); myri10ge_send_cmd()
413 buf->response_addr.low = htonl(dma_low); myri10ge_send_cmd()
414 buf->response_addr.high = htonl(dma_high); myri10ge_send_cmd()
415 response->result = htonl(MYRI10GE_NO_RESPONSE_RESULT); myri10ge_send_cmd()
430 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); myri10ge_send_cmd()
439 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); myri10ge_send_cmd()
541 buf[0] = htonl(dma_high); /* confirm addr MSW */ myri10ge_dummy_rdma()
542 buf[1] = htonl(dma_low); /* confirm addr LSW */ myri10ge_dummy_rdma()
544 buf[3] = htonl(dma_high); /* dummy addr MSW */ myri10ge_dummy_rdma()
545 buf[4] = htonl(dma_low); /* dummy addr LSW */ myri10ge_dummy_rdma()
546 buf[5] = htonl(enable); /* enable? */ myri10ge_dummy_rdma()
781 buf[0] = htonl(dma_high); /* confirm addr MSW */ myri10ge_load_firmware()
782 buf[1] = htonl(dma_low); /* confirm addr LSW */ myri10ge_load_firmware()
789 buf[3] = htonl(MYRI10GE_FW_OFFSET + 8); /* where the code starts */ myri10ge_load_firmware()
790 buf[4] = htonl(size - 8); /* length of code */ myri10ge_load_firmware()
791 buf[5] = htonl(8); /* where to copy to */ myri10ge_load_firmware()
792 buf[6] = htonl(0); /* where to jump to */ myri10ge_load_firmware()
1128 put_be32(htonl(mgp->intr_coal_delay), mgp->intr_coal_delay_ptr); myri10ge_reset()
1190 put_be32(htonl(tag), ss->dca_tag); myri10ge_write_dca()
1269 src->addr_low = htonl(DMA_BIT_MASK(32)); myri10ge_submit_8rx()
1343 htonl(MYRI10GE_LOWPART_TO_U32(rx->bus) + rx->page_offset); myri10ge_alloc_rx_pages()
1345 htonl(MYRI10GE_HIGHPART_TO_U32(rx->bus)); myri10ge_alloc_rx_pages()
1571 put_be32(htonl(1), tx->send_stop); myri10ge_tx_done()
1682 put_be32(htonl(3), ss->irq_claim); myri10ge_poll()
1771 put_be32(htonl(3), ss->irq_claim + 1); myri10ge_intr()
1849 put_be32(htonl(mgp->intr_coal_delay), mgp->intr_coal_delay_ptr); myri10ge_set_coalesce()
2956 high_swapped = htonl(MYRI10GE_HIGHPART_TO_U32(bus)); myri10ge_xmit()
2998 req->addr_low = htonl(low); myri10ge_xmit()
3052 put_be32(htonl(1), tx->send_go); myri10ge_xmit()
/linux-4.1.27/arch/mips/include/asm/
H A Dchecksum.h277 "0" (htonl(len)), "r" (htonl(proto)), "r" (sum)); csum_ipv6_magic()
/linux-4.1.27/net/802/
H A Dhippi.c62 hip->fp.fixed = htonl(0x04800018); hippi_header()
63 hip->fp.d2_size = htonl(len + 8); hippi_header()
/linux-4.1.27/net/xfrm/
H A Dxfrm_input.c147 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); xfrm_parse_spi()
289 seq_hi = htonl(xfrm_replay_seqhi(x, seq)); xfrm_input()
H A Dxfrm_hash.h67 mask = htonl((0xffffffff) << (32 - pbi)); __xfrm6_pref_hash()
/linux-4.1.27/firmware/
H A Dihex2fw.c232 data32 = htonl(data32); process_ihex()
270 p->addr = htonl(p->addr); output_records()
/linux-4.1.27/drivers/net/slip/
H A Dslhc.c544 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); slhc_uncompress()
545 thp->seq = htonl( ntohl(thp->seq) + i); slhc_uncompress()
550 thp->seq = htonl( ntohl(thp->seq) + slhc_uncompress()
573 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x); slhc_uncompress()
579 thp->seq = htonl( ntohl(thp->seq) + x); slhc_uncompress()
/linux-4.1.27/fs/ncpfs/
H A Dsock.c305 req->sign[0] = htonl(NCP_TCP_XMIT_MAGIC); ncptcp_start_request()
306 req->sign[1] = htonl(req->tx_totallen + signlen); ncptcp_start_request()
307 req->sign[2] = htonl(NCP_TCP_XMIT_VERSION); ncptcp_start_request()
308 req->sign[3] = htonl(req->datalen + 8); ncptcp_start_request()
569 if (server->rcv.buf.magic != htonl(NCP_TCP_RCVD_MAGIC)) { __ncptcp_rcv_proc()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
H A Dcxgb3_offload.c556 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); mk_tid_release()
557 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, tid)); mk_tid_release()
879 htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL)); do_abort_req_rss()
880 rpl->wr.wr_lo = htonl(V_WR_TID(tid)); do_abort_req_rss()
881 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, tid)); do_abort_req_rss()
1100 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); set_l2t_ix()
1101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); set_l2t_ix()
H A Dl2t.c100 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); setup_l2e_send_pending()
101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_L2T_WRITE_REQ, e->idx)); setup_l2e_send_pending()
102 req->params = htonl(V_L2T_W_IDX(e->idx) | V_L2T_W_IFF(e->smt_idx) | setup_l2e_send_pending()
H A Dsge.c1069 wrp->wr_hi = htonl(F_WR_SOP | F_WR_EOP | V_WR_DATATYPE(1) | write_wr_hdr_sgl()
1072 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | write_wr_hdr_sgl()
1080 wrp->wr_hi = htonl(F_WR_SOP | V_WR_DATATYPE(1) | write_wr_hdr_sgl()
1107 wrp->wr_hi = htonl(V_WR_DATATYPE(1) | write_wr_hdr_sgl()
1109 wrp->wr_lo = htonl(V_WR_LEN(min(WR_FLITS, write_wr_hdr_sgl()
1116 wrp->wr_hi |= htonl(F_WR_EOP); write_wr_hdr_sgl()
1118 wp->wr_lo = htonl(V_WR_LEN(WR_FLITS) | V_WR_GEN(ogen)) | wr_lo; write_wr_hdr_sgl()
1148 cpl->len = htonl(skb->len); write_tx_pkt_wr()
1161 hdr->cntrl = htonl(cntrl); write_tx_pkt_wr()
1167 hdr->lso_info = htonl(tso_info); write_tx_pkt_wr()
1173 cpl->cntrl = htonl(cntrl); write_tx_pkt_wr()
1184 cpl->wr.wr_hi = htonl(V_WR_BCNTLFLT(skb->len & 7) | write_tx_pkt_wr()
1188 cpl->wr.wr_lo = htonl(V_WR_LEN(flits) | V_WR_GEN(gen) | write_tx_pkt_wr()
1202 htonl(V_WR_OP(FW_WROPCODE_TUNNEL_TX_PKT) | compl), write_tx_pkt_wr()
1203 htonl(V_WR_TID(q->token))); write_tx_pkt_wr()
1343 to->wr_hi = from->wr_hi | htonl(F_WR_SOP | F_WR_EOP | write_imm()
1346 to->wr_lo = from->wr_lo | htonl(V_WR_GEN(gen) | write_imm()
1437 wrp->wr_hi |= htonl(F_WR_SOP | F_WR_EOP); ctrl_xmit()
1438 wrp->wr_lo = htonl(V_WR_TID(q->token)); ctrl_xmit()
2287 rss_hi = htonl(CPL_ASYNC_NOTIF << 24); process_responses()
2398 __be32 n = r->flags & htonl(F_RSPD_ASYNC_NOTIF | F_RSPD_IMM_DATA_VALID); is_pure_response()
H A Dcxgb3_main.c476 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); init_tp_parity()
477 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SMT_WRITE_REQ, i)); init_tp_parity()
500 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); init_tp_parity()
501 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_L2T_WRITE_REQ, i)); init_tp_parity()
502 req->params = htonl(V_L2T_W_IDX(i)); init_tp_parity()
523 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); init_tp_parity()
524 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_RTE_WRITE_REQ, i)); init_tp_parity()
525 req->l2t_idx = htonl(V_L2T_W_IDX(i)); init_tp_parity()
543 greq->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); init_tp_parity()
544 OPCODE_TID(greq) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, 0)); init_tp_parity()
910 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); write_smt_entry()
911 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SMT_WRITE_REQ, idx)); write_smt_entry()
953 req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_MNGT)); send_pktsched_cmd()
/linux-4.1.27/drivers/target/tcm_fc/
H A Dtfc_cmd.c152 fcp->ext.fr_sns_len = htonl(len); ft_queue_status()
223 txrdy->ft_burst_len = htonl(se_cmd->data_length); ft_write_pending()
327 fcp->ext.fr_rsp_len = htonl(sizeof(*info)); ft_send_resp_status()
H A Dtfc_sess.c402 spp->spp_params = htonl(fcp_parm | FCP_SPPF_TARG_FCN); ft_prli_locked()
408 spp->spp_params = htonl(fcp_parm); ft_prli_locked()
/linux-4.1.27/include/linux/netfilter/ipset/
H A Dip_set.h269 htonl(set->timeout)))) ip_set_put_flags()
282 return nla_put_net32(skb, IPSET_ATTR_CADT_FLAGS, htonl(cadt_flags)); ip_set_put_flags()
544 htonl(active ? ip_set_timeout_get(timeout) ip_set_put_extensions()
/linux-4.1.27/net/sunrpc/auth_gss/
H A Dauth_gss.c1492 *p++ = htonl(RPC_AUTH_GSS); gss_marshal()
1499 *p++ = htonl((u32) RPC_GSS_VERSION); gss_marshal()
1500 *p++ = htonl((u32) ctx->gc_proc); gss_marshal()
1501 *p++ = htonl((u32) req->rq_seqno); gss_marshal()
1502 *p++ = htonl((u32) gss_cred->gc_service); gss_marshal()
1504 *cred_len = htonl((p - (cred_len + 1)) << 2); gss_marshal()
1514 *p++ = htonl(RPC_AUTH_GSS); gss_marshal()
1624 seq = htonl(task->tk_rqstp->rq_seqno); gss_validate()
1680 *p++ = htonl(rqstp->rq_seqno); gss_wrap_req_integ()
1687 *integ_len = htonl(integ_buf.len); gss_wrap_req_integ()
1772 *p++ = htonl(rqstp->rq_seqno); gss_wrap_req_priv()
1807 *opaque_len = htonl(snd_buf->len - offset); gss_wrap_req_priv()
H A Dsvcauth_gss.c729 xdr_seq = htonl(seq); gss_write_verf()
739 *p++ = htonl(mic.len); gss_write_verf()
1596 *p++ = htonl(integ_len); svcauth_gss_wrap_resp_integ()
1597 *p++ = htonl(gc->gc_seq); svcauth_gss_wrap_resp_integ()
1640 *p++ = htonl(gc->gc_seq); svcauth_gss_wrap_resp_priv()
1680 *len = htonl(resbuf->len - offset); svcauth_gss_wrap_resp_priv()
/linux-4.1.27/drivers/scsi/
H A Dosst.c563 aux->format_id = htonl(0); osst_init_aux()
565 aux->hdwr = htonl(0); osst_init_aux()
570 aux->update_frame_cntr = htonl(STp->update_frame_cntr); osst_init_aux()
575 par->first_frame_ppos = htonl(0); osst_init_aux()
576 par->last_frame_ppos = htonl(0xbb7); osst_init_aux()
577 aux->frame_seq_num = htonl(0); osst_init_aux()
578 aux->logical_blk_num_high = htonl(0); osst_init_aux()
579 aux->logical_blk_num = htonl(0); osst_init_aux()
580 aux->next_mark_ppos = htonl(STp->first_mark_ppos); osst_init_aux()
588 dat->dat_list[0].blk_sz = htonl(blk_sz); osst_init_aux()
594 aux->update_frame_cntr = htonl(0); osst_init_aux()
598 par->first_frame_ppos = htonl(STp->first_data_ppos); osst_init_aux()
599 par->last_frame_ppos = htonl(STp->capacity); osst_init_aux()
600 aux->frame_seq_num = htonl(frame_seq_number); osst_init_aux()
601 aux->logical_blk_num_high = htonl(0); osst_init_aux()
602 aux->logical_blk_num = htonl(logical_blk_num); osst_init_aux()
606 aux->filemark_cnt = htonl(STp->filemark_cnt); osst_init_aux()
607 aux->phys_fm = htonl(0xffffffff); osst_init_aux()
608 aux->last_mark_ppos = htonl(STp->last_mark_ppos);
609 aux->last_mark_lbn = htonl(STp->last_mark_lbn);
710 STp->header_cache->dat_fm_tab.fm_tab_ent[i] = htonl(STp->first_frame_position - 1); osst_verify_frame()
2209 STp->header_cache->dat_fm_tab.fm_tab_ent[STp->filemark_cnt] = htonl(this_mark_ppos); osst_write_filemark()
2323 header->partition[0].first_frame_ppos = htonl(STp->first_data_ppos); osst_write_header()
2324 header->partition[0].last_frame_ppos = htonl(STp->capacity); osst_write_header()
2325 header->partition[0].eod_frame_ppos = htonl(STp->eod_frame_ppos); osst_write_header()
2326 header->cfg_col_width = htonl(20); osst_write_header()
2327 header->dat_col_width = htonl(1500); osst_write_header()
2328 header->qfa_col_width = htonl(0); osst_write_header()
2335 header->ext_track_tb.dat_ext_trk_ey.last_hlb = htonl(STp->eod_frame_lfa); osst_write_header()
2336 header->ext_track_tb.dat_ext_trk_ey.last_pp = htonl(STp->eod_frame_ppos); osst_write_header()
2532 header->partition[0].last_frame_ppos != htonl(STp->capacity) || __osst_analyze_headers()
2533 header->cfg_col_width != htonl(20) || __osst_analyze_headers()
2534 header->dat_col_width != htonl(1500) || __osst_analyze_headers()
2535 header->qfa_col_width != htonl(0) || __osst_analyze_headers()
2542 header->ext_track_tb.dat_ext_trk_ey.last_pp != htonl(STp->eod_frame_ppos) || __osst_analyze_headers()
/linux-4.1.27/arch/x86/lib/
H A Dcsum-wrappers_64.c142 rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + csum_ipv6_magic()
/linux-4.1.27/net/rds/
H A Dbind.c175 sin->sin_addr.s_addr == htonl(INADDR_ANY)) { rds_bind()
H A Drdma_transport.c172 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY); rds_rdma_listen_init()
H A Dtcp_listen.c203 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY); rds_tcp_listen_init()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.h63 dma_addr->a32.addr_lo = (u32) htonl(pa); __bfa_dma_be_addr_set()
64 dma_addr->a32.addr_hi = (u32) htonl(upper_32_bits(pa)); __bfa_dma_be_addr_set()
/linux-4.1.27/net/switchdev/
H A Dswitchdev.c338 err = ops->swdev_fib_ipv4_add(dev, htonl(dst), dst_len, netdev_switch_fib_ipv4_add()
377 err = ops->swdev_fib_ipv4_del(dev, htonl(dst), dst_len, netdev_switch_fib_ipv4_del()
/linux-4.1.27/drivers/infiniband/hw/nes/
H A Dnes_cm.c485 iph->saddr = htonl(cm_node->mapped_loc_addr); form_cm_frame()
486 iph->daddr = htonl(cm_node->mapped_rem_addr); form_cm_frame()
490 tcph->seq = htonl(cm_node->tcp_cntxt.loc_seq_num); form_cm_frame()
494 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); form_cm_frame()
548 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), nes_create_mapinfo()
550 nes_create_sockaddr(htonl(cm_info->mapped_loc_addr), nes_create_mapinfo()
568 nes_create_sockaddr(htonl(loc_addr), htons(loc_port), &local_sockaddr); nes_remove_mapinfo()
569 nes_create_sockaddr(htonl(mapped_loc_addr), htons(mapped_loc_port), nes_remove_mapinfo()
582 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), nes_form_pm_msg()
584 nes_create_sockaddr(htonl(cm_info->rem_addr), htons(cm_info->rem_port), nes_form_pm_msg()
632 nes_create_sockaddr(htonl(cm_node->mapped_loc_addr), nes_get_remote_addr()
634 nes_create_sockaddr(htonl(cm_node->mapped_rem_addr), nes_get_remote_addr()
1524 rt = ip_route_output(&init_net, htonl(dst_ip), 0, 0, 0); nes_addr_resolve_neigh()
1637 cm_node->tcp_cntxt.loc_seq_num = htonl(ts.tv_nsec); make_cm_node()
3406 nes_quad.SrcIpadr = htonl(cm_node->mapped_rem_addr); nes_accept()
3833 nes_quad.SrcIpadr = htonl(cm_node->mapped_rem_addr); cm_event_connected()
3863 cm_event_laddr->sin_addr.s_addr = htonl(event->cm_info.rem_addr); cm_event_connected()
4025 cm_event_laddr->sin_addr.s_addr = htonl(event->cm_info.loc_addr); cm_event_mpa_req()
4029 cm_event_raddr->sin_addr.s_addr = htonl(event->cm_info.rem_addr); cm_event_mpa_req()
4074 cm_event_laddr->sin_addr.s_addr = htonl(event->cm_info.loc_addr); cm_event_mpa_reject()
4078 cm_event_raddr->sin_addr.s_addr = htonl(event->cm_info.rem_addr); cm_event_mpa_reject()
/linux-4.1.27/drivers/net/
H A Dvxlan.c160 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); vxlan_addr_any()
205 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); vxlan_addr_any()
823 ip->sin.sin_addr.s_addr = htonl(INADDR_ANY); vxlan_fdb_parse()
1659 vxh->vx_flags |= htonl(VXLAN_HF_GBP); vxlan_build_gbp_hdr()
1724 vxh->vx_flags = htonl(VXLAN_HF_VNI); vxlan6_xmit_skb()
1734 vxh->vx_vni |= htonl(data); vxlan6_xmit_skb()
1735 vxh->vx_flags |= htonl(VXLAN_HF_RCO); vxlan6_xmit_skb()
1803 vxh->vx_flags = htonl(VXLAN_HF_VNI); vxlan_xmit_skb()
1813 vxh->vx_vni |= htonl(data); vxlan_xmit_skb()
1814 vxh->vx_flags |= htonl(VXLAN_HF_RCO); vxlan_xmit_skb()
1851 loopback.sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); vxlan_encap_bypass()
1959 md.vni = htonl(vni << 8); vxlan_xmit_one()
2018 md.vni = htonl(vni << 8); vxlan_xmit_one()
/linux-4.1.27/net/core/
H A Dpktgen.c183 #define MPLS_STACK_BOTTOM htonl(0x00000100)
836 pkt_dev->labels[n] = htonl(tmp); get_labels()
2286 x = xfrm_state_lookup_byspi(pn->net, htonl(pkt_dev->spi), AF_INET); get_ipsec_sa()
2400 htonl(0x000fffff)); mod_cur_headers()
2451 pkt_dev->cur_saddr = htonl(t); mod_cur_headers()
2467 s = htonl(t); mod_cur_headers()
2480 pkt_dev->cur_daddr = htonl(t); mod_cur_headers()
2710 pgh->pgh_magic = htonl(PKTGEN_MAGIC); pktgen_finalize_skb()
2711 pgh->seq_num = htonl(pkt_dev->seq_num); pktgen_finalize_skb()
2718 pgh->tv_sec = htonl(timestamp.tv_sec); pktgen_finalize_skb()
2719 pgh->tv_usec = htonl(timestamp.tv_usec); pktgen_finalize_skb()
2963 *(__be32 *) iph = htonl(0x60000000); /* Version + flow */ fill_packet_ipv6()
2967 *(__be32 *)iph |= htonl(0x60000000 | (pkt_dev->traffic_class << 20)); fill_packet_ipv6()
H A Dutils.c73 return htonl(l); in_aton()
/linux-4.1.27/net/sctp/
H A Dsm_make_chunk.c248 init.init_tag = htonl(asoc->c.my_vtag); sctp_make_init()
249 init.a_rwnd = htonl(asoc->rwnd); sctp_make_init()
252 init.initial_tsn = htonl(asoc->c.initial_tsn); sctp_make_init()
362 aiparam.adaptation_ind = htonl(sp->adaptation_ind); sctp_make_init()
407 initack.init_tag = htonl(asoc->c.my_vtag); sctp_make_init_ack()
408 initack.a_rwnd = htonl(asoc->rwnd); sctp_make_init_ack()
411 initack.initial_tsn = htonl(asoc->c.initial_tsn); sctp_make_init_ack()
503 aiparam.adaptation_ind = htonl(sp->adaptation_ind); sctp_make_init_ack()
665 cwr.lowest_tsn = htonl(lowest_tsn); sctp_make_cwr()
699 ecne.lowest_tsn = htonl(lowest_tsn); sctp_make_ecne()
774 sack.cum_tsn_ack = htonl(ctsn); sctp_make_sack()
775 sack.a_rwnd = htonl(asoc->a_rwnd); sctp_make_sack()
861 shut.cum_tsn_ack = htonl(ctsn); sctp_make_shutdown()
982 payload = htonl(tsn); sctp_make_abort_no_data()
1563 htonl(sctp_association_get_next_tsn(chunk->asoc)); sctp_chunk_assign_tsn()
1798 __be32 n = htonl(usecs); sctp_unpack_cookie()
1889 report.num_missing = htonl(1); sctp_process_missing_param()
2763 asconf.serial = htonl(asoc->addip_serial++); sctp_make_asconf()
2947 asconf.serial = htonl(serial); sctp_make_asconf_ack()
3490 ftsn_hdr.new_cum_tsn = htonl(new_cum_tsn); sctp_make_fwdtsn()
H A Dprotocol.c325 addr->v4.sin_addr.s_addr = htonl(INADDR_ANY); sctp_v4_inaddr_any()
332 return htonl(INADDR_ANY) == addr->v4.sin_addr.s_addr; sctp_v4_is_any()
368 if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && sctp_v4_available()
918 if (htonl(INADDR_ANY) == addr1->v4.sin_addr.s_addr || sctp_inet_cmp_addr()
919 htonl(INADDR_ANY) == addr2->v4.sin_addr.s_addr) sctp_inet_cmp_addr()
/linux-4.1.27/drivers/block/
H A Dnbd.c235 request.magic = htonl(NBD_REQUEST_MAGIC); nbd_send_req()
236 request.type = htonl(nbd_cmd(req)); nbd_send_req()
240 request.len = htonl(size); nbd_send_req()
/linux-4.1.27/include/scsi/
H A Dfc_encode.h67 fh->fh_parm_offset = htonl(parm_offset); __fc_fill_fc_hdr()
556 csp->sp_e_d_tov = htonl(lport->e_d_tov); fc_plogi_fill()
670 pp->spp.spp_params = htonl(lport->service_params); fc_prli_fill()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_private.h198 /* htonl hack - either this, or compile with -O2. Stupid byteorder/generic.h */
204 #define htonl(x) ___htonl(x) macro
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-tcpip.c402 INADDR_ANY : htonl(local_ip); libcfs_sock_create()
593 srvaddr.sin_addr.s_addr = htonl(peer_ip); libcfs_sock_connect()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
H A Dcm.c1770 req->op_compl = htonl(WR_OP_V(FW_OFLD_CONNECTION_WR)); send_fw_act_open_req()
1771 req->len16_pkd = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16))); send_fw_act_open_req()
1782 htonl(FW_OFLD_CONNECTION_WR_T_STATE_V(TCP_SYN_SENT) | send_fw_act_open_req()
3488 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_REQ, passive_ofld_conn_reply()
3489 (__force u32) htonl( passive_ofld_conn_reply()
3558 (__force int) htonl(l2info))) | build_cpl_pass_accept_req()
3561 RX_ETHHDR_LEN_G((__force int)htonl(l2info)) : build_cpl_pass_accept_req()
3562 RX_T5_ETHHDR_LEN_G((__force int)htonl(l2info)); build_cpl_pass_accept_req()
3564 (__force int) htonl(l2info))) | build_cpl_pass_accept_req()
3580 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_REQ, 0)); build_cpl_pass_accept_req()
3598 req->op_compl = htonl(WR_OP_V(FW_OFLD_CONNECTION_WR) | FW_WR_COMPL_F); send_fw_pass_open_req()
3599 req->len16_pkd = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16))); send_fw_pass_open_req()
3600 req->le.version_cpl = htonl(FW_OFLD_CONNECTION_WR_CPL_F); send_fw_pass_open_req()
3606 req->tcb.rcv_nxt = htonl(rcv_isn + 1); send_fw_pass_open_req()
3609 htonl(FW_OFLD_CONNECTION_WR_T_STATE_V(TCP_SYN_RECV) | send_fw_pass_open_req()
3618 req->tcb.opt2 = htonl(RSS_QUEUE_V(rss_qid)); send_fw_pass_open_req()
3691 RX_ETHHDR_LEN_G(htonl(cpl->l2info)) : rx_pkt()
3692 RX_T5_ETHHDR_LEN_G(htonl(cpl->l2info)); rx_pkt()
H A Dcq.c294 swsqe->cqe.header |= htonl(CQE_SWCQE_V(1)); flush_completed_wrs()
310 read_cqe->len = htonl(wq->sq.oldest_read->read_len); create_read_req_cqe()
311 read_cqe->header = htonl(CQE_QPID_V(CQE_QPID(hw_cqe)) | create_read_req_cqe()
586 hw_cqe->header |= htonl(CQE_STATUS_V(T4_ERR_MSN)); poll_cq()
/linux-4.1.27/drivers/scsi/fcoe/
H A Dfcoe_transport.c178 lesb->lesb_link_fail = htonl(lfc);
179 lesb->lesb_vlink_fail = htonl(vlfc);
180 lesb->lesb_miss_fka = htonl(mdac);
182 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors);
/linux-4.1.27/drivers/scsi/libfc/
H A Dfc_libfc.c199 fh->fh_parm_offset = htonl(parm_offset); fc_fill_hdr()
H A Dfc_rport.c1447 lesb->lesb_link_fail = htonl(hst->link_failure_count); fc_rport_recv_rls_req()
1448 lesb->lesb_sync_loss = htonl(hst->loss_of_sync_count); fc_rport_recv_rls_req()
1449 lesb->lesb_sig_loss = htonl(hst->loss_of_signal_count); fc_rport_recv_rls_req()
1450 lesb->lesb_prim_err = htonl(hst->prim_seq_protocol_err_count); fc_rport_recv_rls_req()
1451 lesb->lesb_inv_word = htonl(hst->invalid_tx_word_count); fc_rport_recv_rls_req()
1452 lesb->lesb_inv_crc = htonl(hst->invalid_crc_count); fc_rport_recv_rls_req()
2001 spp->spp_params = htonl(fcp_parm | lport->service_params); fc_rport_fcp_prli()
/linux-4.1.27/include/net/sctp/
H A Dtsnmap.h163 map->dup_tsns[map->num_dup_tsns++] = htonl(tsn); sctp_tsnmap_mark_dup()
/linux-4.1.27/net/openvswitch/
H A Dvport-vxlan.c254 md.vni = htonl(be64_to_cpu(tun_key->tun_id) << 8); vxlan_tnl_send()
H A Dflow.c269 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); parse_ipv6hdr()
615 if (lse & htonl(MPLS_LS_S_MASK)) key_extract()
/linux-4.1.27/tools/usb/usbip/src/
H A Dusbip_network.c70 i = htonl(*num); usbip_net_pack_uint32_t()
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dselftest.c373 payload->ip.daddr = htonl(INADDR_LOOPBACK); efx_iterate_state()
420 payload->ip.saddr = htonl(INADDR_LOOPBACK | (i << 2)); efx_begin_loopback()
/linux-4.1.27/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c182 next->nda_op = htonl(((i + 1) << srq->wqe_shift) | 1); mthca_alloc_srq_buf()
468 last_free->nda_op = htonl((ind << srq->wqe_shift) | 1); mthca_free_srq_wqe()

Completed in 5680 milliseconds

12