Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/drivers/net/usb/
Dcdc_eem.c79 dev->net->hard_header_len += EEM_HEAD + ETH_FCS_LEN + VLAN_HLEN; in eem_bind()
103 if (!((len + EEM_HEAD + ETH_FCS_LEN) % dev->maxpacket)) in eem_tx_fixup()
110 if ((tailroom >= ETH_FCS_LEN + padlen) && in eem_tx_fixup()
115 > (EEM_HEAD + ETH_FCS_LEN + padlen)) { in eem_tx_fixup()
125 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
276 if (len < (ETH_HLEN + ETH_FCS_LEN)) in eem_rx_fixup()
303 + len - ETH_FCS_LEN); in eem_rx_fixup()
305 - ETH_FCS_LEN); in eem_rx_fixup()
308 + len - ETH_FCS_LEN); in eem_rx_fixup()
311 skb_trim(skb2, len - ETH_FCS_LEN); in eem_rx_fixup()
/linux-6.6.21/drivers/usb/gadget/function/
Df_eem.c356 if (((len + EEM_HLEN + ETH_FCS_LEN) % in->maxpacket) == 0) in eem_wrap()
359 if ((tailroom >= (ETH_FCS_LEN + padlen)) && in eem_wrap()
363 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
507 || (len < (ETH_HLEN + ETH_FCS_LEN))) { in eem_unwrap()
515 - ETH_FCS_LEN); in eem_unwrap()
517 skb->data, len - ETH_FCS_LEN); in eem_unwrap()
520 - ETH_FCS_LEN); in eem_unwrap()
533 skb_trim(skb2, len - ETH_FCS_LEN); in eem_unwrap()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.h41 #define ETHSW_MAX_FRAME_LENGTH (DPAA2_MFL - VLAN_ETH_HLEN - ETH_FCS_LEN)
42 #define ETHSW_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN + ETH_FCS_LEN)
/linux-6.6.21/drivers/net/ethernet/ti/icssg/
Dicssg_prueth.h41 #define PRUETH_MAX_MTU (2000 - ETH_HLEN - ETH_FCS_LEN)
43 #define PRUETH_MAX_PKT_SIZE (PRUETH_MAX_MTU + ETH_HLEN + ETH_FCS_LEN)
Dicssg_mii_rt.h76 #define PRUSS_MII_RT_RX_FRMS_MAX (VLAN_ETH_FRAME_LEN + ETH_FCS_LEN)
Dicssg_mii_cfg.c30 mtu += (ETH_HLEN + ETH_FCS_LEN); in icssg_mii_update_mtu()
/linux-6.6.21/drivers/net/vmxnet3/
Dvmxnet3_xdp.h24 2 * VLAN_HLEN - ETH_FCS_LEN)
/linux-6.6.21/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c424 length += ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data()
427 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data()
432 length = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_recv_data()
436 length = proto_type + ETH_HLEN + ETH_FCS_LEN; in xemaclite_recv_data()
596 len = ETH_FRAME_LEN + ETH_FCS_LEN; in xemaclite_rx_handler()
/linux-6.6.21/drivers/net/fjes/
Dfjes_hw.h65 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN)
70 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
/linux-6.6.21/include/uapi/linux/
Dif_ether.h38 #define ETH_FCS_LEN 4 /* Octets in the FCS */ macro
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_dev.h26 #define HINIC_MAX_MTU_SIZE (HINIC_MAX_JUMBO_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN)
/linux-6.6.21/drivers/net/ethernet/mscc/
Docelot_fdma.c370 if (pskb_trim(skb, skb->len - ETH_FCS_LEN)) in ocelot_fdma_receive_skb()
644 int needed_tailroom = max_t(int, ETH_FCS_LEN - skb_tailroom(skb), 0); in ocelot_fdma_prepare_skb()
667 skb_put(skb, ETH_FCS_LEN); in ocelot_fdma_prepare_skb()
795 dev->needed_tailroom = ETH_FCS_LEN; in ocelot_fdma_netdev_init()
/linux-6.6.21/drivers/net/ethernet/marvell/octeon_ep/
Doctep_config.h48 #define OCTEP_MAX_MTU (10000 - (ETH_HLEN + ETH_FCS_LEN))
/linux-6.6.21/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h12 #define MLX5V_ETH_HARD_MTU (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcore.h37 #define BRCMF_TX_IOCTL_MAX_MSG_SIZE (ETH_FRAME_LEN+ETH_FCS_LEN)
/linux-6.6.21/drivers/net/ethernet/actions/
Dowl-emac.h21 #define OWL_EMAC_RX_FRAME_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
/linux-6.6.21/include/linux/
Dethtool.h1013 return (ETH_ZLEN + ETH_FCS_LEN) * (1 + val_add) - ETH_FCS_LEN; in ethtool_mm_frag_size_add_to_min()
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dbcm4908_enet.c37 ETH_FCS_LEN + 4) /* 32 */
41 ENET_MTU_MAX + ETH_FCS_LEN + 4)
629 skb_put(skb, len - ETH_FCS_LEN); in bcm4908_enet_poll_rx()
/linux-6.6.21/drivers/net/dsa/sja1105/
Dsja1105_flower.c87 ETH_FCS_LEN; in sja1105_setup_bcast_policer()
159 ETH_FCS_LEN; in sja1105_setup_tc_policer()
/linux-6.6.21/drivers/net/ethernet/intel/igbvf/
Dnetdev.c1632 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN; in igbvf_sw_init()
1634 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_sw_init()
1635 adapter->min_frame_size = ETH_ZLEN + ETH_FCS_LEN; in igbvf_sw_init()
2402 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu()
2431 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu()
2432 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu()
2434 ETH_FCS_LEN; in igbvf_change_mtu()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dvnic_main.c132 stats->netstats.tx_bytes += skb->len + ETH_FCS_LEN; in hfi1_vnic_update_tx_counters()
161 stats->netstats.rx_bytes += skb->len + ETH_FCS_LEN; in hfi1_vnic_update_rx_counters()
/linux-6.6.21/drivers/net/ethernet/qualcomm/emac/
Demac.c677 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
679 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in emac_probe()
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/
Dbcmasp_intf.c301 if (!nr_frags && size < (ETH_ZLEN + ETH_FCS_LEN)) { in bcmasp_xmit()
302 if (skb_put_padto(skb, ETH_ZLEN + ETH_FCS_LEN)) in bcmasp_xmit()
564 skb_trim(skb, len - ETH_FCS_LEN); in bcmasp_rx_poll()
565 len -= ETH_FCS_LEN; in bcmasp_rx_poll()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c516 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in hns_mac_set_mtu()
525 if (new_frm < (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)) in hns_mac_set_mtu()
526 new_frm = (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN); in hns_mac_set_mtu()
/linux-6.6.21/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c425 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu()
603 VLAN_HLEN + ETH_FCS_LEN + 7) >> 3; in atl1e_sw_init()
728 + ETH_FCS_LEN; in atl1e_init_ring_resources()
939 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx()
1123 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure()
2275 (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in atl1e_init_netdev()

1234567