/drivers/net/slip/ |
D | slhc.c | 253 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress() 364 deltaS = ntohs(th->urg_ptr); in slhc_compress() 374 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress() 400 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress() 411 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 418 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 425 deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); in slhc_compress() 543 i = ntohs(ip->tot_len) - hdrlen; in slhc_uncompress() 551 ntohs(ip->tot_len) - hdrlen); in slhc_uncompress() 567 thp->window = htons( ntohs(thp->window) + x); in slhc_uncompress() [all …]
|
/drivers/staging/bcm/ |
D | hostmibs.c | 138 t->wmanIfCmnCpsArqWindowSize = ntohs(psfLocalSet->u16ARQWindowSize); in CopyMIBSExtendedSFParameters() 141 ntohs(psfLocalSet->u16ARQBlockLifeTime); in CopyMIBSExtendedSFParameters() 145 ntohs(psfLocalSet->u16ARQSyncLossTimeOut); in CopyMIBSExtendedSFParameters() 152 ntohs(psfLocalSet->u16ARQRxPurgeTimeOut); in CopyMIBSExtendedSFParameters() 155 t->wmanIfCmnCpsArqBlockSize = ntohs(psfLocalSet->u16ARQBlockSize); in CopyMIBSExtendedSFParameters() 161 t->wmanIfCmnCpsTargetSaid = ntohs(psfLocalSet->u16TargetSAID); in CopyMIBSExtendedSFParameters()
|
D | IPv6Protocol.c | 165 ntohs(*pusSrcPort), in GetIpv6ProtocolPorts() 166 ntohs(*pusDestPort)); in GetIpv6ProtocolPorts() 253 ntohs(ushSrcPort)); in IpVersion6() 255 ntohs(ushSrcPort)); in IpVersion6() 266 ntohs(ushDestPort)); in IpVersion6() 268 ntohs(ushDestPort)); in IpVersion6() 461 ntohs(pstIpv6Header->usPayloadLength)); in DumpIpv6Header()
|
D | Protocol.h | 74 #define ETHERNET_FRAMETYPE_IPV4 ntohs(0x0800) 75 #define ETHERNET_FRAMETYPE_IPV6 ntohs(0x86dd) 76 #define ETHERNET_FRAMETYPE_802QVLAN ntohs(0x8100)
|
D | Qos.c | 373 ntohs((iphd->protocol == UDP) ? in IpVersion4() 391 ntohs((iphd->protocol == UDP) ? in IpVersion4() 656 usCurrFragment = (ntohs(pIpHeader->frag_off) & IP_OFFSET); in ClassifyPacket() 657 if ((ntohs(pIpHeader->frag_off) & IP_MF) || usCurrFragment) in ClassifyPacket() 673 if (!(ntohs(pIpHeader->frag_off) & IP_MF)) { in ClassifyPacket() 826 (ntohs(pIpHeader->tot_len) == in ClassifyPacket() 1005 ntohs(*((USHORT *)pstClassifierRule->usUserPriority)), in EthCSMatchVLANRules() 1017 uPriority = (ntohs(*(USHORT *)(skb->data + in EthCSMatchVLANRules() 1043 usVLANID = ntohs(*(USHORT *)(skb->data + in EthCSMatchVLANRules() 1132 USHORT u16Etype = ntohs( in EThCSGetPktInfo() [all …]
|
D | CmHost.c | 313 ntohs(pack_class_rule->u16PacketClassificationRuleIndex)); in CopyClassifierRuleToSF() 338 ntohs(pstClassifierEntry->usDestPortRangeLo[i]); in CopyClassifierRuleToSF() 344 ntohs(pstClassifierEntry->usDestPortRangeHi[i]); in CopyClassifierRuleToSF() 365 ntohs(pstClassifierEntry->usSrcPortRangeLo[i]); in CopyClassifierRuleToSF() 371 ntohs(pstClassifierEntry->usSrcPortRangeHi[i]); in CopyClassifierRuleToSF() 423 ntohs(pack_class_rule->u16PacketClassificationRuleIndex); in CopyClassifierRuleToSF() 464 ntohs(pack_class_rule->u16VLANID); in CopyClassifierRuleToSF() 466 ntohs(pack_class_rule->u16ValidityBitMap); in CopyClassifierRuleToSF() 673 …u16PacketClassificationRuleIndex = ntohs(psfCSType->cCPacketClassificationRule.u16PacketClassifica… in CopyToAdapter() 814 UGIValue = ntohs(psfLocalSet->u16UnsolicitedGrantInterval); in CopyToAdapter() [all …]
|
/drivers/staging/gdm724x/ |
D | gdm_lte.c | 122 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp() 247 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp() 249 if (ntohs(vlan_eth.h_vlan_encapsulated_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp() 255 if (ntohs(eth.h_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp() 362 if (ntohs(eth->h_proto) == ETH_P_8021Q) { in gdm_lte_tx_nic_type() 364 mac_proto = ntohs(vlan_eth->h_vlan_encapsulated_proto); in gdm_lte_tx_nic_type() 368 mac_proto = ntohs(eth->h_proto); in gdm_lte_tx_nic_type() 385 if (ntohs(udp->dest) == 67 || ntohs(udp->dest) == 68) in gdm_lte_tx_nic_type() 401 if (ntohs(udp->dest) == 546 || ntohs(udp->dest) == 547) in gdm_lte_tx_nic_type() 451 nic->vlan_id = ntohs(vlan_eth->h_vlan_TCI) & VLAN_VID_MASK; in gdm_lte_tx()
|
/drivers/scsi/libfc/ |
D | fc_exch.c | 982 ep->oxid = ntohs(fh->fh_ox_id); in fc_exch_resp() 1021 xid = ntohs(fh->fh_ox_id); /* we originated exch */ in fc_seq_lookup_recip() 1029 ep->rxid = ntohs(fh->fh_rx_id); in fc_seq_lookup_recip() 1030 else if (ep->rxid != ntohs(fh->fh_rx_id)) { in fc_seq_lookup_recip() 1035 xid = ntohs(fh->fh_rx_id); /* we are the responder */ in fc_seq_lookup_recip() 1144 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig() 1155 ep->rxid = ntohs(fh->fh_rx_id); in fc_seq_lookup_orig() 1532 ep = fc_exch_find(mp, ntohs(fh->fh_ox_id)); in fc_exch_recv_seq_resp() 1542 ep->rxid = ntohs(fh->fh_rx_id); in fc_exch_recv_seq_resp() 1666 low = ntohs(ap->ba_low_seq_cnt); in fc_exch_abts_resp() [all …]
|
D | fc_disc.c | 110 len = ntohs(rp->rscn_plen); in fc_disc_recv_rscn_req() 532 seq_cnt = ntohs(fh->fh_seq_cnt); in fc_disc_gpn_ft_resp() 539 } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_ft_resp() 544 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_ft_resp() 554 "%x\n", ntohs(cp->ct_cmd)); in fc_disc_gpn_ft_resp() 604 if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_id_resp() 628 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_id_resp() 634 ntohs(cp->ct_cmd)); in fc_disc_gpn_id_resp()
|
/drivers/net/wireless/mwifiex/ |
D | sta_rx.c | 44 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp() 104 ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP && in mwifiex_process_rx_packet() 105 ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX)) { in mwifiex_process_rx_packet() 149 ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) { in mwifiex_process_rx_packet()
|
/drivers/infiniband/hw/cxgb4/ |
D | device.c | 260 &lsin->sin_addr, ntohs(lsin->sin_port), in dump_qp() 261 ntohs(mapped_lsin->sin_port), in dump_qp() 262 &rsin->sin_addr, ntohs(rsin->sin_port), in dump_qp() 263 ntohs(mapped_rsin->sin_port)); in dump_qp() 285 ntohs(lsin6->sin6_port), in dump_qp() 286 ntohs(mapped_lsin6->sin6_port), in dump_qp() 288 ntohs(rsin6->sin6_port), in dump_qp() 289 ntohs(mapped_rsin6->sin6_port)); in dump_qp() 567 &lsin->sin_addr, ntohs(lsin->sin_port), in dump_ep() 568 ntohs(mapped_lsin->sin_port), in dump_ep() [all …]
|
D | cm.c | 830 mpa->private_data_size = htons(ntohs(mpa->private_data_size) + in send_mpa_req() 920 mpa->private_data_size = htons(ntohs(mpa->private_data_size) + in send_mpa_reject() 1001 mpa->private_data_size = htons(ntohs(mpa->private_data_size) + in send_mpa_reply() 1064 set_emss(ep, ntohs(req->tcp_opt)); in act_establish() 1327 plen = ntohs(mpa->private_data_size); in process_mpa_reply() 1377 resp_ird = ntohs(mpa_v2_params->ird) & in process_mpa_reply() 1379 resp_ord = ntohs(mpa_v2_params->ord) & in process_mpa_reply() 1410 if (ntohs(mpa_v2_params->ird) & in process_mpa_reply() 1412 if (ntohs(mpa_v2_params->ord) & in process_mpa_reply() 1416 else if (ntohs(mpa_v2_params->ord) & in process_mpa_reply() [all …]
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_msgq.c | 240 cmdq->consumer_index = ntohs(dbell->idx.cmdq_ci); in bfa_msgq_cmdq_ci_update() 246 if (ntohs(cmd->msg_hdr->num_entries) <= in bfa_msgq_cmdq_ci_update() 277 cmdq->offset = ntohs(req->offset); in bfa_msgq_cmdq_copy_req() 278 cmdq->bytes_to_copy = ntohs(req->len); in bfa_msgq_cmdq_copy_req() 474 rspq->producer_index = ntohs(dbell->idx.rspq_pi); in bfa_msgq_rspq_pi_update() 482 num_entries = ntohs(msghdr->num_entries); in bfa_msgq_rspq_pi_update() 633 if (ntohs(cmd->msg_hdr->num_entries) <= in bfa_msgq_cmd_post()
|
D | bfa_cee.c | 49 ntohs(lldp_cfg->time_to_live); in bfa_cee_format_lldp_cfg() 51 ntohs(lldp_cfg->enabled_system_cap); in bfa_cee_format_lldp_cfg()
|
/drivers/net/bonding/ |
D | bond_3ad.c | 399 if (((ntohs(lacpdu->partner_port) == port->actor_port_number) && in __choose_matched() 400 (ntohs(lacpdu->partner_port_priority) == port->actor_port_priority) && in __choose_matched() 402 (ntohs(lacpdu->partner_system_priority) == port->actor_system_priority) && in __choose_matched() 403 (ntohs(lacpdu->partner_key) == port->actor_oper_port_key) && in __choose_matched() 431 partner->port_number = ntohs(lacpdu->actor_port); in __record_pdu() 432 partner->port_priority = ntohs(lacpdu->actor_port_priority); in __record_pdu() 434 partner->system_priority = ntohs(lacpdu->actor_system_priority); in __record_pdu() 435 partner->key = ntohs(lacpdu->actor_key); in __record_pdu() 493 if (ntohs(lacpdu->actor_port) != partner->port_number || in __update_selected() 494 ntohs(lacpdu->actor_port_priority) != partner->port_priority || in __update_selected() [all …]
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 179 &req->local_ip, ntohs(req->local_port), in send_act_open_req() 180 &req->peer_ip, ntohs(req->peer_port), in send_act_open_req() 492 csk->rss_qid = G_QNUM(ntohs(skb->csum)); in do_act_establish() 508 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish() 576 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in do_act_open_rpl() 577 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in do_act_open_rpl() 774 len = hdr_len = ntohs(hdr_cpl->len); in do_iscsi_hdr() 794 cxgbi_skcb_rx_pdulen(skb) = ntohs(ddp_cpl.len); in do_iscsi_hdr() 817 data_len = ntohs(data_cpl.len); in do_iscsi_hdr() 853 csk, csk->state, csk->flags, csk->tid, ntohs(hdr->credits)); in do_wr_ack() [all …]
|
/drivers/staging/ft1000/ft1000-pcmcia/ |
D | ft1000_hw.c | 588 ntohs(ft1000_read_dpram_mag_16 in ft1000_hbchk() 600 tempword = ntohs(ft1000_read_dpram_mag_16(dev, FT1000_MAG_HI_HO, FT1000_MAG_HI_HO_INDX)); in ft1000_hbchk() 710 ntohs(ft1000_read_dpram_mag_16 in ft1000_hbchk() 727 tempword = ntohs(ft1000_read_dpram_mag_16(dev, FT1000_MAG_HI_HO, FT1000_MAG_HI_HO_INDX)); in ft1000_hbchk() 806 DEBUG(1, "FT1000:ft1000_send_cmd:length = %d\n", ntohs(*ptempbuffer)); in ft1000_send_cmd() 894 ntohs(ft1000_read_dpram_mag_16 in ft1000_receive_cmd() 912 *pbuffer++ = ntohs(tempword); in ft1000_receive_cmd() 943 *pbuffer = ntohs(tempword); in ft1000_receive_cmd() 1005 msgtype = ntohs(pdrvmsg->type); in ft1000_proc_drvmsg() 1106 if (ntohs(pdspinitmsg->length) == in ft1000_proc_drvmsg() [all …]
|
D | ft1000_dnld.c | 520 temp = ntohs(*pUsData); in card_download() 575 ntohs(*pUsFile++); in card_download() 577 ntohs(*pUsFile++); in card_download() 710 usHdrLength = ntohs(pHdr->length); /* Byte length for PROV records */ in card_download()
|
/drivers/staging/ft1000/ft1000-usb/ |
D | ft1000_debug.c | 504 get_stat_data.LedStat = ntohs(ledStat); in ft1000_ioctl() 507 get_stat_data.ConStat = ntohs(conStat); in ft1000_ioctl() 565 msgsz = ntohs(msgsz); in ft1000_ioctl() 598 qtype = ntohs(dpram_data->pseudohdr.qos_class) & 0xff; in ft1000_ioctl() 709 msglen = ntohs(*(u16 *)pdpram_blk->pbuffer) + PSEUDOSZ; in ft1000_ioctl()
|
D | ft1000_download.c | 184 handshake = ntohs(handshake); in get_handshake() 258 handshake = ntohs(handshake); in get_handshake_usb() 878 templong = ntohs(*s_file++); in scram_dnldr() 879 temp = ntohs(*s_file++); in scram_dnldr() 989 pseudo_header_len = ntohs(pseudo_header->length); /* Byte length for PROV records */ in scram_dnldr()
|
D | ft1000_hw.c | 539 hdr.length = ntohs(count); in ft1000_copy_down_pkt() 995 size = ntohs(size) + PSEUDOSZ; in ft1000_receive_cmd() 1033 *pbuffer = ntohs(tempword); in ft1000_receive_cmd() 1176 msgtype = ntohs(pdrvmsg->type); in ft1000_proc_drvmsg() 1229 if (ntohs(pdspinitmsg->length) == in ft1000_proc_drvmsg() 1264 tempword = ntohs(pdrvmsg->length); in ft1000_proc_drvmsg() 1506 size = ntohs(data) + 16 + 2; in ft1000_poll()
|
/drivers/infiniband/core/ |
D | iwpm_util.c | 383 ntohs(sockaddr_v4->sin_port), in iwpm_print_sockaddr() 384 ntohs(sockaddr_v4->sin_port)); in iwpm_print_sockaddr() 390 ntohs(sockaddr_v6->sin6_port), in iwpm_print_sockaddr() 391 ntohs(sockaddr_v6->sin6_port)); in iwpm_print_sockaddr()
|
/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 224 csk, &req->local_ip, ntohs(req->local_port), in send_act_open_req() 225 &req->peer_ip, ntohs(req->peer_port), in send_act_open_req() 248 csk, &req->local_ip, ntohs(req->local_port), in send_act_open_req() 249 &req->peer_ip, ntohs(req->peer_port), in send_act_open_req() 342 &csk->saddr6.sin6_addr, ntohs(csk->saddr.sin_port), in send_act_open_req6() 343 &csk->daddr6.sin6_addr, ntohs(csk->daddr.sin_port), in send_act_open_req6() 666 unsigned short tcp_opt = ntohs(req->tcp_opt); in do_act_establish() 726 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt)); in do_act_establish() 1026 __pskb_trim(skb, ntohs(cpl->len)); in do_rx_iscsi_hdr() 1046 hlen = ntohs(cpl->len); in do_rx_iscsi_hdr() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 283 op = ntohs(fiph->fip_op); in is_fnic_fip_flogi_reject() 292 rlen = ntohs(fiph->fip_dl_len) * 4; in is_fnic_fip_flogi_reject() 400 ntohs(fiph->fip_op), fiph->fip_subcode); in fnic_fcoe_process_vlan_resp() 402 rlen = ntohs(fiph->fip_dl_len) * 4; in fnic_fcoe_process_vlan_resp() 410 vid = ntohs(((struct fip_vlan_desc *)desc)->fd_vlan); in fnic_fcoe_process_vlan_resp() 535 op = ntohs(fiph->fip_op); in fnic_fcoe_handle_fip_frame() 541 if (ntohs(fiph->fip_dl_len) * FIP_BPW + sizeof(*fiph) > skb->len) in fnic_fcoe_handle_fip_frame() 545 if (fnic_fcoe_vlan_check(fnic, ntohs(fiph->fip_flags))) in fnic_fcoe_handle_fip_frame()
|
/drivers/infiniband/hw/nes/ |
D | nes_cm.c | 280 priv_data_len = ntohs(mpa_frame->priv_data_len); in parse_mpa() 350 rtr_ctrl_ird = ntohs(rtr_msg->ctrl_ird); in parse_mpa() 351 rtr_ctrl_ord = ntohs(rtr_msg->ctrl_ord); in parse_mpa() 613 cm_info->mapped_loc_port = ntohs(mapped_loc_addr->sin_port); in nes_record_pm_msg() 618 cm_info->mapped_rem_port = ntohs(mapped_rem_addr->sin_port); in nes_record_pm_msg() 1741 tmp = ntohs(all_options->as_mss.mss); in process_options() 2234 cm_node->tcp_cntxt.snd_wnd = ntohs(tcph->window) << in handle_tcp_options() 2712 nfo.loc_port = ntohs(tcph->dest); in mini_cm_recv_pkt() 2714 nfo.rem_port = ntohs(tcph->source); in mini_cm_recv_pkt() 2718 nfo.mapped_loc_port = ntohs(tcph->dest); in mini_cm_recv_pkt() [all …]
|