Searched refs:hw_mtu (Results 1 – 3 of 3) sorted by relevance
330 unsigned int hw_mtu; member
1036 enet_writel(priv, priv->hw_mtu, ENET_RXMAXLEN_REG); in bcm_enet_open()1037 enet_writel(priv, priv->hw_mtu, ENET_TXMAXLEN_REG); in bcm_enet_open()1646 priv->hw_mtu = actual_mtu; in compute_hw_mtu()
5809 int hw_mtu; in netdev_change_mtu() local5822 hw_mtu = new_mtu + ETHERNET_HEADER_SIZE + 4; in netdev_change_mtu()5823 if (hw_mtu > MAX_RX_BUF_SIZE) in netdev_change_mtu()5825 if (hw_mtu > REGULAR_RX_BUF_SIZE) { in netdev_change_mtu()5827 hw_mtu = MAX_RX_BUF_SIZE; in netdev_change_mtu()5830 hw_mtu = REGULAR_RX_BUF_SIZE; in netdev_change_mtu()5832 hw_mtu = (hw_mtu + 3) & ~3; in netdev_change_mtu()5833 hw_priv->mtu = hw_mtu; in netdev_change_mtu()