Home
last modified time | relevance | path

Searched refs:ETH_FCS_LEN (Results 1 – 25 of 46) sorted by relevance

12

/linux-3.4.99/drivers/net/usb/
Dcdc_eem.c95 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN; in eem_bind()
119 if (!((len + EEM_HEAD + ETH_FCS_LEN) % dev->maxpacket)) in eem_tx_fixup()
126 if ((tailroom >= ETH_FCS_LEN + padlen) && in eem_tx_fixup()
131 > (EEM_HEAD + ETH_FCS_LEN + padlen)) { in eem_tx_fixup()
141 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
288 if (len < (ETH_HLEN + ETH_FCS_LEN)) in eem_rx_fixup()
315 + len - ETH_FCS_LEN); in eem_rx_fixup()
317 - ETH_FCS_LEN); in eem_rx_fixup()
320 + len - ETH_FCS_LEN); in eem_rx_fixup()
323 skb_trim(skb2, len - ETH_FCS_LEN); in eem_rx_fixup()
/linux-3.4.99/drivers/usb/gadget/
Df_eem.c373 if (((len + EEM_HLEN + ETH_FCS_LEN) % in->maxpacket) == 0) in eem_wrap()
376 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap()
381 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
498 || (len < (ETH_HLEN + ETH_FCS_LEN))) { in eem_unwrap()
506 - ETH_FCS_LEN); in eem_unwrap()
508 skb->data, len - ETH_FCS_LEN); in eem_unwrap()
511 - ETH_FCS_LEN); in eem_unwrap()
524 skb_trim(skb2, len - ETH_FCS_LEN); in eem_unwrap()
/linux-3.4.99/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c441 if (proto_type > (ETH_FRAME_LEN + ETH_FCS_LEN)) { in xemaclite_recv_data()
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()
456 length = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_recv_data()
459 length = proto_type + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data()
615 len = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_rx_handler()
/linux-3.4.99/include/linux/
Dif_ether.h36 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
/linux-3.4.99/drivers/net/ethernet/adi/
Dbfin_mac.c1079 unsigned char fcs[ETH_FCS_LEN + 1]; in bfin_mac_rx()
1113 len -= ETH_FCS_LEN; in bfin_mac_rx()
1137 for (i = 0; i < ETH_FCS_LEN; i++) in bfin_mac_rx()
1139 skb->csum = csum_partial(fcs, ETH_FCS_LEN + 1, skb->csum); in bfin_mac_rx()
1141 for (i = 0; i < ETH_FCS_LEN; i++) in bfin_mac_rx()
1143 skb->csum = csum_partial(fcs, ETH_FCS_LEN, skb->csum); in bfin_mac_rx()
/linux-3.4.99/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h131 #define MAXIMUM_ETHERNET_VLAN_SIZE (VLAN_ETH_FRAME_LEN + ETH_FCS_LEN)
Dixgbevf_main.c1360 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_configure_rx()
1640 rxdctl |= ((netdev->mtu + ETH_HLEN + ETH_FCS_LEN) | in ixgbevf_up_complete()
3183 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_change_mtu()
/linux-3.4.99/drivers/net/ethernet/intel/igbvf/
Dnetdev.c1537 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN; in igbvf_sw_init()
1539 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_sw_init()
1540 adapter->min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in igbvf_sw_init()
2318 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu()
2360 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu()
2361 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu()
2363 ETH_FCS_LEN; in igbvf_change_mtu()
/linux-3.4.99/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c411 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu()
413 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in atl1e_change_mtu()
604 VLAN_HLEN + ETH_FCS_LEN + 7) >> 3; in atl1e_sw_init()
729 + ETH_FCS_LEN; in atl1e_init_ring_resources()
943 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx()
1126 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure()
/linux-3.4.99/drivers/net/ethernet/intel/e1000e/
Dnetdev.c3038 } else if (adapter->netdev->mtu > ETH_FRAME_LEN + ETH_FCS_LEN) { in e1000_configure_rx()
3392 if (adapter->max_frame_size > ETH_FRAME_LEN + ETH_FCS_LEN) { in e1000e_reset()
3412 ETH_FCS_LEN) * 2; in e1000e_reset()
3703 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN; in e1000_sw_init()
3705 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in e1000_sw_init()
3706 adapter->min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in e1000_sw_init()
5234 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in e1000_change_mtu()
5237 if ((max_frame > ETH_FRAME_LEN + ETH_FCS_LEN) && in e1000_change_mtu()
5244 if ((new_mtu < ETH_ZLEN + ETH_FCS_LEN + VLAN_HLEN) || in e1000_change_mtu()
5282 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in e1000_change_mtu()
[all …]
/linux-3.4.99/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c384 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_set_all()
580 int max_frame = dev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_ieee_setets()
Dixgbe.h86 #define MAXIMUM_ETHERNET_VLAN_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)
Dixgbe_main.c3032 ETH_FCS_LEN + VLAN_HLEN) | IXGBE_RXDCTL_RLPML_EN); in ixgbe_configure_rx_ring()
3134 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_set_rx_buffer_len()
3556 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_configure_dcb()
3630 tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING; in ixgbe_hpbthresh()
3694 tc = dev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_lpbthresh()
4716 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_change_mtu()
5176 hwstats->gotc -= (xon_off_tot * (ETH_ZLEN + ETH_FCS_LEN)); in ixgbe_update_stats()
Dixgbe_sriov.c304 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_set_vf_lpe()
/linux-3.4.99/drivers/net/ethernet/atheros/atl1c/
Datl1c.h75 #define AT_RX_BUF_SIZE (ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)
Datl1c_main.c483 roundup(mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN, 8) : AT_RX_BUF_SIZE; in atl1c_set_rxbufsize()
526 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1c_change_mtu()
528 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in atl1c_change_mtu()
1539 VLAN_HLEN + ETH_FCS_LEN); in atl1c_configure()
1900 skb_put(skb, length - ETH_FCS_LEN); in atl1c_clean_rx_irq()
/linux-3.4.99/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_cdc.c46 #define CDC_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
/linux-3.4.99/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1720 length = (rx_desc->rx_words_eob) - 3 - ETH_FCS_LEN; in pch_gbe_clean_rx()
2025 hw->mac.max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_sw_init()
2026 hw->mac.min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in pch_gbe_sw_init()
2264 max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_change_mtu()
2265 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in pch_gbe_change_mtu()
/linux-3.4.99/drivers/net/ethernet/
Ds6gmac.c576 writel(dev->mtu && (dev->mtu < (S6_MAX_FRLEN - ETH_HLEN-ETH_FCS_LEN)) ? in s6gmac_init_device()
577 dev->mtu+ETH_HLEN+ETH_FCS_LEN : S6_MAX_FRLEN, in s6gmac_init_device()
/linux-3.4.99/drivers/net/ethernet/atheros/atlx/
Datl1.c953 hw->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1_sw_init()
954 hw->min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in atl1_sw_init()
2022 skb_put(skb, length - ETH_FCS_LEN); in atl1_intr_rx()
2659 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1_change_mtu()
2661 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in atl1_change_mtu()
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c422 priv->rx_skb_size + ETH_FCS_LEN, in mlx4_en_set_pauseparam()
/linux-3.4.99/drivers/net/ethernet/calxeda/
Dxgmac.c495 len -= ETH_FCS_LEN; in desc_get_rx_frame_len()
716 bfsize = ALIGN(dev->mtu + ETH_HLEN + ETH_FCS_LEN + NET_IP_ALIGN + 64, in xgmac_dma_desc_rings_init()
/linux-3.4.99/drivers/net/ethernet/pasemi/
Dpasemi_mac.c1699 mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_change_mtu()
1814 mac->bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_probe()
/linux-3.4.99/drivers/net/ethernet/intel/
De100.c1084 nic->blank_rfd.size = cpu_to_le16(VLAN_ETH_FRAME_LEN + ETH_FCS_LEN); in e100_get_defaults()
1912 #define RFD_BUF_LEN (sizeof(struct rfd) + VLAN_ETH_FRAME_LEN + ETH_FCS_LEN)
2104 + ETH_FCS_LEN); in e100_rx_clean()
/linux-3.4.99/drivers/net/ethernet/intel/e1000/
De1000_main.c621 } else if (hw->max_frame_size > ETH_FRAME_LEN + ETH_FCS_LEN) { in e1000_reset()
642 ETH_FCS_LEN) * 2; in e1000_reset()
3534 if (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN)) { in e1000_change_mtu()
3569 ((max_frame == (ETH_FRAME_LEN + ETH_FCS_LEN)) || in e1000_change_mtu()

12