Home
last modified time | relevance | path

Searched refs:rx_buf_len (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_txrx.h54 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 Dice_base.c396 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 Di40e_txrx.h132 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 Di40e_adminq.h27 u16 rx_buf_len; /* Admin Receive Queue buffer length */ member
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/
A Diavf_txrx.h119 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 Diavf_adminq.h27 u16 rx_buf_len; /* Admin Receive Queue buffer length */ member
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/
A Digb.h166 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 Dixgbe.h93 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 Drings.c93 (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 Dhns3_ethtool.c1122 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 Dhns3_ethtool.h34 u32 rx_buf_len; member
A Dhclge_mbx.h205 __le16 rx_buf_len; member
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3vf/
A Dhclgevf_main.h163 u16 rx_buf_len; member
239 u16 rx_buf_len; member
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ethtool.c374 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 Defx_common.c369 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 Defx_common.c370 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 Des58x_core.c1704 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 Dtxrx_edma.c155 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 Dtxrx.c260 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 Di2c-designware-core.h264 u32 rx_buf_len; member
A Di2c-designware-master.c519 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 Dw5100.c850 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 Dhclge_main.h341 u16 rx_buf_len; member
876 u16 rx_buf_len; member
/linux-6.3-rc2/drivers/net/ethernet/broadcom/genet/
A Dbcmgenet.h590 unsigned int rx_buf_len; member
/linux-6.3-rc2/include/linux/
A Dethtool.h80 u32 rx_buf_len; member

Completed in 117 milliseconds

12