Home
last modified time | relevance | path

Searched refs:hard_mtu (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/drivers/net/usb/
Drndis_host.c335 dev->hard_mtu = net->mtu + net->hard_header_len; in generic_rndis_bind()
345 dev->rx_urb_size = dev->hard_mtu + (dev->maxpacket + 1); in generic_rndis_bind()
358 if (tmp < dev->hard_mtu) { in generic_rndis_bind()
362 dev->hard_mtu, tmp); in generic_rndis_bind()
369 dev->hard_mtu, tmp, tmp - net->hard_header_len); in generic_rndis_bind()
370 dev->hard_mtu = tmp; in generic_rndis_bind()
371 net->mtu = dev->hard_mtu - net->hard_header_len; in generic_rndis_bind()
377 dev->hard_mtu, tmp, dev->rx_urb_size, in generic_rndis_bind()
Dkalmia.c145 dev->hard_mtu = 1400; in kalmia_bind()
146 dev->rx_urb_size = dev->hard_mtu * 10; // Found as optimal after testing in kalmia_bind()
Dcx82310_eth.c168 dev->hard_mtu = CX82310_MTU + 2; in cx82310_bind()
172 dev->partial_data = (unsigned long) kmalloc(dev->hard_mtu, GFP_KERNEL); in cx82310_bind()
Dusbnet.c360 if (!dev->rx_urb_size || !dev->hard_mtu) in usbnet_update_max_qlen()
365 dev->tx_qlen = MAX_QUEUE_MEMORY / dev->hard_mtu; in usbnet_update_max_qlen()
375 dev->tx_qlen = 5 * MAX_QUEUE_MEMORY / dev->hard_mtu; in usbnet_update_max_qlen()
395 int old_hard_mtu = dev->hard_mtu; in usbnet_change_mtu()
403 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_change_mtu()
405 dev->rx_urb_size = dev->hard_mtu; in usbnet_change_mtu()
1734 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_probe()
1768 if (net->mtu > (dev->hard_mtu - net->hard_header_len)) in usbnet_probe()
1769 net->mtu = dev->hard_mtu - net->hard_header_len; in usbnet_probe()
1789 dev->rx_urb_size = dev->hard_mtu; in usbnet_probe()
Dgl620a.c180 dev->hard_mtu = GL_RCV_BUF_SIZE; in genelink_bind()
Dint51x1.c150 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in int51x1_bind()
Dnet1080.c351 skb->len, dev->net->hard_header_len, dev->hard_mtu, in net1080_rx_fixup()
482 dev->hard_mtu = NC_MAX_PACKET; in net1080_bind()
Dasix_devices.c1174 if (dev->hard_mtu < 2048) { in ax88178_set_mfb()
1177 } else if (dev->hard_mtu < 4096) { in ax88178_set_mfb()
1180 } else if (dev->hard_mtu < 8192) { in ax88178_set_mfb()
1183 } else if (dev->hard_mtu < 16384) { in ax88178_set_mfb()
1213 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88178_change_mtu()
Dcdc_eem.c80 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in eem_bind()
Dch9200.c352 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in ch9200_bind()
Dsr9700.c335 dev->hard_mtu = netdev->mtu + netdev->hard_header_len; in sr9700_bind()
Ddm9601.c366 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in dm9601_bind()
Dcdc_ether.c237 dev->hard_mtu = le16_to_cpu(info->ether->wMaxSegmentSize); in usbnet_generic_cdc_bind()
Daqc111.c428 dev->hard_mtu = net->mtu + net->hard_header_len; in aqc111_change_mtu()
1137 pkt_len > (dev->hard_mtu + AQ_RX_HW_PAD)) { in aqc111_rx_fixup()
Dsierra_net.c720 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in sierra_net_bind()
Dqmi_wwan.c787 dev->hard_mtu = le16_to_cpu(cdc_ether->wMaxSegmentSize); in qmi_wwan_bind()
Dax88179_178a.c930 dev->hard_mtu = net->mtu + net->hard_header_len; in ax88179_change_mtu()
Dsmsc95xx.c1223 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc95xx_bind()
Dcdc_ncm.c462 dev->hard_mtu = ctx->tx_max; in cdc_ncm_update_rxtx_max()
Dsmsc75xx.c1503 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
/linux-6.1.9/include/linux/usb/
Dusbnet.h45 u32 hard_mtu; /* count any extra framing */ member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den.h72 #define MLX5E_HW2SW_MTU(params, hwmtu) ((hwmtu) - ((params)->hard_mtu))
73 #define MLX5E_SW2HW_MTU(params, swmtu) ((swmtu) + ((params)->hard_mtu))
329 int hard_mtu; member
Den_rep.c693 params->hard_mtu = MLX5E_ETH_HARD_MTU; in mlx5e_build_rep_params()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dptp.c510 params->hard_mtu = orig->hard_mtu; in mlx5e_ptp_build_params()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dipoib.c72 params->hard_mtu = MLX5_IB_GRH_BYTES + MLX5_IPOIB_HARD_LEN; in mlx5i_build_nic_params()

12