/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_txrx.h | 54 static inline int ice_compute_pad(int rx_buf_len) in ice_compute_pad() argument 58 half_page_size = ALIGN(rx_buf_len, PAGE_SIZE / 2); in ice_compute_pad() 59 return SKB_WITH_OVERHEAD(half_page_size) - rx_buf_len; in ice_compute_pad() 70 int rx_buf_len; in ice_skb_pad() local 80 rx_buf_len = ICE_RXBUF_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in ice_skb_pad() 82 rx_buf_len = ICE_RXBUF_1536; in ice_skb_pad() 85 rx_buf_len -= NET_IP_ALIGN; in ice_skb_pad() 87 return ice_compute_pad(rx_buf_len); in ice_skb_pad() 341 u16 rx_buf_len; member 459 if (ring->rx_buf_len > (PAGE_SIZE / 2)) in ice_rx_pg_order()
|
A D | ice_base.c | 396 rlan_ctx.dbuf = ring->rx_buf_len >> ICE_RLAN_CTX_DBUF_S; in ice_setup_rx_ctx() 443 chain_len * ring->rx_buf_len); in ice_setup_rx_ctx() 498 ring->rx_buf_len = ring->vsi->rx_buf_len; in ice_vsi_cfg_rxq() 506 ring->vsi->rx_buf_len); in ice_vsi_cfg_rxq() 512 ring->rx_buf_len = in ice_vsi_cfg_rxq() 530 ring->vsi->rx_buf_len); in ice_vsi_cfg_rxq()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/ |
A D | i40e_txrx.h | 132 static inline int i40e_compute_pad(int rx_buf_len) in i40e_compute_pad() argument 136 page_size = ALIGN(rx_buf_len, PAGE_SIZE / 2); in i40e_compute_pad() 137 pad_size = SKB_WITH_OVERHEAD(page_size) - rx_buf_len; in i40e_compute_pad() 144 int rx_buf_len; in i40e_skb_pad() local 154 rx_buf_len = I40E_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in i40e_skb_pad() 156 rx_buf_len = I40E_RXBUFFER_1536; in i40e_skb_pad() 159 rx_buf_len -= NET_IP_ALIGN; in i40e_skb_pad() 161 return i40e_compute_pad(rx_buf_len); in i40e_skb_pad() 348 u16 rx_buf_len; member 446 if (ring->rx_buf_len > (PAGE_SIZE / 2)) in i40e_rx_pg_order()
|
A D | i40e_adminq.h | 27 u16 rx_buf_len; /* Admin Receive Queue buffer length */ member
|
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/ |
A D | iavf_txrx.h | 119 static inline int iavf_compute_pad(int rx_buf_len) in iavf_compute_pad() argument 123 page_size = ALIGN(rx_buf_len, PAGE_SIZE / 2); in iavf_compute_pad() 124 pad_size = SKB_WITH_OVERHEAD(page_size) - rx_buf_len; in iavf_compute_pad() 131 int rx_buf_len; in iavf_skb_pad() local 141 rx_buf_len = IAVF_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in iavf_skb_pad() 143 rx_buf_len = IAVF_RXBUFFER_1536; in iavf_skb_pad() 146 rx_buf_len -= NET_IP_ALIGN; in iavf_skb_pad() 148 return iavf_compute_pad(rx_buf_len); in iavf_skb_pad() 350 u16 rx_buf_len; member 435 if (ring->rx_buf_len > (PAGE_SIZE / 2)) in iavf_rx_pg_order()
|
A D | iavf_adminq.h | 27 u16 rx_buf_len; /* Admin Receive Queue buffer length */ member
|
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/ |
A D | igb.h | 166 static inline int igb_compute_pad(int rx_buf_len) in igb_compute_pad() argument 170 page_size = ALIGN(rx_buf_len, PAGE_SIZE / 2); in igb_compute_pad() 171 pad_size = SKB_WITH_OVERHEAD(page_size) - rx_buf_len; in igb_compute_pad() 178 int rx_buf_len; in igb_skb_pad() local 188 rx_buf_len = IGB_RXBUFFER_3072 + SKB_DATA_ALIGN(NET_IP_ALIGN); in igb_skb_pad() 190 rx_buf_len = IGB_RXBUFFER_1536; in igb_skb_pad() 193 rx_buf_len -= NET_IP_ALIGN; in igb_skb_pad() 195 return igb_compute_pad(rx_buf_len); in igb_skb_pad()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe.h | 93 static inline int ixgbe_compute_pad(int rx_buf_len) in ixgbe_compute_pad() argument 97 page_size = ALIGN(rx_buf_len, PAGE_SIZE / 2); in ixgbe_compute_pad() 98 pad_size = SKB_WITH_OVERHEAD(page_size) - rx_buf_len; in ixgbe_compute_pad() 105 int rx_buf_len; in ixgbe_skb_pad() local 115 rx_buf_len = IXGBE_RXBUFFER_3K + SKB_DATA_ALIGN(NET_IP_ALIGN); in ixgbe_skb_pad() 117 rx_buf_len = IXGBE_RXBUFFER_1536; in ixgbe_skb_pad() 120 rx_buf_len -= NET_IP_ALIGN; in ixgbe_skb_pad() 122 return ixgbe_compute_pad(rx_buf_len); in ixgbe_skb_pad() 402 u16 rx_buf_len; member
|
/linux-6.3-rc2/net/ethtool/ |
A D | rings.c | 93 (kr->rx_buf_len && in rings_fill_reply() 94 (nla_put_u32(skb, ETHTOOL_A_RINGS_RX_BUF_LEN, kr->rx_buf_len))) || in rings_fill_reply() 184 ethnl_update_u32(&kernel_ringparam.rx_buf_len, in ethnl_set_rings()
|
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_ethtool.c | 1122 if (kernel_param->rx_buf_len != RX_BUF_LEN_2K && in hns3_check_ringparam() 1123 kernel_param->rx_buf_len != RX_BUF_LEN_4K) { in hns3_check_ringparam() 1157 old_ringparam->rx_buf_len = priv->ring[queue_num].buf_size; in hns3_is_ringparam_changed() 1158 new_ringparam->rx_buf_len = kernel_param->rx_buf_len; in hns3_is_ringparam_changed() 1162 old_ringparam->rx_buf_len == new_ringparam->rx_buf_len) { in hns3_is_ringparam_changed() 1176 h->kinfo.rx_buf_len = rx_buf_len; in hns3_change_rx_buf_len() 1179 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len() 1180 priv->ring[i + h->kinfo.num_tqps].buf_size = rx_buf_len; in hns3_change_rx_buf_len() 1244 old_ringparam.rx_buf_len, new_ringparam.rx_buf_len); in hns3_set_ringparam() 1251 hns3_change_rx_buf_len(ndev, new_ringparam.rx_buf_len); in hns3_set_ringparam() [all …]
|
A D | hns3_ethtool.h | 34 u32 rx_buf_len; member
|
A D | hclge_mbx.h | 205 __le16 rx_buf_len; member
|
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
A D | hclgevf_main.h | 163 u16 rx_buf_len; member 239 u16 rx_buf_len; member
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ethtool.c | 374 kernel_ring->rx_buf_len = pfvf->hw.rbuf_len; in otx2_get_ringparam() 384 u32 rx_buf_len = kernel_ring->rx_buf_len; in otx2_set_ringparam() local 397 if (rx_buf_len && (rx_buf_len < 1536 || rx_buf_len > 32768)) { in otx2_set_ringparam() 427 rx_buf_len == old_rx_buf_len && xqe_size == pfvf->hw.xqe_size) in otx2_set_ringparam() 437 pfvf->hw.rbuf_len = rx_buf_len; in otx2_set_ringparam()
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/ |
A D | efx_common.c | 369 size_t rx_buf_len; in efx_start_datapath() local 378 rx_buf_len = (sizeof(struct efx_rx_page_state) + EFX_XDP_HEADROOM + in efx_start_datapath() 381 if (rx_buf_len <= PAGE_SIZE) { in efx_start_datapath() 395 efx->rx_buffer_order = get_order(rx_buf_len); in efx_start_datapath()
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/ |
A D | efx_common.c | 370 size_t rx_buf_len; in efx_start_datapath() local 379 rx_buf_len = (sizeof(struct efx_rx_page_state) + EFX_XDP_HEADROOM + in efx_start_datapath() 382 if (rx_buf_len <= PAGE_SIZE) { in efx_start_datapath() 396 efx->rx_buffer_order = get_order(rx_buf_len); in efx_start_datapath()
|
/linux-6.3-rc2/drivers/net/can/usb/etas_es58x/ |
A D | es58x_core.c | 1704 u16 rx_buf_len = usb_maxpacket(es58x_dev->udev, es58x_dev->rx_pipe); in es58x_alloc_rx_urbs() local 1711 ret = es58x_alloc_urb(es58x_dev, &urb, &buf, rx_buf_len, in es58x_alloc_rx_urbs() 1717 buf, rx_buf_len, es58x_read_bulk_callback, in es58x_alloc_rx_urbs() 1724 usb_free_coherent(es58x_dev->udev, rx_buf_len, in es58x_alloc_rx_urbs() 1737 __func__, i, rx_buf_len); in es58x_alloc_rx_urbs()
|
/linux-6.3-rc2/drivers/net/wireless/ath/wil6210/ |
A D | txrx_edma.c | 155 unsigned int sz = wil->rx_buf_len; in wil_ring_alloc_skb_edma() 283 dma_unmap_single(dev, pa, wil->rx_buf_len, in wil_move_all_rx_buff_to_free_list() 597 wil->rx_buf_len = rx_large_buf ? in wil_rx_buf_len_init_edma() 642 rc = wil_wmi_cfg_def_rx_offload(wil, wil->rx_buf_len); in wil_rx_init_edma() 860 unsigned int sz = wil->rx_buf_len; in wil_sring_reap_rx_edma()
|
A D | txrx.c | 260 unsigned int sz = wil->rx_buf_len + ETH_HLEN + wil_rx_snaplen(); in wil_vring_alloc_skb() 450 unsigned int sz = wil->rx_buf_len + ETH_HLEN + snaplen; in wil_vring_reap_rx() 1037 wil->rx_buf_len = rx_large_buf ? in wil_rx_buf_len_init() 1039 if (mtu_max > wil->rx_buf_len) { in wil_rx_buf_len_init() 1045 wil->rx_buf_len = mtu_max; in wil_rx_buf_len_init()
|
/linux-6.3-rc2/drivers/i2c/busses/ |
A D | i2c-designware-core.h | 264 u32 rx_buf_len; member
|
A D | i2c-designware-master.c | 519 len = dev->rx_buf_len; in i2c_dw_read() 540 dev->rx_buf_len = len; in i2c_dw_read()
|
/linux-6.3-rc2/drivers/net/ethernet/wiznet/ |
A D | w5100.c | 850 u16 rx_buf_len = w5100_read16(priv, W5100_S0_RX_RSR(priv)); in w5100_rx_skb() local 852 if (rx_buf_len == 0) in w5100_rx_skb() 861 w5100_write16(priv, W5100_S0_RX_RD(priv), offset + rx_buf_len); in w5100_rx_skb()
|
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_main.h | 341 u16 rx_buf_len; member 876 u16 rx_buf_len; member
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/genet/ |
A D | bcmgenet.h | 590 unsigned int rx_buf_len; member
|
/linux-6.3-rc2/include/linux/ |
A D | ethtool.h | 80 u32 rx_buf_len; member
|