/linux-6.1.9/include/linux/ |
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() 61 return addr == htonl(INADDR_ALLSNOOPERS_GROUP); in ipv4_is_all_snoopers() 73 return (addr & htonl(0xff000000)) == htonl(0x0a000000); in ipv4_is_private_10() 78 return (addr & htonl(0xfff00000)) == htonl(0xac100000); in ipv4_is_private_172() 83 return (addr & htonl(0xffff0000)) == htonl(0xc0a80000); in ipv4_is_private_192() 88 return (addr & htonl(0xffff0000)) == htonl(0xa9fe0000); in ipv4_is_linklocal_169() 93 return (addr & htonl(0xffffff00)) == htonl(0xc0586300); in ipv4_is_anycast_6to4() [all …]
|
/linux-6.1.9/fs/afs/ |
D | fsclient.c | 66 if (xdr->if_version != htonl(AFS_FSTATUS_VERSION)) { in xdr_decode_AFSFetchStatus() 67 if (xdr->if_version == htonl(0) && in xdr_decode_AFSFetchStatus() 201 *bp++ = htonl(mask); in xdr_encode_AFS_StoreStatus() 202 *bp++ = htonl(mtime); in xdr_encode_AFS_StoreStatus() 203 *bp++ = htonl(owner); in xdr_encode_AFS_StoreStatus() 204 *bp++ = htonl(group); in xdr_encode_AFS_StoreStatus() 205 *bp++ = htonl(mode); in xdr_encode_AFS_StoreStatus() 288 bp[0] = htonl(FSFETCHSTATUS); in afs_fs_fetch_status() 289 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_status() 290 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status() [all …]
|
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() 300 r->uuid.time_hi_and_version = htonl(ntohs(u->time_hi_and_version)); in afs_vl_get_addrs_u() 301 r->uuid.clock_seq_hi_and_reserved = htonl(u->clock_seq_hi_and_reserved); 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() [all …]
|
/linux-6.1.9/fs/nfs/ |
D | callback_xdr.c | 63 return htonl(NFS4_OK); in nfs4_callback_null() 93 return htonl(NFS4ERR_RESOURCE); in decode_fh() 96 return htonl(NFS4ERR_BADHANDLE); in decode_fh() 99 return htonl(NFS4ERR_RESOURCE); in decode_fh() 112 return htonl(NFS4ERR_RESOURCE); in decode_bitmap() 116 return htonl(NFS4ERR_RESOURCE); in decode_bitmap() 130 return htonl(NFS4ERR_RESOURCE); in decode_stateid() 151 return htonl(NFS4ERR_RESOURCE); in decode_compound_hdr_arg() 160 return htonl(NFS4ERR_MINOR_VERS_MISMATCH); in decode_compound_hdr_arg() 171 return htonl(NFS4ERR_RESOURCE_HDR); in decode_op_hdr() [all …]
|
D | callback_proc.c | 36 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr() 41 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr() 49 res->status = htonl(NFS4ERR_DELAY); in nfs4_callback_getattr() 85 res = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_recall() 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() 497 __be32 status = htonl(NFS4ERR_BADSESSION); in nfs4_callback_sequence() 518 status = htonl(NFS4ERR_DELAY); in nfs4_callback_sequence() [all …]
|
/linux-6.1.9/net/ipv6/ |
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-6.1.9/drivers/scsi/csiostor/ |
D | csio_mb.c | 84 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | in csio_mb_hello() 86 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_hello() 87 cmdp->err_to_clearinit = htonl( in csio_mb_hello() 147 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_BYE_CMD) | in csio_mb_bye() 149 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_bye() 170 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_RESET_CMD) | in csio_mb_reset() 172 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_reset() 173 cmdp->val = htonl(reset); in csio_mb_reset() 174 cmdp->halt_pkd = htonl(halt); in csio_mb_reset() 205 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | in csio_mb_params() [all …]
|
/linux-6.1.9/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 76 fw_dump->fw_major_version = htonl(ha->fw_major_version); in qla2xxx_prep_dump() 77 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); in qla2xxx_prep_dump() 78 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); in qla2xxx_prep_dump() 79 fw_dump->fw_attributes = htonl(ha->fw_attributes); in qla2xxx_prep_dump() 81 fw_dump->vendor = htonl(ha->pdev->vendor); in qla2xxx_prep_dump() 82 fw_dump->device = htonl(ha->pdev->device); in qla2xxx_prep_dump() 83 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); in qla2xxx_prep_dump() 84 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); in qla2xxx_prep_dump() 305 *buf++ = htonl(rd_reg_dword(dmp_reg)); in qla24xx_read_window() 493 fcec->type = htonl(DUMP_CHAIN_FCE); in qla25xx_copy_fce() [all …]
|
/linux-6.1.9/drivers/net/wireguard/selftest/ |
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-6.1.9/drivers/crypto/chelsio/ |
D | chcr_algo.h | 122 htonl( \ 132 htonl( \ 139 htonl( \ 146 htonl( \ 158 #define FILL_SEC_CPL_IVGEN_HDRLEN(last, more, ctx_in, mac, ivdrop, len) htonl( \ 171 htonl(KEY_CONTEXT_VALID_V(1) | \ 180 htonl(TLS_KEYCTX_RXMK_SIZE_V(mk_size) | \ 189 htonl( \ 198 htonl( \ 206 htonl(ULPTX_CMD_V(ULP_TX_PKT) | \ [all …]
|
/linux-6.1.9/net/rxrpc/ |
D | output.c | 98 pkt->ack.firstPacket = htonl(hard_ack + 1); in rxrpc_fill_out_ack() 99 pkt->ack.previousPacket = htonl(call->ackr_highest_seq); in rxrpc_fill_out_ack() 100 pkt->ack.serial = htonl(serial); in rxrpc_fill_out_ack() 122 pkt->ackinfo.rxMTU = htonl(rxrpc_rx_mtu); in rxrpc_fill_out_ack() 123 pkt->ackinfo.maxMTU = htonl(mtu); in rxrpc_fill_out_ack() 124 pkt->ackinfo.rwind = htonl(call->rx_winsize); in rxrpc_fill_out_ack() 125 pkt->ackinfo.jumbo_max = htonl(jmax); in rxrpc_fill_out_ack() 207 pkt->whdr.epoch = htonl(conn->proto.epoch); in rxrpc_send_ack_packet() 208 pkt->whdr.cid = htonl(call->cid); in rxrpc_send_ack_packet() 209 pkt->whdr.callNumber = htonl(call->call_id); in rxrpc_send_ack_packet() [all …]
|
D | conn_event.c | 68 pkt.whdr.epoch = htonl(conn->proto.epoch); in rxrpc_conn_retransmit_call() 69 pkt.whdr.cid = htonl(conn->proto.cid | channel); 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() 93 pkt.ack.firstPacket = htonl(chan->last_seq + 1); in rxrpc_conn_retransmit_call() 94 pkt.ack.previousPacket = htonl(chan->last_seq); in rxrpc_conn_retransmit_call() 95 pkt.ack.serial = htonl(skb ? sp->hdr.serial : 0); 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() [all …]
|
D | rxkad.c | 211 tmpbuf[0] = htonl(conn->proto.epoch); in rxkad_prime_packet_security() 212 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security() 214 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security() 277 hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth() 324 rxkhdr.data_size = htonl(data_size | (u32)check << 16); in rxkad_secure_packet_encrypt() 403 call->crypto_buf[0] = htonl(call->call_id); in rxkad_secure_packet() 404 call->crypto_buf[1] = htonl(x); in rxkad_secure_packet() 642 call->crypto_buf[0] = htonl(call->call_id); in rxkad_verify_packet() 643 call->crypto_buf[1] = htonl(x); in rxkad_verify_packet() 743 challenge.version = htonl(2); in rxkad_issue_challenge() [all …]
|
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 198 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, qid_atid)); in chcr_ktls_act_open_req() 212 cpl->opt2 = htonl(options); in chcr_ktls_act_open_req() 248 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ6, qid_atid)); in chcr_ktls_act_open_req6() 263 cpl->opt2 = htonl(options); in chcr_ktls_act_open_req6() 756 txpkt->cmd_dest = htonl(ULPTX_CMD_V(ULP_TX_PKT) | in __chcr_write_cpl_set_tcb_ulp() 760 txpkt->len = htonl(DIV_ROUND_UP(CHCR_SET_TCB_FIELD_LEN, 16)); in __chcr_write_cpl_set_tcb_ulp() 764 idata->cmd_more = htonl(ULPTX_CMD_V(ULP_TX_SC_IMM)); in __chcr_write_cpl_set_tcb_ulp() 765 idata->len = htonl(sizeof(*cpl)); in __chcr_write_cpl_set_tcb_ulp() 770 OPCODE_TID(cpl) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); in __chcr_write_cpl_set_tcb_ulp() 779 idata->cmd_more = htonl(ULPTX_CMD_V(ULP_TX_SC_NOOP)); in __chcr_write_cpl_set_tcb_ulp() [all …]
|
/linux-6.1.9/include/uapi/linux/ |
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-6.1.9/arch/powerpc/boot/ |
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-6.1.9/include/net/ |
D | addrconf.h | 441 htonl(0xFF020000), 0, in addrconf_addr_solict_mult() 442 htonl(0x1), in addrconf_addr_solict_mult() 443 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult() 452 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes() 454 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes() 464 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers() 466 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers() 472 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap() 483 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult() 485 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult() [all …]
|
/linux-6.1.9/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 167 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in send_act_open_req() 168 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req() 174 req->opt0h = htonl(V_KEEP_ALIVE(1) | F_TCAM_BYPASS | in send_act_open_req() 177 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | in send_act_open_req() 212 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_close_req() 213 req->wr.wr_lo = htonl(V_WR_TID(tid)); in send_close_req() 214 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid)); in send_close_req() 215 req->rsvd = htonl(csk->write_seq); in send_close_req() 256 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); in send_abort_req() 257 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_req() [all …]
|
/linux-6.1.9/net/netfilter/ |
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() 185 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_symhash_dump() 188 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_symhash_dump() 190 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_SYM))) in nft_symhash_dump()
|
D | nf_synproxy_core.c | 121 *ptr++ = htonl((TCPOPT_MSS << 24) | in synproxy_build_options() 127 *ptr++ = htonl((TCPOPT_SACK_PERM << 24) | in synproxy_build_options() 132 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options() 137 *ptr++ = htonl(opts->tsval); in synproxy_build_options() 138 *ptr++ = htonl(opts->tsecr); in synproxy_build_options() 140 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options() 146 *ptr++ = htonl((TCPOPT_NOP << 24) | in synproxy_build_options() 221 *ptr = htonl(ntohl(*ptr) - in synproxy_tstamp_adjust() 226 *ptr = htonl(ntohl(*ptr) + in synproxy_tstamp_adjust() 472 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack() [all …]
|
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()
|
/linux-6.1.9/drivers/media/test-drivers/vicodec/ |
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-6.1.9/drivers/net/ethernet/marvell/prestera/ |
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()
|
/linux-6.1.9/net/netfilter/ipset/ |
D | pfxlen.c | 144 htonl(a), htonl(b), \ 145 htonl(c), htonl(d), \
|
/linux-6.1.9/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 25 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc() 54 vp->num_tlvs = htonl(ntohl(vp->num_tlvs) + 1); in vic_provinfo_add_tlv() 55 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv()
|