/drivers/net/wan/lmc/ |
D | lmc_proto.c | 108 return htons(ETH_P_802_2); in lmc_proto_type() 111 return htons(ETH_P_802_2); in lmc_proto_type() 115 return htons(ETH_P_802_2); in lmc_proto_type()
|
/drivers/net/arcnet/ |
D | rfc1201.c | 112 return htons(ETH_P_IP); in type_trans() 114 return htons(ETH_P_IPV6); in type_trans() 116 return htons(ETH_P_ARP); in type_trans() 118 return htons(ETH_P_RARP); in type_trans() 122 return htons(ETH_P_802_3); in type_trans() 129 return htons(ETH_P_IP); in type_trans() 421 soft->sequence = htons(lp->rfc1201.sequence++); in build_header() 457 excsoft.sequence = htons(0xffff); in load_pkt()
|
D | rfc1051.c | 110 return htons(ETH_P_IP); in type_trans() 112 return htons(ETH_P_ARP); in type_trans() 120 return htons(ETH_P_IP); in type_trans()
|
/drivers/net/ppp/ |
D | pppopns.c | 41 #define PPTP_GRE_BITS htons(0x2001) 42 #define PPTP_GRE_BITS_MASK htons(0xEF7F) 43 #define PPTP_GRE_SEQ_BIT htons(0x1000) 44 #define PPTP_GRE_ACK_BIT htons(0x0080) 45 #define PPTP_GRE_TYPE htons(0x880B) 222 hdr->length = htons(length); in pppopns_xmit()
|
D | pptp.c | 243 hdr->protocol = htons(PPTP_GRE_PROTO); in pptp_xmit() 244 hdr->call_id = htons(opt->dst_addr.call_id); in pptp_xmit() 254 hdr->payload_len = htons(len); in pptp_xmit() 268 iph->frag_off = htons(IP_DF); in pptp_xmit() 276 iph->tot_len = htons(skb->len); in pptp_xmit() 403 po = lookup_chan(htons(header->call_id), iph->saddr); in pptp_rcv()
|
/drivers/staging/ft1000/ft1000-pcmcia/ |
D | ft1000_hw.c | 835 tempword = htons(*ptempbuffer++); in ft1000_send_cmd() 842 ft1000_write_reg(dev, FT1000_REG_MAG_DPDATAH, htons(size)); in ft1000_send_cmd() 1029 len = htons(len); in ft1000_proc_drvmsg() 1158 htons(info->DSPInfoBlklen + 4); in ft1000_proc_drvmsg() 1179 htons(info->DSPInfoBlklen); in ft1000_proc_drvmsg() 1208 ppseudo_hdr->length = htons(0x0012); in ft1000_proc_drvmsg() 1228 *pmsg++ = htons(RSP_DRV_ERR_RPT_MSG); in ft1000_proc_drvmsg() 1229 *pmsg++ = htons(0x000e); in ft1000_proc_drvmsg() 1230 *pmsg++ = htons(info->DSP_TIME[0]); in ft1000_proc_drvmsg() 1231 *pmsg++ = htons(info->DSP_TIME[1]); in ft1000_proc_drvmsg() [all …]
|
/drivers/net/wan/ |
D | hdlc_ppp.c | 147 return htons(ETH_P_HDLC); in ppp_type_trans() 150 return htons(ETH_P_HDLC); in ppp_type_trans() 155 return htons(ETH_P_IP); in ppp_type_trans() 159 return htons(ETH_P_IPV6); in ppp_type_trans() 162 return htons(ETH_P_HDLC); in ppp_type_trans() 183 data->protocol = htons(PID_IP); in ppp_hard_header() 186 data->protocol = htons(PID_IPV6); in ppp_hard_header() 191 data->protocol = htons(type); in ppp_hard_header() 234 cp->len = htons(sizeof(struct cp_header) + magic_len + len); in ppp_tx_cp()
|
/drivers/scsi/csiostor/ |
D | csio_mb.c | 322 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_CTRL_OFLD); in csio_mb_caps_config() 324 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_INITIATOR); in csio_mb_caps_config() 326 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_TARGET); in csio_mb_caps_config() 459 cmdp->fl0size = htons(iq_params->fl0size); in csio_mb_iq_alloc() 460 cmdp->fl0size = htons(iq_params->fl1size); in csio_mb_iq_alloc() 508 cmdp->iqid |= htons(iq_params->iqid); in csio_mb_iq_write() 509 cmdp->fl0id |= htons(iq_params->fl0id); in csio_mb_iq_write() 510 cmdp->fl1id |= htons(iq_params->fl1id); in csio_mb_iq_write() 516 cmdp->iqdroprss_to_iqesize |= htons( in csio_mb_iq_write() 524 cmdp->iqsize |= htons(iq_params->iqsize); in csio_mb_iq_write() [all …]
|
/drivers/net/usb/ |
D | cdc_mbim.c | 213 case htons(ETH_P_IP): in is_ip_proto() 214 case htons(ETH_P_IPV6): in is_ip_proto() 326 netdev = __vlan_find_dev_deep_rcu(dev->net, htons(ETH_P_8021Q), in do_neigh_solicit() 368 __be16 proto = htons(ETH_P_802_3); in cdc_mbim_process_dgram() 377 proto = htons(ETH_P_IP); in cdc_mbim_process_dgram() 382 proto = htons(ETH_P_IPV6); in cdc_mbim_process_dgram() 405 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tci); in cdc_mbim_process_dgram()
|
/drivers/net/ethernet/sfc/ |
D | filter.h | 190 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_local() 215 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_full() 242 spec->outer_vid = htons(vid); in efx_filter_set_eth_local()
|
D | rx.c | 848 if (skb->protocol == htons(ETH_P_8021Q)) { in efx_filter_rfs() 864 if (ether_type != htons(ETH_P_IP) && ether_type != htons(ETH_P_IPV6)) in efx_filter_rfs() 876 if (ether_type == htons(ETH_P_IP)) { in efx_filter_rfs() 912 if (ether_type == htons(ETH_P_IP)) in efx_filter_rfs() 980 if (spec->ether_type == htons(ETH_P_IP) && in efx_filter_is_mc_recipient() 983 if (spec->ether_type == htons(ETH_P_IPV6) && in efx_filter_is_mc_recipient()
|
D | tx.c | 857 if (protocol == htons(ETH_P_8021Q)) { in efx_tso_check_protocol() 862 if (protocol == htons(ETH_P_IP)) { in efx_tso_check_protocol() 865 EFX_BUG_ON_PARANOID(protocol != htons(ETH_P_IPV6)); in efx_tso_check_protocol() 1025 if (st->protocol == htons(ETH_P_IP)) { in tso_start() 1183 if (st->protocol == htons(ETH_P_IP)) { in tso_start_new_packet() 1187 tsoh_iph->tot_len = htons(ip_length); in tso_start_new_packet() 1188 tsoh_iph->id = htons(st->ipv4_id); in tso_start_new_packet() 1193 tsoh_iph->payload_len = htons(ip_length); in tso_start_new_packet()
|
/drivers/net/slip/ |
D | slhc.c | 349 || (ip->frag_off & htons(0x4000)) != (cs->cs_ip.frag_off & htons(0x4000)) in slhc_compress() 560 thp->urg_ptr = htons(x); in slhc_uncompress() 567 thp->window = htons( ntohs(thp->window) + x); in slhc_uncompress() 587 ip->id = htons (ntohs (ip->id) + x); in slhc_uncompress() 589 ip->id = htons (ntohs (ip->id) + 1); in slhc_uncompress() 601 ip->tot_len = htons(len); in slhc_uncompress()
|
/drivers/staging/gdm724x/ |
D | gdm_lte.c | 143 arp_out->ar_op = htons(ARPOP_REPLY); in gdm_lte_emulate_arp() 303 ipv6_out.payload_len = htons(sizeof(struct icmp6hdr) + in gdm_lte_emulate_ndp() 645 vlan_eth.h_vlan_TCI = htons(nic->vlan_id); in gdm_lte_netif_rx() 646 vlan_eth.h_vlan_proto = htons(ETH_P_8021Q); in gdm_lte_netif_rx() 652 eth.h_proto = htons(ETH_P_ARP); in gdm_lte_netif_rx() 653 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_ARP); in gdm_lte_netif_rx() 657 eth.h_proto = htons(ETH_P_IP); in gdm_lte_netif_rx() 658 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IP); in gdm_lte_netif_rx() 660 eth.h_proto = htons(ETH_P_IPV6); in gdm_lte_netif_rx() 661 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IPV6); in gdm_lte_netif_rx()
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 353 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req() 356 vlan->fip.fip_op = htons(FIP_OP_VLAN); in fnic_fcoe_send_vlan_req() 358 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in fnic_fcoe_send_vlan_req() 370 skb->protocol = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req() 590 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_handle_fip_frame() 633 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt() 638 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt() 653 if (eh->h_proto != htons(ETH_P_FCOE)) in fnic_import_rq_eth_pkt() 985 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); in fnic_eth_send() 987 vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); in fnic_eth_send() [all …]
|
/drivers/net/wireless/ipw2x00/ |
D | libipw_tx.c | 139 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) in libipw_copy_snap() 229 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify() 299 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && in libipw_xmit() 306 ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) { in libipw_xmit()
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 65 tlv->type = htons(type); in vic_provinfo_add_tlv() 66 tlv->length = htons(length); in vic_provinfo_add_tlv()
|
/drivers/staging/ft1000/ft1000-usb/ |
D | ft1000_hw.c | 1094 len = htons(len); in ft1000_dsp_prov() 1108 TempShortBuf[1] = htons(len); in ft1000_dsp_prov() 1300 *pmsg++ = htons(info->DSPInfoBlklen + 20 + info->DSPInfoBlklen); in ft1000_proc_drvmsg() 1303 ppseudo_hdr->length = htons(info->DSPInfoBlklen + 4 in ft1000_proc_drvmsg() 1324 info->DSPInfoBlk[11] = htons(info->DSPInfoBlklen); in ft1000_proc_drvmsg() 1352 ppseudo_hdr->length = htons(0x0012); in ft1000_proc_drvmsg() 1372 *pmsg++ = htons(RSP_DRV_ERR_RPT_MSG); in ft1000_proc_drvmsg() 1373 *pmsg++ = htons(0x000e); in ft1000_proc_drvmsg() 1374 *pmsg++ = htons(info->DSP_TIME[0]); in ft1000_proc_drvmsg() 1375 *pmsg++ = htons(info->DSP_TIME[1]); in ft1000_proc_drvmsg() [all …]
|
/drivers/net/ethernet/fujitsu/ |
D | fmvj18x_cs.c | 779 htons(inw(ioaddr + TX_STATUS)), in fjn_tx_timeout() 784 htons(inw(ioaddr + 0)), htons(inw(ioaddr + 2)), in fjn_tx_timeout() 785 htons(inw(ioaddr + 4)), htons(inw(ioaddr + 6)), in fjn_tx_timeout() 786 htons(inw(ioaddr + 8)), htons(inw(ioaddr + 10)), in fjn_tx_timeout() 787 htons(inw(ioaddr + 12)), htons(inw(ioaddr + 14))); in fjn_tx_timeout()
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 407 sol->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_solicit() 410 sol->fip.fip_op = htons(FIP_OP_DISC); in fcoe_ctlr_solicit() 412 sol->fip.fip_dl_len = htons(sizeof(sol->desc) / FIP_BPW); in fcoe_ctlr_solicit() 413 sol->fip.fip_flags = htons(FIP_FL_FPMA); in fcoe_ctlr_solicit() 415 sol->fip.fip_flags |= htons(FIP_FL_SPMA); in fcoe_ctlr_solicit() 428 sol->desc.size.fd_size = htons(fcoe_size); in fcoe_ctlr_solicit() 431 skb->protocol = htons(ETH_P_FIP); in fcoe_ctlr_solicit() 563 kal->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_send_keep_alive() 566 kal->fip.fip_op = htons(FIP_OP_CTRL); in fcoe_ctlr_send_keep_alive() 568 kal->fip.fip_dl_len = htons((sizeof(kal->mac) + in fcoe_ctlr_send_keep_alive() [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 475 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); in fm10k_process_skb_fields() 695 #define FM10K_NVGRE_RESERVED0_FLAGS htons(0x9FFF) 696 #define NVGRE_TNI htons(0x2000) 709 if (vlan_get_protocol(skb) != htons(ETH_P_IP)) in fm10k_gre_is_nvgre() 720 if (nvgre_hdr->proto != htons(ETH_P_TEB)) in fm10k_gre_is_nvgre() 736 case htons(ETH_P_IP): in fm10k_tx_encap_offload() 739 case htons(ETH_P_IPV6): in fm10k_tx_encap_offload() 761 case htons(ETH_P_IP): in fm10k_tx_encap_offload() 762 case htons(ETH_P_IPV6): in fm10k_tx_encap_offload() 850 case htons(ETH_P_IP): in fm10k_tx_csum() [all …]
|
/drivers/staging/vt6655/ |
D | dpc.c | 185 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 8); // 8 is IV&ExtIV in s_vProcessRxMACHeader() 187 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 4); // 4 is IV in s_vProcessRxMACHeader() 190 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN); in s_vProcessRxMACHeader() 198 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 8); // 8 is IV&ExtIV in s_vProcessRxMACHeader() 200 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 4); // 4 is IV in s_vProcessRxMACHeader() 203 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN); in s_vProcessRxMACHeader() 540 skb->protocol = htons(ETH_P_802_2); in device_receive_frame() 657 skb->protocol = htons(ETH_P_802_2); in device_receive_frame() 768 pDevice->skb->protocol = htons(ETH_P_802_2); in device_receive_frame()
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_msgq.c | 199 dbell->idx.cmdq_pi = htons(cmdq->producer_index); in bfa_msgq_cmdq_dbell() 292 rsp->mh.mtag.i2htok = htons(cmdq->token); in bfa_msgq_cmdq_copy_rsp() 457 dbell->idx.rspq_ci = htons(rspq->consumer_index); in bfa_msgq_rspq_dbell() 524 msgq_cfg->cmdq.q_depth = htons(msgq->cmdq.depth); in bfa_msgq_init() 526 msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth); in bfa_msgq_init()
|
/drivers/infiniband/hw/nes/ |
D | nes_cm.c | 467 skb->protocol = htons(0x800); in form_cm_frame() 473 ethh->h_proto = htons(0x0800); in form_cm_frame() 478 iph->tot_len = htons(packetsize); in form_cm_frame() 479 iph->id = htons(++cm_node->tcp_cntxt.loc_id); in form_cm_frame() 481 iph->frag_off = htons(0x4000); in form_cm_frame() 488 tcph->source = htons(cm_node->mapped_loc_port); in form_cm_frame() 489 tcph->dest = htons(cm_node->mapped_rem_port); in form_cm_frame() 516 tcph->window = htons(cm_node->tcp_cntxt.rcv_wnd); in form_cm_frame() 548 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), in nes_create_mapinfo() 551 htons(cm_info->mapped_loc_port), &mapped_sockaddr); in nes_create_mapinfo() [all …]
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 752 if ((header->proto != htons(ETH_P_IP)) && in ipoib_start_xmit() 753 (header->proto != htons(ETH_P_IPV6)) && in ipoib_start_xmit() 754 (header->proto != htons(ETH_P_ARP)) && in ipoib_start_xmit() 755 (header->proto != htons(ETH_P_RARP)) && in ipoib_start_xmit() 756 (header->proto != htons(ETH_P_TIPC))) { in ipoib_start_xmit() 775 case htons(ETH_P_IP): in ipoib_start_xmit() 776 case htons(ETH_P_IPV6): in ipoib_start_xmit() 777 case htons(ETH_P_TIPC): in ipoib_start_xmit() 784 case htons(ETH_P_ARP): in ipoib_start_xmit() 785 case htons(ETH_P_RARP): in ipoib_start_xmit() [all …]
|