Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_seqadj.c50 before(this_way->correction_pos, ntohl(seq))) { in nf_ct_seqadj_set()
51 this_way->correction_pos = ntohl(seq); in nf_ct_seqadj_set()
86 if (after(ntohl(sack->start_seq) - seq->offset_before, in nf_ct_sack_block_adjust()
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()
94 if (after(ntohl(sack->end_seq) - seq->offset_before, 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()
103 ntohl(sack->start_seq), ntohl(new_start_seq), in nf_ct_sack_block_adjust()
104 ntohl(sack->end_seq), ntohl(new_end_seq)); in nf_ct_sack_block_adjust()
[all …]
H A Dxt_iprange.c24 m = ntohl(iph->saddr) < ntohl(info->src_min.ip); in iprange_mt4()
25 m |= ntohl(iph->saddr) > ntohl(info->src_max.ip); in iprange_mt4()
37 m = ntohl(iph->daddr) < ntohl(info->dst_min.ip); in iprange_mt4()
38 m |= ntohl(iph->daddr) > ntohl(info->dst_max.ip); in iprange_mt4()
59 return ntohl(a->s6_addr32[i]) < ntohl(b->s6_addr32[i]); in iprange_ipv6_lt()
H A Dnf_synproxy_core.c221 *ptr = htonl(ntohl(*ptr) - in synproxy_tstamp_adjust()
226 *ptr = htonl(ntohl(*ptr) + in synproxy_tstamp_adjust()
473 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
519 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
560 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack()
561 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_server_ack()
598 nth->seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_ack()
620 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack()
674 ntohl(th->seq) + 1); in ipv4_synproxy_hook()
701 ntohl(th->seq) + 1)) { in ipv4_synproxy_hook()
[all …]
/openbmc/linux/net/ncsi/
H A Dncsi-rsp.c73 if (ntohl(*pchecksum) == 0) in ncsi_validate_rsp_pkt()
300 ncm->data[1] = ntohl(cmd->mode); in ncsi_rsp_handler_ae()
322 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_sl()
323 ncm->data[1] = ntohl(cmd->oem_mode); in ncsi_rsp_handler_sl()
344 ncm->data[2] = ntohl(rsp->status); in ncsi_rsp_handler_gls()
345 ncm->data[3] = ntohl(rsp->other); in ncsi_rsp_handler_gls()
346 ncm->data[4] = ntohl(rsp->oem_status); in ncsi_rsp_handler_gls()
419 ncm->data[0] = ntohl((__force __be32)cmd->mode); in ncsi_rsp_handler_ev()
516 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_ebf()
569 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_egmf()
[all …]
/openbmc/linux/fs/afs/
H A Dvlclient.c35 nr_servers = ntohl(uvldb->nServers); in afs_deliver_vl_get_entry_by_name_u()
40 entry->name[i] = (u8)ntohl(uvldb->name[i]); in afs_deliver_vl_get_entry_by_name_u()
48 tmp = ntohl(uvldb->serverFlags[i]); in afs_deliver_vl_get_entry_by_name_u()
54 vlflags = ntohl(uvldb->flags); in afs_deliver_vl_get_entry_by_name_u()
61 tmp = ntohl(uvldb->serverFlags[i]); in afs_deliver_vl_get_entry_by_name_u()
78 uuid->time_mid = htons(ntohl(xdr->time_mid)); in afs_deliver_vl_get_entry_by_name_u()
79 uuid->time_hi_and_version = htons(ntohl(xdr->time_hi_and_version)); in afs_deliver_vl_get_entry_by_name_u()
80 uuid->clock_seq_hi_and_reserved = (u8)ntohl(xdr->clock_seq_hi_and_reserved); in afs_deliver_vl_get_entry_by_name_u()
81 uuid->clock_seq_low = (u8)ntohl(xdr->clock_seq_low); in afs_deliver_vl_get_entry_by_name_u()
83 uuid->node[j] = (u8)ntohl(xdr->node[j]); in afs_deliver_vl_get_entry_by_name_u()
[all …]
H A Dcmservice.c253 call->count = ntohl(call->tmp); in afs_deliver_cb_callback()
282 cb->fid.vid = ntohl(*bp++); in afs_deliver_cb_callback()
283 cb->fid.vnode = ntohl(*bp++); in afs_deliver_cb_callback()
284 cb->fid.unique = ntohl(*bp++); in afs_deliver_cb_callback()
298 call->count2 = ntohl(call->tmp); in afs_deliver_cb_callback()
405 r->time_mid = htons(ntohl(b[1])); in afs_deliver_cb_init_call_back_state3()
406 r->time_hi_and_version = htons(ntohl(b[2])); in afs_deliver_cb_init_call_back_state3()
407 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_init_call_back_state3()
408 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_init_call_back_state3()
411 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_init_call_back_state3()
[all …]
H A Dfsclient.c25 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
27 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
44 i, ntohl(x[0]), ntohl(x[1]), ntohl(x[2]), ntohl(x[3])); in xdr_dump_bad()
48 pr_notice("0x50: %08x\n", ntohl(x[0])); in xdr_dump_bad()
64 abort_code = ntohl(xdr->abort_code); in xdr_decode_AFSFetchStatus()
79 pr_warn("Unknown AFSFetchStatus version %u\n", ntohl(xdr->if_version)); in xdr_decode_AFSFetchStatus()
89 type = ntohl(xdr->type); in xdr_decode_AFSFetchStatus()
100 status->nlink = ntohl(xdr->nlink); in xdr_decode_AFSFetchStatus()
101 status->author = ntohl(xdr->author); in xdr_decode_AFSFetchStatus()
[all …]
/openbmc/u-boot/drivers/net/mscc_eswitch/
H A Dmscc_xfer.c15 #define XTR_EOF_0 ntohl(0x80000000u)
16 #define XTR_EOF_1 ntohl(0x80000001u)
17 #define XTR_EOF_2 ntohl(0x80000002u)
18 #define XTR_EOF_3 ntohl(0x80000003u)
19 #define XTR_PRUNED ntohl(0x80000004u)
20 #define XTR_ABORT ntohl(0x80000005u)
21 #define XTR_ESCAPE ntohl(0x80000006u)
22 #define XTR_NOT_READY ntohl(0x80000007u)
78 cmp = ntohl(val); in mscc_recv()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32_parse.h48 f->val.tos = (ntohl(val) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
49 f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos()
60 frag_val = (ntohl(val) >> 13) & 0x00000007; in cxgb4_fill_ipv4_frag()
61 mask_val = ntohl(mask) & 0x0000FFFF; in cxgb4_fill_ipv4_frag()
79 f->val.proto = (ntohl(val) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto()
80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto()
116 f->val.tos = (ntohl(val) >> 20) & 0x000000FF; in cxgb4_fill_ipv6_tos()
117 f->mask.tos = (ntohl(mask) >> 20) & 0x000000FF; in cxgb4_fill_ipv6_tos()
125 f->val.proto = (ntohl(val) >> 8) & 0x000000FF; in cxgb4_fill_ipv6_proto()
126 f->mask.proto = (ntohl(mask) >> 8) & 0x000000FF; in cxgb4_fill_ipv6_proto()
[all …]
/openbmc/qemu/linux-user/
H A Dflatload.c209 text_len = ntohl(hdr->data_start); in load_flat_file()
210 data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); in load_flat_file()
211 bss_len = ntohl(hdr->bss_end) - ntohl(hdr->data_end); in load_flat_file()
212 stack_len = ntohl(hdr->stack_size); in load_flat_file()
217 relocs = ntohl(hdr->reloc_count); in load_flat_file()
218 flags = ntohl(hdr->flags); in load_flat_file()
219 rev = ntohl(hdr->rev); in load_flat_file()
297 fpos = ntohl(hdr->data_start); in load_flat_file()
306 reloc = datapos + (ntohl(hdr->reloc_start) - text_len); in load_flat_file()
318 realdatastart = textpos + ntohl(hdr->data_start); in load_flat_file()
[all …]
/openbmc/u-boot/net/
H A Dnfs.c439 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in rpc_lookup_reply()
441 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in rpc_lookup_reply()
451 nfs_server_mount_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply()
454 nfs_server_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply()
469 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_mount_reply()
471 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_mount_reply()
495 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_umountall_reply()
497 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_umountall_reply()
519 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_lookup_reply()
521 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_lookup_reply()
[all …]
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Dev.c52 FW_RI_TPTE_VALID_G(ntohl(tpte.valid_to_pdid)), in print_tpte()
53 FW_RI_TPTE_STAGKEY_G(ntohl(tpte.valid_to_pdid)), in print_tpte()
54 FW_RI_TPTE_STAGSTATE_G(ntohl(tpte.valid_to_pdid)), in print_tpte()
55 FW_RI_TPTE_PDID_G(ntohl(tpte.valid_to_pdid)), in print_tpte()
56 FW_RI_TPTE_PERM_G(ntohl(tpte.locread_to_qpid)), in print_tpte()
57 FW_RI_TPTE_PS_G(ntohl(tpte.locread_to_qpid)), in print_tpte()
58 ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), in print_tpte()
59 ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); in print_tpte()
70 CQE_STATUS(err_cqe), CQE_TYPE(err_cqe), ntohl(err_cqe->len), in dump_err_cqe()
/openbmc/linux/net/rxrpc/
H A Dkey.c62 ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), in rxrpc_preparse_xdr_rxkad()
67 tktlen = ntohl(xdr[7]); in rxrpc_preparse_xdr_rxkad()
90 token->kad->vice_id = ntohl(xdr[0]); in rxrpc_preparse_xdr_rxkad()
91 token->kad->kvno = ntohl(xdr[1]); in rxrpc_preparse_xdr_rxkad()
92 token->kad->start = ntohl(xdr[4]); in rxrpc_preparse_xdr_rxkad()
93 token->kad->expiry = ntohl(xdr[5]); in rxrpc_preparse_xdr_rxkad()
94 token->kad->primary_flag = ntohl(xdr[6]); in rxrpc_preparse_xdr_rxkad()
145 ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), in rxrpc_preparse_xdr()
157 if (ntohl(*xdr++) != 0) in rxrpc_preparse_xdr()
162 len = ntohl(*xdr++); in rxrpc_preparse_xdr()
[all …]
/openbmc/linux/fs/nfs/
H A Dcallback_xdr.c94 fh->size = ntohl(*p); in decode_fh()
113 attrlen = ntohl(*p); in decode_bitmap()
118 bitmap[0] = ntohl(*p++); in decode_bitmap()
120 bitmap[1] = ntohl(*p); in decode_bitmap()
152 hdr->minorversion = ntohl(*p++); in decode_compound_hdr_arg()
155 hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 and v4.2 */ in decode_compound_hdr_arg()
162 hdr->nops = ntohl(*p); in decode_compound_hdr_arg()
172 *op = ntohl(*p); in decode_op_hdr()
201 args->truncate = ntohl(*p); in decode_recall_args()
224 args->cbl_layout_type = ntohl(*p++); in decode_layoutrecall_args()
[all …]
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_vic.c43 if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) + in vic_provinfo_add_tlv()
48 ntohl(vp->length) - sizeof(vp->num_tlvs)); in vic_provinfo_add_tlv()
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()
63 return vp ? ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0; in vic_provinfo_size()
/openbmc/linux/fs/
H A Dbinfmt_flat.c423 text_len = ntohl(hdr->data_start); in load_flat_file()
424 data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); in load_flat_file()
425 bss_len = ntohl(hdr->bss_end) - ntohl(hdr->data_end); in load_flat_file()
426 stack_len = ntohl(hdr->stack_size); in load_flat_file()
431 relocs = ntohl(hdr->reloc_count); in load_flat_file()
432 flags = ntohl(hdr->flags); in load_flat_file()
433 rev = ntohl(hdr->rev); in load_flat_file()
567 fpos = ntohl(hdr->data_start); in load_flat_file()
587 (datapos + (ntohl(hdr->reloc_start) - text_len)); in load_flat_file()
607 realdatastart = textpos + ntohl(hdr->data_start); in load_flat_file()
[all …]
/openbmc/linux/net/batman-adv/
H A Dgateway_client.c344 gw_node->bandwidth_down = ntohl(gateway->bandwidth_down); in batadv_gw_node_add()
345 gw_node->bandwidth_up = ntohl(gateway->bandwidth_up); in batadv_gw_node_add()
354 ntohl(gateway->bandwidth_down) / 10, in batadv_gw_node_add()
355 ntohl(gateway->bandwidth_down) % 10, in batadv_gw_node_add()
356 ntohl(gateway->bandwidth_up) / 10, in batadv_gw_node_add()
357 ntohl(gateway->bandwidth_up) % 10); in batadv_gw_node_add()
414 if (gw_node->bandwidth_down == ntohl(gateway->bandwidth_down) && in batadv_gw_node_update()
415 gw_node->bandwidth_up == ntohl(gateway->bandwidth_up)) in batadv_gw_node_update()
425 ntohl(gateway->bandwidth_down) / 10, in batadv_gw_node_update()
426 ntohl(gateway->bandwidth_down) % 10, in batadv_gw_node_update()
[all …]
/openbmc/qemu/net/
H A Dfilter-rewriter.c81 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt()
109 conn->offset -= (ntohl(tcp_pkt->th_ack) - 1); in handle_primary_tcp_pkt()
114 tcp_pkt->th_ack = htonl(ntohl(tcp_pkt->th_ack) + conn->offset); in handle_primary_tcp_pkt()
124 (ntohl(tcp_pkt->th_ack) == (conn->fin_ack_seq + 1))) { in handle_primary_tcp_pkt()
188 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt()
203 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
216 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt()
228 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_packet.c10 #define XTR_EOF_0 ntohl((__force __be32)0x80000000u)
11 #define XTR_EOF_1 ntohl((__force __be32)0x80000001u)
12 #define XTR_EOF_2 ntohl((__force __be32)0x80000002u)
13 #define XTR_EOF_3 ntohl((__force __be32)0x80000003u)
14 #define XTR_PRUNED ntohl((__force __be32)0x80000004u)
15 #define XTR_ABORT ntohl((__force __be32)0x80000005u)
16 #define XTR_ESCAPE ntohl((__force __be32)0x80000006u)
17 #define XTR_NOT_READY ntohl((__force __be32)0x80000007u)
103 cmp = ntohl((__force __be32)val); in sparx5_xtr_grp()
121 val = ntohl((__force __be32)val); in sparx5_xtr_grp()
/openbmc/linux/net/netlabel/
H A Dnetlabel_addrlist.c163 ntohl(entry->mask) > ntohl(iter->mask)) { in netlbl_af4list_add()
314 u32 mask_val = ntohl(mask); in netlbl_af4list_audit_addr()
354 if (ntohl(mask->s6_addr32[3]) != 0xffffffff) { in netlbl_af6list_audit_addr()
358 while (ntohl(mask->s6_addr32[++iter]) == 0xffffffff) in netlbl_af6list_audit_addr()
360 mask_val = ntohl(mask->s6_addr32[iter]); in netlbl_af6list_audit_addr()
/openbmc/linux/drivers/scsi/csiostor/
H A Dcsio_mb.c62 return FW_CMD_RETVAL_G(ntohl(hdr->lo)); in csio_mb_fw_retval()
115 *retval = FW_CMD_RETVAL_G(ntohl(rsp->retval_len16)); in csio_mb_process_hello_rsp()
118 hw->fwrev = ntohl(rsp->fwrev); in csio_mb_process_hello_rsp()
120 value = ntohl(rsp->err_to_clearinit); in csio_mb_process_hello_rsp()
248 *retval = FW_CMD_RETVAL_G(ntohl(rsp->retval_len16)); in csio_mb_process_read_params_rsp()
252 *val++ = ntohl(*p); in csio_mb_process_read_params_rsp()
391 *retval = FW_CMD_RETVAL_G(ntohl(rsp->action_to_len16)); in csio_mb_process_read_port_rsp()
596 *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_mb_iq_alloc_write_rsp()
782 *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_mb_eq_ofld_alloc_write_rsp()
786 ntohl(rsp->eqid_pkd)); in csio_mb_eq_ofld_alloc_write_rsp()
[all …]
/openbmc/linux/net/ipv6/netfilter/
H A Dip6t_ah.c62 pr_debug("SPI %u %08X\n", ntohl(ah->spi), ntohl(ah->spi)); in ah_mt6()
66 ntohl(ah->spi), in ah_mt6()
78 ntohl(ah->spi), in ah_mt6()
/openbmc/u-boot/cmd/
H A Dtsi148.c204 i, ntohl(__raw_readl(&dev->uregs->outbound[i].otat))); in tsi148_pci_slave_window()
206 i, ntohl(__raw_readl(&dev->uregs->outbound[i].otsal))); in tsi148_pci_slave_window()
208 i, ntohl(__raw_readl(&dev->uregs->outbound[i].oteal))); in tsi148_pci_slave_window()
210 i, ntohl(__raw_readl(&dev->uregs->outbound[i].otofl))); in tsi148_pci_slave_window()
297 i, ntohl(__raw_readl(&dev->uregs->inbound[i].itat))); in tsi148_vme_slave_window()
299 i, ntohl(__raw_readl(&dev->uregs->inbound[i].itsal))); in tsi148_vme_slave_window()
301 i, ntohl(__raw_readl(&dev->uregs->inbound[i].iteal))); in tsi148_vme_slave_window()
303 i, ntohl(__raw_readl(&dev->uregs->inbound[i].itofl))); in tsi148_vme_slave_window()
/openbmc/linux/drivers/media/test-drivers/vicodec/
H A Dcodec-v4l2-fwht.c301 version = ntohl(state->header.version); in v4l2_fwht_decode()
313 if (ntohl(state->header.width) != state->visible_width || in v4l2_fwht_decode()
314 ntohl(state->header.height) != state->visible_height) in v4l2_fwht_decode()
317 flags = ntohl(state->header.flags); in v4l2_fwht_decode()
329 state->colorspace = ntohl(state->header.colorspace); in v4l2_fwht_decode()
330 state->xfer_func = ntohl(state->header.xfer_func); in v4l2_fwht_decode()
331 state->ycbcr_enc = ntohl(state->header.ycbcr_enc); in v4l2_fwht_decode()
332 state->quantization = ntohl(state->header.quantization); in v4l2_fwht_decode()
334 cf.size = ntohl(state->header.size); in v4l2_fwht_decode()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_dsa.c41 words[0] = ntohl(dsa_words[0]); in prestera_dsa_parse()
42 words[1] = ntohl(dsa_words[1]); in prestera_dsa_parse()
43 words[2] = ntohl(dsa_words[2]); in prestera_dsa_parse()
44 words[3] = ntohl(dsa_words[3]); in prestera_dsa_parse()

12345678910>>...18