/linux/include/linux/ |
A D | in.h | 40 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback() 45 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast() 50 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast() 56 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast() 73 return (addr & htonl(0xff000000)) == htonl(0x0a000000); in ipv4_is_private_10() 78 return (addr & htonl(0xfff00000)) == htonl(0xac100000); in ipv4_is_private_172() 83 return (addr & htonl(0xffff0000)) == htonl(0xc0a80000); in ipv4_is_private_192() 88 return (addr & htonl(0xffff0000)) == htonl(0xa9fe0000); in ipv4_is_linklocal_169() 93 return (addr & htonl(0xffffff00)) == htonl(0xc0586300); in ipv4_is_anycast_6to4() 98 return (addr & htonl(0xffffff00)) == htonl(0xc0000200); in ipv4_is_test_192() [all …]
|
/linux/fs/afs/ |
A D | fsclient.c | 201 *bp++ = htonl(mask); in xdr_encode_AFS_StoreStatus() 202 *bp++ = htonl(mtime); in xdr_encode_AFS_StoreStatus() 203 *bp++ = htonl(owner); in xdr_encode_AFS_StoreStatus() 204 *bp++ = htonl(group); in xdr_encode_AFS_StoreStatus() 205 *bp++ = htonl(mode); in xdr_encode_AFS_StoreStatus() 548 *bp++ = htonl(namesz); in afs_fs_create_file() 601 *bp++ = htonl(namesz); in afs_fs_make_dir() 680 *bp++ = htonl(namesz); in afs_fs_remove_file() 727 *bp++ = htonl(namesz); in afs_fs_remove_dir() 800 *bp++ = htonl(FSLINK); in afs_fs_link() [all …]
|
A D | vlclient.c | 161 *bp++ = htonl(VLGETENTRYBYNAMEU); in afs_vl_get_entry_by_name_u() 162 *bp++ = htonl(volnamesz); in afs_vl_get_entry_by_name_u() 292 *bp++ = htonl(VLGETADDRSU); in afs_vl_get_addrs_u() 294 r->Mask = htonl(AFS_VLADDR_UUID); in afs_vl_get_addrs_u() 299 r->uuid.time_mid = htonl(ntohs(u->time_mid)); in afs_vl_get_addrs_u() 302 r->uuid.clock_seq_low = htonl(u->clock_seq_low); in afs_vl_get_addrs_u() 304 r->uuid.node[i] = htonl(u->node[i]); in afs_vl_get_addrs_u() 404 *bp++ = htonl(VLGETCAPABILITIES); in afs_vl_get_capabilities() 641 *bp++ = htonl(YVLGETENDPOINTS); in afs_yfsvl_get_endpoints() 642 *bp++ = htonl(YFS_SERVER_UUID); in afs_yfsvl_get_endpoints() [all …]
|
/linux/fs/nfs/ |
A D | callback_xdr.c | 63 return htonl(NFS4_OK); in nfs4_callback_null() 93 return htonl(NFS4ERR_RESOURCE); in decode_fh() 99 return htonl(NFS4ERR_RESOURCE); in decode_fh() 222 return htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args() 251 return htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args() 638 *p = htonl(time->tv_nsec); in encode_attr_time() 679 *p++ = htonl(op); in encode_op_hdr() 789 return htonl(NFS_OK); in preprocess_nfs41_op() 837 return htonl(NFS_OK); in preprocess_nfs42_op() 862 return htonl(NFS_OK); in preprocess_nfs4_op() [all …]
|
A D | callback_proc.c | 49 res->status = htonl(NFS4ERR_DELAY); in nfs4_callback_getattr() 92 res = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_recall() 96 res = htonl(NFS4ERR_DELAY); in nfs4_callback_recall() 107 res = htonl(NFS4ERR_BAD_STATEID); in nfs4_callback_recall() 110 res = htonl(NFS4ERR_RESOURCE); in nfs4_callback_recall() 526 status = htonl(NFS4ERR_DELAY); in nfs4_callback_sequence() 535 status = htonl(NFS4ERR_BADSLOT); in nfs4_callback_sequence() 547 status = htonl(NFS4ERR_DELAY); in nfs4_callback_sequence() 565 status = htonl(NFS4ERR_DELAY); in nfs4_callback_sequence() 664 status = htonl(NFS4_OK); in nfs4_callback_recallslot() [all …]
|
/linux/drivers/scsi/csiostor/ |
A D | csio_mb.c | 87 cmdp->err_to_clearinit = htonl( in csio_mb_hello() 173 cmdp->val = htonl(reset); in csio_mb_reset() 174 cmdp->halt_pkd = htonl(halt); in csio_mb_reset() 218 *p++ = htonl(temp_params); in csio_mb_params() 219 *p++ = htonl(temp_val); in csio_mb_params() 224 *p = htonl(temp_params); in csio_mb_params() 355 cmdp->action_to_len16 = htonl( in csio_mb_port() 364 cmdp->action_to_len16 = htonl( in csio_mb_port() 728 cmdp->dcaen_to_eqsize |= htonl( in csio_mb_eq_ofld_write() 848 cmdp->op_to_portid = htonl(( in csio_write_fcoe_link_cond_init_mb() [all …]
|
/linux/net/ipv6/ |
A D | addrconf_core.c | 47 if ((st & htonl(0xE0000000)) != htonl(0x00000000) && in __ipv6_addr_type() 48 (st & htonl(0xE0000000)) != htonl(0xE0000000)) in __ipv6_addr_type() 52 if ((st & htonl(0xFF000000)) == htonl(0xFF000000)) { in __ipv6_addr_type() 59 if ((st & htonl(0xFFC00000)) == htonl(0xFE800000)) in __ipv6_addr_type() 62 if ((st & htonl(0xFFC00000)) == htonl(0xFEC00000)) in __ipv6_addr_type() 65 if ((st & htonl(0xFE000000)) == htonl(0xFC000000)) in __ipv6_addr_type() 74 if (addr->s6_addr32[3] == htonl(0x00000001)) in __ipv6_addr_type() 82 if (addr->s6_addr32[2] == htonl(0x0000ffff)) in __ipv6_addr_type()
|
/linux/drivers/scsi/qla2xxx/ |
A D | qla_dbg.c | 493 fcec->type = htonl(DUMP_CHAIN_FCE); in qla25xx_copy_fce() 578 q->type = htonl(DUMP_CHAIN_QUEUE); in qla2xxx_copy_atioqueues() 579 q->chain_size = htonl( in qla2xxx_copy_atioqueues() 588 qh->number = htonl(que); in qla2xxx_copy_atioqueues() 623 q->chain_size = htonl( in qla25xx_copy_mqueues() 632 qh->number = htonl(que); in qla25xx_copy_mqueues() 651 q->chain_size = htonl( in qla25xx_copy_mqueues() 660 qh->number = htonl(que); in qla25xx_copy_mqueues() 686 mq->type = htonl(DUMP_CHAIN_MQ); in qla25xx_copy_mq() 691 mq->count = htonl(que_cnt); in qla25xx_copy_mq() [all …]
|
/linux/drivers/net/wireguard/selftest/ |
A D | ratelimiter.c | 56 hdr4->saddr = htonl(ntohl(hdr4->saddr) + i + 1); in timings_test() 64 hdr4->saddr = htonl(ntohl(hdr4->saddr) - i - 1); in timings_test() 67 hdr6->saddr.in6_u.u6_addr32[2] = htonl(i); in timings_test() 68 hdr6->saddr.in6_u.u6_addr32[3] = htonl(i); in timings_test() 78 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) + i + 1); in timings_test() 87 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) - i - 1); in timings_test() 110 hdr4->saddr = htonl(i); in capacity_test() 152 hdr4->saddr = htonl(8182); in wg_ratelimiter_selftest() 164 hdr6->saddr.in6_u.u6_addr32[0] = htonl(1212); in wg_ratelimiter_selftest() 165 hdr6->saddr.in6_u.u6_addr32[1] = htonl(289188); in wg_ratelimiter_selftest()
|
/linux/net/rxrpc/ |
A D | output.c | 93 pkt->ack.serial = htonl(serial); in rxrpc_fill_out_ack() 116 pkt->ackinfo.maxMTU = htonl(mtu); in rxrpc_fill_out_ack() 201 pkt->whdr.cid = htonl(call->cid); in rxrpc_send_ack_packet() 234 pkt->whdr.serial = htonl(serial); in rxrpc_send_ack_packet() 313 pkt.whdr.cid = htonl(call->cid); in rxrpc_send_abort_packet() 328 pkt.whdr.serial = htonl(serial); in rxrpc_send_abort_packet() 370 whdr.cid = htonl(call->cid); in rxrpc_send_data_packet() 372 whdr.seq = htonl(sp->hdr.seq); in rxrpc_send_data_packet() 373 whdr.serial = htonl(serial); in rxrpc_send_data_packet() 589 code = htonl(skb->priority); in rxrpc_reject_packets() [all …]
|
A D | conn_event.c | 68 pkt.whdr.epoch = htonl(conn->proto.epoch); in rxrpc_conn_retransmit_call() 70 pkt.whdr.callNumber = htonl(call_id); in rxrpc_conn_retransmit_call() 82 pkt.abort_code = htonl(chan->last_abort); in rxrpc_conn_retransmit_call() 98 ack_info.rxMTU = htonl(rxrpc_rx_mtu); in rxrpc_conn_retransmit_call() 99 ack_info.maxMTU = htonl(mtu); in rxrpc_conn_retransmit_call() 100 ack_info.rwind = htonl(rxrpc_rx_window_size); in rxrpc_conn_retransmit_call() 121 pkt.whdr.serial = htonl(serial); in rxrpc_conn_retransmit_call() 222 whdr.epoch = htonl(conn->proto.epoch); in rxrpc_abort_connection() 223 whdr.cid = htonl(conn->proto.cid); in rxrpc_abort_connection() 233 word = htonl(conn->abort_code); in rxrpc_abort_connection() [all …]
|
A D | rxkad.c | 212 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security() 277 hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth() 404 call->crypto_buf[1] = htonl(x); in rxkad_secure_packet() 643 call->crypto_buf[1] = htonl(x); in rxkad_verify_packet() 743 challenge.version = htonl(2); in rxkad_issue_challenge() 745 challenge.min_level = htonl(0); in rxkad_issue_challenge() 755 whdr.cid = htonl(conn->proto.cid); in rxkad_issue_challenge() 773 whdr.serial = htonl(serial); in rxkad_issue_challenge() 814 whdr.epoch = htonl(hdr->epoch); in rxkad_send_response() 815 whdr.cid = htonl(hdr->cid); in rxkad_send_response() [all …]
|
/linux/drivers/crypto/chelsio/ |
A D | chcr_algo.h | 122 htonl( \ 132 htonl( \ 139 htonl( \ 146 htonl( \ 171 htonl(KEY_CONTEXT_VALID_V(1) | \ 180 htonl(TLS_KEYCTX_RXMK_SIZE_V(mk_size) | \ 189 htonl( \ 198 htonl( \ 206 htonl(ULPTX_CMD_V(ULP_TX_PKT) | \ 217 htonl(FW_CRYPTO_LOOKASIDE_WR_PLD_SIZE_V(payload_sgl_len ? \ [all …]
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
A D | chcr_ktls.c | 212 cpl->opt2 = htonl(options); in chcr_ktls_act_open_req() 263 cpl->opt2 = htonl(options); in chcr_ktls_act_open_req6() 765 idata->len = htonl(sizeof(*cpl)); in __chcr_write_cpl_set_tcb_ulp() 780 idata->len = htonl(0); in __chcr_write_cpl_set_tcb_ulp() 1168 ulptx->len = htonl(len16 - 1); in chcr_ktls_xmit_wr_complete() 1184 cpl->pldlen = htonl(data_len); in chcr_ktls_xmit_wr_complete() 1228 tx_data->rsvd = htonl(tcp_seq); in chcr_ktls_xmit_wr_complete() 1350 ulptx->len = htonl(len16 - 1); in chcr_ktls_xmit_wr_short() 1404 tx_data->rsvd = htonl(tcp_seq); in chcr_ktls_xmit_wr_short() 1527 ulptx->len = htonl(len16 - 1); in chcr_ktls_tx_plaintxt() [all …]
|
/linux/arch/powerpc/boot/ |
A D | mktree.c | 62 bt.bb_magic = htonl(0x0052504F); in main() 65 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main() 66 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main() 72 bt.bb_num_512blocks = htonl(nblks); in main() 105 if (tmpbuf[0] != htonl(0x7f454c46)) { in main() 140 bt.bb_checksum = htonl(cksum); in main()
|
/linux/include/uapi/linux/ |
A D | igmp.h | 120 #define IGMP_ALL_HOSTS htonl(0xE0000001L) 121 #define IGMP_ALL_ROUTER htonl(0xE0000002L) 122 #define IGMPV3_ALL_MCR htonl(0xE0000016L) 123 #define IGMP_LOCAL_GROUP htonl(0xE0000000L) 124 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
|
/linux/include/net/ |
A D | addrconf.h | 436 htonl(0xFF020000), 0, in addrconf_addr_solict_mult() 437 htonl(0x1), in addrconf_addr_solict_mult() 438 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult() 447 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes() 449 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes() 459 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers() 461 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers() 467 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap() 478 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult() 480 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult() [all …]
|
/linux/drivers/scsi/cxgbi/cxgb3i/ |
A D | cxgb3i.c | 166 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in send_act_open_req() 176 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | in send_act_open_req() 212 req->wr.wr_lo = htonl(V_WR_TID(tid)); in send_close_req() 214 req->rsvd = htonl(csk->write_seq); in send_close_req() 256 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_req() 258 req->rsvd0 = htonl(csk->snd_nxt); in send_abort_req() 287 rpl->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_rpl() 361 req->wr_lo = htonl(V_WR_TID(csk->tid)); in make_tx_data_wr() 363 req->len = htonl(len); in make_tx_data_wr() 367 req->sndseq = htonl(csk->snd_nxt); in make_tx_data_wr() [all …]
|
/linux/net/netfilter/ |
A D | nft_hash.c | 150 if (nla_put_be32(skb, NFTA_HASH_LEN, htonl(priv->len))) in nft_jhash_dump() 152 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_jhash_dump() 155 nla_put_be32(skb, NFTA_HASH_SEED, htonl(priv->seed))) in nft_jhash_dump() 158 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_jhash_dump() 160 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_JENKINS))) in nft_jhash_dump() 175 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_symhash_dump() 178 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_symhash_dump() 180 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_SYM))) in nft_symhash_dump()
|
A D | nf_synproxy_core.c | 121 *ptr++ = htonl((TCPOPT_MSS << 24) | in synproxy_build_options() 132 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options() 137 *ptr++ = htonl(opts->tsval); in synproxy_build_options() 138 *ptr++ = htonl(opts->tsecr); in synproxy_build_options() 140 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options() 146 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options() 221 *ptr = htonl(ntohl(*ptr) - in synproxy_tstamp_adjust() 226 *ptr = htonl(ntohl(*ptr) + in synproxy_tstamp_adjust() 538 nth->seq = htonl(recv_seq - 1); in synproxy_send_server_syn() 583 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack() [all …]
|
A D | nf_conntrack_seqadj.c | 88 new_start_seq = htonl(ntohl(sack->start_seq) - in nf_ct_sack_block_adjust() 91 new_start_seq = htonl(ntohl(sack->start_seq) - in nf_ct_sack_block_adjust() 96 new_end_seq = htonl(ntohl(sack->end_seq) - in nf_ct_sack_block_adjust() 99 new_end_seq = htonl(ntohl(sack->end_seq) - in nf_ct_sack_block_adjust() 189 newseq = htonl(ntohl(tcph->seq) + seqoff); in nf_ct_seq_adjust() 204 newack = htonl(ntohl(tcph->ack_seq) - ackoff); in nf_ct_seq_adjust()
|
A D | nf_tables_trace.c | 88 htonl(indev->ifindex))) in nf_trace_fill_dev_info() 98 htonl(outdev->ifindex))) in nf_trace_fill_dev_info() 226 if (nla_put_be32(skb, NFTA_TRACE_NFPROTO, htonl(nft_pf(pkt)))) in nft_trace_notify() 229 if (nla_put_be32(skb, NFTA_TRACE_TYPE, htonl(info->type))) in nft_trace_notify() 255 htonl(info->basechain->policy))) in nft_trace_notify() 261 nla_put_be32(skb, NFTA_TRACE_MARK, htonl(pkt->skb->mark))) in nft_trace_notify()
|
/linux/drivers/media/test-drivers/vicodec/ |
A D | codec-v4l2-fwht.c | 254 p_hdr->version = htonl(V4L2_FWHT_VERSION); in v4l2_fwht_encode() 255 p_hdr->width = htonl(state->visible_width); in v4l2_fwht_encode() 256 p_hdr->height = htonl(state->visible_height); in v4l2_fwht_encode() 273 p_hdr->flags = htonl(flags); in v4l2_fwht_encode() 274 p_hdr->colorspace = htonl(state->colorspace); in v4l2_fwht_encode() 275 p_hdr->xfer_func = htonl(state->xfer_func); in v4l2_fwht_encode() 276 p_hdr->ycbcr_enc = htonl(state->ycbcr_enc); in v4l2_fwht_encode() 277 p_hdr->quantization = htonl(state->quantization); in v4l2_fwht_encode() 278 p_hdr->size = htonl(cf.size); in v4l2_fwht_encode()
|
/linux/net/netfilter/ipset/ |
A D | pfxlen.c | 144 htonl(a), htonl(b), \ 145 htonl(c), htonl(d), \
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_dsa.c | 101 dsa_words[0] = htonl(words[0]); in prestera_dsa_build() 102 dsa_words[1] = htonl(words[1]); in prestera_dsa_build() 103 dsa_words[2] = htonl(words[2]); in prestera_dsa_build() 104 dsa_words[3] = htonl(words[3]); in prestera_dsa_build()
|