/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_u32_parse.h | 48 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 …]
|
D | sge.c | 318 dma_unmap_single(dev, be64_to_cpu(sgl->addr0), ntohl(sgl->len0), in unmap_sgl() 321 dma_unmap_page(dev, be64_to_cpu(sgl->addr0), ntohl(sgl->len0), in unmap_sgl() 333 ntohl(p->len[0]), DMA_TO_DEVICE); in unmap_sgl() 335 ntohl(p->len[1]), DMA_TO_DEVICE); in unmap_sgl() 344 ntohl(p->len[0]), DMA_TO_DEVICE); in unmap_sgl() 346 ntohl(p->len[1]), DMA_TO_DEVICE); in unmap_sgl() 352 ntohl(p->len[0]), DMA_TO_DEVICE); in unmap_sgl() 354 ntohl(p->len[1]), DMA_TO_DEVICE); in unmap_sgl() 365 dma_unmap_page(dev, be64_to_cpu(addr), ntohl(p->len[0]), in unmap_sgl() 2172 u32 len = ntohl(rc->pldbuflen_qid), bufsz, frags; in process_responses() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | ev.c | 53 FW_RI_TPTE_VALID_G(ntohl(tpte.valid_to_pdid)), in print_tpte() 54 FW_RI_TPTE_STAGKEY_G(ntohl(tpte.valid_to_pdid)), in print_tpte() 55 FW_RI_TPTE_STAGSTATE_G(ntohl(tpte.valid_to_pdid)), in print_tpte() 56 FW_RI_TPTE_PDID_G(ntohl(tpte.valid_to_pdid)), in print_tpte() 57 FW_RI_TPTE_PERM_G(ntohl(tpte.locread_to_qpid)), in print_tpte() 58 FW_RI_TPTE_PS_G(ntohl(tpte.locread_to_qpid)), in print_tpte() 59 ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), in print_tpte() 60 ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); in print_tpte() 71 CQE_STATUS(err_cqe), CQE_TYPE(err_cqe), ntohl(err_cqe->len), in dump_err_cqe()
|
D | device.c | 367 FW_RI_TPTE_VALID_G(ntohl(tpte.valid_to_pdid)), in dump_stag() 368 FW_RI_TPTE_STAGKEY_G(ntohl(tpte.valid_to_pdid)), in dump_stag() 369 FW_RI_TPTE_STAGSTATE_G(ntohl(tpte.valid_to_pdid)), in dump_stag() 370 FW_RI_TPTE_PDID_G(ntohl(tpte.valid_to_pdid)), in dump_stag() 371 FW_RI_TPTE_PERM_G(ntohl(tpte.locread_to_qpid)), in dump_stag() 372 FW_RI_TPTE_PS_G(ntohl(tpte.locread_to_qpid)), in dump_stag() 373 ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), in dump_stag() 374 ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); in dump_stag()
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 58 if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) + in vic_provinfo_add_tlv() 63 ntohl(vp->length) - sizeof(vp->num_tlvs)); in vic_provinfo_add_tlv() 69 vp->num_tlvs = htonl(ntohl(vp->num_tlvs) + 1); in vic_provinfo_add_tlv() 70 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv() 78 return vp ? ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0; in vic_provinfo_size()
|
/drivers/scsi/csiostor/ |
D | csio_mb.c | 62 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() 397 *retval = FW_CMD_RETVAL_G(ntohl(rsp->action_to_len16)); in csio_mb_process_read_port_rsp() 592 *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_mb_iq_alloc_write_rsp() 778 *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_mb_eq_ofld_alloc_write_rsp() 782 ntohl(rsp->eqid_pkd)); in csio_mb_eq_ofld_alloc_write_rsp() [all …]
|
D | csio_rnode.c | 341 ((ntohl(*port_id) >> 8) & CSIO_DID_MASK)); in csio_confirm_rnode() 458 if (((ntohl(*did) >> 8) & CSIO_DID_MASK) != FC_FID_FLOGI) { in csio_rn_verify_rparams() 471 if (((ntohl(*did) >> 8) & CSIO_DID_MASK) != FC_FID_DIR_SERV) { in csio_rn_verify_rparams() 521 (ntohl(*did) & CSIO_DID_MASK)); in csio_rn_verify_rparams() 530 (ntohl(*did) & CSIO_DID_MASK)); in csio_rn_verify_rparams() 537 rn->nport_id = (ntohl(*did) >> 8) & CSIO_DID_MASK; in csio_rn_verify_rparams()
|
D | csio_attr.c | 454 if (FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)) != FW_SUCCESS) { in csio_fcoe_alloc_vnp() 456 FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16))); in csio_fcoe_alloc_vnp() 462 ntohl(rsp->gen_wwn_to_vnpi)); in csio_fcoe_alloc_vnp() 529 if (FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)) != FW_SUCCESS) { in csio_fcoe_free_vnp() 531 FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16))); in csio_fcoe_free_vnp()
|
D | csio_lnode.c | 606 retval = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_ln_vnp_read_cbfn() 617 ln->nport_id = ntohl(nport_id); in csio_ln_vnp_read_cbfn() 773 retval = FW_CMD_RETVAL_G(ntohl(rsp->retval_len16)); in csio_ln_read_fcf_cbfn() 789 fcf_info->fcfi = FW_FCOE_FCF_CMD_FCFI_GET(ntohl(rsp->op_to_fcfi)); in csio_ln_read_fcf_cbfn() 1483 ntohl(lcmd->op_to_portid)); in csio_fcoe_fwevt_handler() 1484 fcfi = FW_FCOE_LINK_CMD_FCFI_GET(ntohl(lcmd->sub_opcode_fcfi)); in csio_fcoe_fwevt_handler() 1485 vnpi = FW_FCOE_LINK_CMD_VNPI_GET(ntohl(lcmd->vnpi_pkd)); in csio_fcoe_fwevt_handler() 1515 ntohl(rdev_wr->alloc_to_len16)); in csio_fcoe_fwevt_handler() 1517 ntohl(rdev_wr->flags_to_assoc_flowid)); in csio_fcoe_fwevt_handler()
|
D | csio_hw.c | 706 csum += ntohl(p[i]); in csio_hw_fw_dload() 1249 reset = ((ntohl(fw_hdr->flags) & FW_HDR_FLAGS_RESET_HALT) == 0); in csio_hw_fw_upgrade() 1503 retval = FW_CMD_RETVAL_G(ntohl(rsp->retval_len16)); in csio_get_fcoe_resinfo() 1515 res_info->max_xchgs = ntohl(rsp->max_xchgs); in csio_get_fcoe_resinfo() 1516 res_info->max_ssns = ntohl(rsp->max_ssns); in csio_get_fcoe_resinfo() 1517 res_info->used_xchgs = ntohl(rsp->used_xchgs); in csio_get_fcoe_resinfo() 1518 res_info->used_ssns = ntohl(rsp->used_ssns); in csio_get_fcoe_resinfo() 1519 res_info->max_fcfs = ntohl(rsp->max_fcfs); in csio_get_fcoe_resinfo() 1520 res_info->max_vnps = ntohl(rsp->max_vnps); in csio_get_fcoe_resinfo() 1521 res_info->used_fcfs = ntohl(rsp->used_fcfs); in csio_get_fcoe_resinfo() [all …]
|
/drivers/net/slip/ |
D | slhc.c | 378 if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){ in slhc_compress() 384 if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){ in slhc_compress() 548 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); in slhc_uncompress() 549 thp->seq = htonl( ntohl(thp->seq) + i); in slhc_uncompress() 554 thp->seq = htonl( ntohl(thp->seq) + in slhc_uncompress() 577 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x); in slhc_uncompress() 583 thp->seq = htonl( ntohl(thp->seq) + x); in slhc_uncompress()
|
/drivers/scsi/ |
D | osst.c | 637 if (ntohl(aux->format_id) != 0) { in osst_verify_frame() 639 printk(OSST_DEB_MSG "%s:D: Skipping frame, format_id %u\n", name, ntohl(aux->format_id)); in osst_verify_frame() 688 if (frame_seq_number != -1 && ntohl(aux->frame_seq_num) != frame_seq_number) { in osst_verify_frame() 692 name, ntohl(aux->frame_seq_num), frame_seq_number); in osst_verify_frame() 700 i = ntohl(aux->filemark_cnt); in osst_verify_frame() 702 STp->first_frame_position - 1 != ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[i]))) { in osst_verify_frame() 719 blk_sz = ntohl(aux->dat.dat_list[0].blk_sz); in osst_verify_frame() 736 STp->frame_seq_number = ntohl(aux->frame_seq_num); in osst_verify_frame() 737 STp->logical_blk_num = ntohl(aux->logical_blk_num); in osst_verify_frame() 1087 ntohl(aux->update_frame_cntr), ntohs(aux->partition.wrt_pass_cntr), in osst_read_frame() [all …]
|
/drivers/net/wan/ |
D | hdlc_cisco.c | 190 switch (ntohl (cisco_data->type)) { in cisco_rx() 223 st->rxseq = ntohl(cisco_data->par1); in cisco_rx() 224 ack = ntohl(cisco_data->par2); in cisco_rx() 231 sec = ntohl(cisco_data->time) / 1000; in cisco_rx()
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_utils.c | 173 local_ipaddr = ntohl( in i40iw_inetaddr_event() 176 local_ipaddr = ntohl(ifa->ifa_address); in i40iw_inetaddr_event() 185 local_ipaddr = ntohl( in i40iw_inetaddr_event() 188 local_ipaddr = ntohl(ifa->ifa_address); in i40iw_inetaddr_event() 198 local_ipaddr = ntohl( in i40iw_inetaddr_event() 201 local_ipaddr = ntohl(ifa->ifa_address); in i40iw_inetaddr_event() 1139 loc_addr[0] = ntohl(iph->daddr); in i40iw_ieq_get_qp() 1141 rem_addr[0] = ntohl(iph->saddr); in i40iw_ieq_get_qp() 1229 buf->seqnum = ntohl(tcph->seq); in i40iw_puda_get_tcpip_info()
|
D | i40iw_cm.c | 147 *dst++ = ntohl(*src++); in i40iw_copy_ip_ntohl() 148 *dst++ = ntohl(*src++); in i40iw_copy_ip_ntohl() 149 *dst++ = ntohl(*src++); in i40iw_copy_ip_ntohl() 150 *dst = ntohl(*src); in i40iw_copy_ip_ntohl() 1765 child_listen_node->loc_addr[0] = ntohl(ifa->ifa_address); in i40iw_add_mqh_4() 2471 if (ntohl(tcph->ack_seq) != cm_node->tcp_cntxt.loc_seq_num) { in i40iw_check_syn() 2492 seq = ntohl(tcph->seq); in i40iw_check_seq() 2493 ack_seq = ntohl(tcph->ack_seq); in i40iw_check_seq() 2521 inc_sequence = ntohl(tcph->seq); in i40iw_handle_syn_pkt() 2589 inc_sequence = ntohl(tcph->seq); in i40iw_handle_synack_pkt() [all …]
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.c | 58 __func__, ntohl(ip->saddr), ntohl(ip->daddr), in cxgb_get_4tuple()
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 479 unsigned int atid = G_PASS_OPEN_TID(ntohl(req->tos_tid)); in do_act_establish() 480 u32 rcv_isn = ntohl(req->rcv_isn); /* real RCV_ISN + 1 */ in do_act_establish() 509 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish() 630 csk, csk->state, csk->flags, csk->tid, ntohl(rpl->snd_nxt)); in do_close_con_rpl() 632 cxgbi_sock_rcv_close_conn_rpl(csk, ntohl(rpl->snd_nxt)); in do_close_con_rpl() 769 cxgbi_skcb_tcp_seq(skb) = ntohl(hdr_cpl->seq); in do_iscsi_hdr() 796 cxgbi_skcb_rx_ddigest(skb) = ntohl(ddp_cpl.ulp_crc); in do_iscsi_hdr() 797 status = ntohl(ddp_cpl.ddp_status); in do_iscsi_hdr() 826 csk->rcv_nxt = ntohl(ddp_cpl.seq) + cxgbi_skcb_rx_pdulen(skb); in do_iscsi_hdr() 856 cxgbi_sock_rcv_wr_ack(csk, ntohs(hdr->credits), ntohl(hdr->snd_una), 1); in do_wr_ack()
|
/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 444 result = ntohl(response->result); in myri10ge_send_cmd() 445 value = ntohl(response->data); in myri10ge_send_cmd() 565 if (ntohl(hdr->mcp_type) != MCP_TYPE_ETH) { in myri10ge_validate_firmware() 566 dev_err(dev, "Bad firmware type: 0x%x\n", ntohl(hdr->mcp_type)); in myri10ge_validate_firmware() 615 hdr_offset = ntohl(*(__be32 *) (fw->data + MCP_HEADER_PTR_OFFSET)); in myri10ge_load_hotplug_firmware() 1632 unsigned link_up = ntohl(stats->link_up); in myri10ge_check_statblock() 1650 ntohl(stats->rdma_tags_available)) { in myri10ge_check_statblock() 1652 ntohl(stats->rdma_tags_available); in myri10ge_check_statblock() 1753 send_done_count = ntohl(stats->send_done_count); in myri10ge_intr() 1998 data[i++] = (unsigned int)ntohl(ss->fw_stats->link_up); in myri10ge_get_ethtool_stats() [all …]
|
/drivers/infiniband/hw/nes/ |
D | nes_cm.c | 745 new_send->seq_num = ntohl(tcp_hdr(skb)->seq); in schedule_nes_timer() 1416 neigh->ha, ntohl(rt->rt_gateway)); in nes_addr_resolve_neigh() 1864 err = ((ntohl(tcph->ack_seq) == cm_node->tcp_cntxt.loc_seq_num)) ? 0 : 1; in check_syn() 1881 seq = ntohl(tcph->seq); in check_seq() 1882 ack_seq = ntohl(tcph->ack_seq); in check_seq() 1914 inc_sequence = ntohl(tcph->seq); in handle_syn_pkt() 1975 inc_sequence = ntohl(tcph->seq); in handle_synack_pkt() 1982 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->ack_seq); in handle_synack_pkt() 2000 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq); in handle_synack_pkt() 2006 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq); in handle_synack_pkt() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_offload.c | 742 unsigned int atid = G_TID(ntohl(rpl->atid)); in do_act_open_rpl() 762 unsigned int stid = G_TID(ntohl(p->opcode_tid)); in do_stid_rpl() 780 unsigned int hwtid = G_TID(ntohl(p->opcode_tid)); in do_hwtid_rpl() 798 unsigned int stid = G_PASS_OPEN_TID(ntohl(req->tos_tid)); in do_cr() 847 unsigned int hwtid = G_TID(ntohl(p->opcode_tid)); in do_abort_req_rss() 892 unsigned int atid = G_PASS_OPEN_TID(ntohl(req->tos_tid)); in do_act_establish() 936 return ntohl((__force __be32)skb->priority) >> 8 & 0xfffff; in get_hwtid() 941 return G_OPCODE(ntohl((__force __be32)skb->csum)); in get_opcode() 1031 dev->name, opcode, G_TID(ntohl(p->opcode_tid))); in process_rx()
|
/drivers/target/tcm_fc/ |
D | tfc_sess.c | 380 fcp_parm = ntohl(rspp->spp_params); in ft_prli_locked() 413 fcp_parm = ntohl(spp->spp_params); in ft_prli_locked() 419 fcp_parm = ntohl(spp->spp_params); in ft_prli_locked()
|
/drivers/staging/lustre/lnet/lnet/ |
D | lib-socket.c | 132 *ip = ntohl(val); in lnet_ipif_query() 146 *mask = ntohl(val); in lnet_ipif_query() 468 *ip = ntohl(sin.sin_addr.s_addr); in lnet_sock_getaddr()
|
/drivers/target/iscsi/cxgbit/ |
D | cxgbit_main.c | 171 unsigned int status = ntohl(cpl->ddpvld); in cxgbit_proc_ddp_status() 174 pdu_cb->ddigest = ntohl(cpl->ulp_crc); in cxgbit_proc_ddp_status() 250 pdu_cb->seq = ntohl(cpl->seq); in cxgbit_lro_add_packet_gl() 480 ntohl(rpl->ot.opcode_tid), skb); in cxgbit_uld_lro_rx_handler()
|
/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 723 unsigned int atid = TID_TID_G(ntohl(req->tos_atid)); in do_act_establish() 781 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish() 954 cxgbi_sock_rcv_close_conn_rpl(csk, ntohl(rpl->snd_nxt)); in do_close_con_rpl() 1103 cxgbi_skcb_tcp_seq(skb) = ntohl(cpl->seq); in do_rx_iscsi_hdr() 1129 dlen = ntohl(*(unsigned int *)(bhs + 4)) & 0xFFFFFF; in do_rx_iscsi_hdr() 1151 ntohl(*((unsigned int *)(bhs + 16))), in do_rx_iscsi_hdr() 1152 ntohl(*((unsigned int *)(bhs + 24)))); in do_rx_iscsi_hdr() 1184 unsigned int status = ntohl(rpl->ddpvld); in do_rx_data_ddp() 1216 cxgbi_skcb_rx_ddigest(lskb) = ntohl(rpl->ulp_crc); in do_rx_data_ddp() 1277 cxgbi_sock_rcv_wr_ack(csk, rpl->credits, ntohl(rpl->snd_una), in do_fw4_ack() [all …]
|
/drivers/net/usb/ |
D | lg-vl600.c | 148 if (ntohl(frame->magic) != 0x53544448 && in vl600_rx_fixup() 149 ntohl(frame->magic) != 0x44544d48) in vl600_rx_fixup()
|