/drivers/staging/bcm/ |
D | InterfaceRx.c | 147 memcpy(skb->data+ETH_HLEN, (PUCHAR)urb->transfer_buffer + sizeof(LEADER), pLeader->PLength); in read_bulk_callback() 151 skb_put (skb, pLeader->PLength + ETH_HLEN); in read_bulk_callback() 159 skb_pull(skb, ETH_HLEN); in read_bulk_callback() 165 skb_push(skb, ETH_HLEN); in read_bulk_callback() 172 pLeader->PLength+=ETH_HLEN; in read_bulk_callback()
|
D | Transmit.c | 145 Leader.PLength = Packet->len - ETH_HLEN; in SetupNextSend() 146 memcpy((LEADER*)skb_pull(Packet, (ETH_HLEN - LEADER_SIZE)), &Leader, LEADER_SIZE); in SetupNextSend()
|
D | Macros.h | 228 #define WIMAX_MAX_MTU (MTU_SIZE + ETH_HLEN)
|
/drivers/net/wimax/i2400m/ |
D | netdev.c | 223 skb_pull(skb, ETH_HLEN); in i2400m_tx_prep_header() 511 skb->data - ETH_HLEN, in i2400m_net_rx() 513 skb_set_mac_header(skb, -ETH_HLEN); in i2400m_net_rx() 564 skb->data - ETH_HLEN, in i2400m_net_erx() 566 skb_set_mac_header(skb, -ETH_HLEN); in i2400m_net_erx()
|
/drivers/net/wireless/ |
D | ray_cs.c | 969 sizeof(struct snaphdr_t), data + ETH_HLEN, in translate_frame() 970 len - ETH_HLEN); in translate_frame() 971 return (int)sizeof(struct snaphdr_t) - ETH_HLEN; in translate_frame() 976 memcpy_toio(&ptx->var, data + ETH_HLEN, len - ETH_HLEN); in translate_frame() 977 return 0 - ETH_HLEN; in translate_frame() 979 memcpy_toio(&ptx->var, data + ETH_HLEN, len - ETH_HLEN); in translate_frame() 980 return 0 - ETH_HLEN; in translate_frame() 2120 if (rx_len < (ETH_HLEN + RX_MAC_HEADER_LENGTH) || in rx_data() 2122 (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + in rx_data() 2131 if (rx_len < (ETH_HLEN + RX_MAC_HEADER_LENGTH) || in rx_data() [all …]
|
/drivers/staging/vt6655/ |
D | wroute.c | 94 memcpy(pDevice->sTxEthHeader.abyDstAddr, (unsigned char *)pbySkbData, ETH_HLEN); in ROUTEbRelay() 96 cbFrameBodySize = uDataLen - ETH_HLEN; in ROUTEbRelay()
|
/drivers/net/wireless/libertas/ |
D | rx.c | 86 if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) { in lbs_process_rxed_packet() 229 if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) { in process_rxed_802_11_packet()
|
/drivers/net/phy/ |
D | dp83640.c | 772 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in is_sync() 779 offset = ETH_HLEN; in is_sync() 782 offset = ETH_HLEN + VLAN_HLEN; in is_sync() 810 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in match() 817 offset = ETH_HLEN; in match() 820 offset = ETH_HLEN + VLAN_HLEN; in match() 826 if (skb->len + ETH_HLEN < offset + OFF_PTP_SEQUENCE_ID + sizeof(*seqid)) in match()
|
/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet.h | 111 #define PKT_MAXBUF_SIZE (MAX_MTU+ETH_HLEN+CRC_LEN) 112 #define PKT_MINBUF_SIZE (MIN_MTU+ETH_HLEN+CRC_LEN)
|
/drivers/staging/rtl8712/ |
D | if_ether.h | 55 #define ETH_HLEN 14 /* Total octets in header. */ macro
|
D | rtl8712_recv.c | 359 while (a_len > ETH_HLEN) { in amsdu_to_msdu() 372 pdata += ETH_HLEN; in amsdu_to_msdu() 373 a_len -= ETH_HLEN; in amsdu_to_msdu() 388 padding_len = 4 - ((nSubframe_Length + ETH_HLEN) & 3); in amsdu_to_msdu()
|
D | xmit_linux.c | 90 _r8712_pktfile_read(ppktfile, (unsigned char *)ðerhdr, ETH_HLEN); in r8712_set_qos()
|
/drivers/net/wireless/orinoco/ |
D | main.c | 330 (priv->nicbuf_size - ETH_HLEN)) in orinoco_change_mtu() 416 size_t len = skb->len - ETH_HLEN; in orinoco_process_xmit_skb() 428 skb->data + ETH_HLEN, in orinoco_process_xmit_skb() 474 if (skb->len < ETH_HLEN) in orinoco_xmit() 921 skb = dev_alloc_skb(length + ETH_HLEN + 2 + 1); in __orinoco_ev_rx() 931 skb_reserve(skb, ETH_HLEN + 2); in __orinoco_ev_rx() 1052 ETH_HLEN - ENCAPS_OVERHEAD); in orinoco_rx() 1055 hdr = (struct ethhdr *)skb_push(skb, ETH_HLEN); in orinoco_rx() 2043 priv->nicbuf_size = IEEE80211_MAX_FRAME_LEN + ETH_HLEN; in orinoco_init()
|
D | mic.c | 52 u8 hdr[ETH_HLEN + 2]; /* size of header + padding */ in orinoco_mic()
|
/drivers/infiniband/hw/nes/ |
D | nes_mgt.c | 177 struct iphdr *iph = (struct iphdr *)(cb->data_start + ETH_HLEN); in nes_get_seq() 341 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); in get_fpdu_info() 345 tot_len = fpdu_info->hdr_len + fpdu_len - ETH_HLEN; in get_fpdu_info() 361 iph = (struct iphdr *)(fpdu_info->hdr_vbase + ETH_HLEN); in get_fpdu_info() 391 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); in get_fpdu_info() 590 cb->data_start = skb->data - ETH_HLEN; in mgt_thread()
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 141 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in pch_ptp_match() 1222 memcpy(tmp_skb->data, skb->data, ETH_HLEN); in pch_gbe_tx_queue() 1223 tmp_skb->data[ETH_HLEN] = 0x00; in pch_gbe_tx_queue() 1224 tmp_skb->data[ETH_HLEN + 1] = 0x00; in pch_gbe_tx_queue() 1226 memcpy(&tmp_skb->data[ETH_HLEN + 2], &skb->data[ETH_HLEN], in pch_gbe_tx_queue() 1227 (skb->len - ETH_HLEN)); in pch_gbe_tx_queue() 2025 hw->mac.max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_sw_init() 2264 max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_change_mtu()
|
/drivers/block/aoe/ |
D | aoenet.c | 117 skb_push(skb, ETH_HLEN); /* (1) */ in aoenet_rcv()
|
/drivers/net/ |
D | loopback.c | 166 dev->hard_header_len = ETH_HLEN; /* 14 */ in loopback_setup()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_selftest.c | 60 skb = netdev_alloc_skb(priv->dev, MLX4_LOOPBACK_TEST_PAYLOAD + ETH_HLEN + NET_IP_ALIGN); in mlx4_en_test_loopback_xmit()
|
/drivers/net/usb/ |
D | cdc_ncm.c | 315 ctx->tx_remainder = ((ctx->tx_remainder - ETH_HLEN) & in cdc_ncm_setup() 400 if (ctx->netdev->mtu != (ctx->max_datagram_size - ETH_HLEN)) in cdc_ncm_setup() 401 ctx->netdev->mtu = ctx->max_datagram_size - ETH_HLEN; in cdc_ncm_setup() 1049 (len > ctx->rx_max) || (len < ETH_HLEN)) { in cdc_ncm_rx_fixup()
|
D | sierra_net.c | 85 u8 ethr_hdr_tmpl[ETH_HLEN]; /* ethernet header template for rx'd pkts */ 223 if (!pskb_may_pull(skb, ETH_HLEN)) in check_ethip_packet() 880 ETH_HLEN); in sierra_net_rx_fixup()
|
D | qmi_wwan.c | 226 if (skb_headroom(skb) < ETH_HLEN) in qmi_wwan_rx_fixup() 228 skb_push(skb, ETH_HLEN); in qmi_wwan_rx_fixup()
|
/drivers/staging/vt6656/ |
D | rxtx.c | 1479 cbFrameBodySize = uSkbPacketLen - ETH_HLEN + cb802_1_H_len; in s_bPacketToWirelessUsb() 1725 (pPacket + ETH_HLEN), in s_bPacketToWirelessUsb() 1726 uSkbPacketLen - ETH_HLEN in s_bPacketToWirelessUsb() 1731 …emcpy((pbyPayloadHead + cb802_1_H_len), ((PBYTE)psEthHeader) + ETH_HLEN, uSkbPacketLen - ETH_HLEN); in s_bPacketToWirelessUsb() 2834 memcpy(pDevice->sTxEthHeader.abyDstAddr, (PBYTE)(skb->data), ETH_HLEN); in nsDMA_tx_packet() 2843 Protocol_Version = skb->data[ETH_HLEN]; in nsDMA_tx_packet() 2844 Packet_Type = skb->data[ETH_HLEN+1]; in nsDMA_tx_packet() 2845 Descriptor_type = skb->data[ETH_HLEN+1+1+2]; in nsDMA_tx_packet() 2846 Key_info = (skb->data[ETH_HLEN+1+1+2+1] << 8)|(skb->data[ETH_HLEN+1+1+2+2]); in nsDMA_tx_packet() 3167 memcpy(pDevice->sTxEthHeader.abyDstAddr, (PBYTE)pbySkbData, ETH_HLEN); in bRelayPacketSend()
|
/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 449 length += ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 452 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data() 459 length = proto_type + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 411 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu() 603 hw->rx_jumbo_th = (hw->max_frame_size + ETH_HLEN + in atl1e_sw_init() 728 + ETH_HLEN + VLAN_HLEN in atl1e_init_ring_resources() 943 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1125 AT_WRITE_REG(hw, REG_MTU, hw->max_frame_size + ETH_HLEN + in atl1e_configure() 1354 u16 head_len = ETH_HLEN; in atl1e_rx_checksum() 1889 if (skb_network_offset(skb) != ETH_HLEN) in atl1e_xmit_frame()
|