Home
last modified time | relevance | path

Searched refs:rx_buf_size (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Ddma.c201 int rx_buf_size = MT_RX_BUF_SIZE; in mt7615_dma_init() local
206 rx_buf_size *= 2; in mt7615_dma_init()
248 MT7615_RX_MCU_RING_SIZE, rx_buf_size, in mt7615_dma_init()
257 rx_ring_size, rx_buf_size, MT_RX_RING_BASE); in mt7615_dma_init()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Ddma.c227 int rx_buf_size = MT_RX_BUF_SIZE * 2; in mt7915_dma_init() local
285 rx_buf_size, MT_RX_EVENT_RING_BASE); in mt7915_dma_init()
292 rx_buf_size, MT_RX_EVENT_RING_BASE); in mt7915_dma_init()
298 MT7915_RX_RING_SIZE, rx_buf_size, in mt7915_dma_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/moxa/
Dmoxart_ether.c81 priv->rx_buf_size, DMA_FROM_DEVICE); in moxart_mac_free_memory()
149 priv->rx_buf[i] = priv->rx_buf_base + priv->rx_buf_size * i; in moxart_mac_setup_desc_ring()
152 priv->rx_buf_size, in moxart_mac_setup_desc_ring()
245 priv->rx_buf_size, DMA_FROM_DEVICE); in moxart_rx_poll()
495 priv->rx_buf_size = RX_BUF_SIZE; in moxart_mac_probe()
520 priv->rx_buf_base = kmalloc_array(priv->rx_buf_size, RX_DESC_NUM, in moxart_mac_probe()
Dmoxart_ether.h308 unsigned int rx_buf_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_device.c89 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
118 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
197 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
226 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
255 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
284 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
363 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
392 .rx_buf_size = CN6XXX_OQ_BUF_SIZE,
466 .rx_buf_size = CN23XX_OQ_BUF_SIZE,
495 .rx_buf_size = CN23XX_OQ_BUF_SIZE,
Docteon_config.h159 ((cfg)->nic_if_cfg[idx].rx_buf_size)
326 u64 rx_buf_size:16; member
367 u64 rx_buf_size:16;
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-net.c191 unsigned int rx_buf_size; in xlgmac_calc_rx_buf_size() local
198 rx_buf_size = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in xlgmac_calc_rx_buf_size()
199 rx_buf_size = clamp_val(rx_buf_size, XLGMAC_RX_MIN_BUF_SIZE, PAGE_SIZE); in xlgmac_calc_rx_buf_size()
201 rx_buf_size = (rx_buf_size + XLGMAC_RX_BUF_ALIGN - 1) & in xlgmac_calc_rx_buf_size()
204 return rx_buf_size; in xlgmac_calc_rx_buf_size()
654 pdata->rx_buf_size = ret; in xlgmac_open()
826 pdata->rx_buf_size = ret; in xlgmac_change_mtu()
Ddwc-xlgmac.h596 unsigned int rx_buf_size; member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Ddp_tx.h37 int rx_buf_size,
/kernel/linux/linux-5.10/include/linux/
Dfs_uart_pd.h56 u8 rx_buf_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c299 u32 rx_buf_size; in hns_ae_set_mtu() local
305 rx_buf_size = 2048; in hns_ae_set_mtu()
307 rx_buf_size = 4096; in hns_ae_set_mtu()
309 rx_buf_size = mac_cb->dsaf_dev->buf_size; in hns_ae_set_mtu()
312 ret = hns_mac_set_mtu(mac_cb, new_mtu, rx_buf_size); in hns_ae_set_mtu()
318 q->rx_ring.buf_size = rx_buf_size; in hns_ae_set_mtu()
319 hns_rcb_set_rx_ring_bs(q, rx_buf_size); in hns_ae_set_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.c94 dma_unmap_page(dev, addr, priv->rx_buf_size, in dpaa2_eth_free_rx_fd()
152 dma_unmap_page(dev, sg_addr, priv->rx_buf_size, in dpaa2_eth_build_frag_skb()
193 sg_length, priv->rx_buf_size); in dpaa2_eth_build_frag_skb()
220 dma_unmap_page(dev, buf_array[i], priv->rx_buf_size, in dpaa2_eth_free_bufs()
394 priv->rx_buf_size, DMA_BIDIRECTIONAL); in dpaa2_eth_run_xdp()
405 priv->rx_buf_size, DMA_BIDIRECTIONAL); in dpaa2_eth_run_xdp()
447 dma_sync_single_for_cpu(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx()
466 dma_unmap_page(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx()
472 dma_unmap_page(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx()
541 dma_sync_single_for_cpu(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx_err()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/
Dhip04_eth.c239 unsigned int rx_buf_size; member
594 skb = build_skb(buf, priv->rx_buf_size); in hip04_rx_poll()
626 buf = netdev_alloc_frag(priv->rx_buf_size); in hip04_rx_poll()
861 priv->rx_buf_size = RX_BUF_SIZE + in hip04_alloc_ring()
864 priv->rx_buf[i] = netdev_alloc_frag(priv->rx_buf_size); in hip04_alloc_ring()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dops.c769 trans_cfg.rx_buf_size = rb_size_default; in iwl_op_mode_mvm_start()
772 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_mvm_start()
775 trans_cfg.rx_buf_size = IWL_AMSDU_8K; in iwl_op_mode_mvm_start()
778 trans_cfg.rx_buf_size = IWL_AMSDU_12K; in iwl_op_mode_mvm_start()
783 trans_cfg.rx_buf_size = rb_size_default; in iwl_op_mode_mvm_start()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c298 unsigned int rx_buf_size; in xgbe_calc_rx_buf_size() local
300 rx_buf_size = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in xgbe_calc_rx_buf_size()
301 rx_buf_size = clamp_val(rx_buf_size, XGBE_RX_MIN_BUF_SIZE, PAGE_SIZE); in xgbe_calc_rx_buf_size()
303 rx_buf_size = (rx_buf_size + XGBE_RX_BUF_ALIGN - 1) & in xgbe_calc_rx_buf_size()
306 return rx_buf_size; in xgbe_calc_rx_buf_size()
1270 pdata->rx_buf_size = xgbe_calc_rx_buf_size(netdev, netdev->mtu); in xgbe_alloc_memory()
2062 pdata->rx_buf_size = ret; in xgbe_change_mtu()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dmad.c1604 int rx_buf_size, tx_buf_size; in mlx4_ib_alloc_pv_bufs() local
1628 rx_buf_size = sizeof (struct mlx4_tunnel_mad); in mlx4_ib_alloc_pv_bufs()
1631 rx_buf_size = sizeof (struct mlx4_mad_rcv_buf); in mlx4_ib_alloc_pv_bufs()
1636 tun_qp->ring[i].addr = kmalloc(rx_buf_size, GFP_KERNEL); in mlx4_ib_alloc_pv_bufs()
1641 rx_buf_size, in mlx4_ib_alloc_pv_bufs()
1685 rx_buf_size, DMA_FROM_DEVICE); in mlx4_ib_alloc_pv_bufs()
1700 int rx_buf_size, tx_buf_size; in mlx4_ib_free_pv_qp_bufs() local
1708 rx_buf_size = sizeof (struct mlx4_tunnel_mad); in mlx4_ib_free_pv_qp_bufs()
1711 rx_buf_size = sizeof (struct mlx4_mad_rcv_buf); in mlx4_ib_free_pv_qp_bufs()
1718 rx_buf_size, DMA_FROM_DEVICE); in mlx4_ib_free_pv_qp_bufs()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c449 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_tpa_start()
694 return kmalloc(fp->rx_buf_size + NET_SKB_PAD, gfp_mask); in bnx2x_frag_alloc()
781 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_tpa_stop()
787 if (pad + len > fp->rx_buf_size) { in bnx2x_tpa_stop()
789 pad, len, fp->rx_buf_size); in bnx2x_tpa_stop()
841 fp->rx_buf_size, in bnx2x_alloc_rx_data()
1048 fp->rx_buf_size, in bnx2x_rx_int()
1374 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_free_tpa_pool()
1410 "mtu %d rx_buf_size %d\n", bp->dev->mtu, fp->rx_buf_size); in bnx2x_init_rx_rings()
1551 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_free_rx_bds()
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dhso.c148 unsigned short rx_buf_size; member
709 odev->rx_buf_size = 0; in hso_net_open()
863 odev->rx_buf_size, ip_pkt + buffer_offset, in packetizeRx()
866 odev->rx_buf_size += temp_bytes; in packetizeRx()
901 odev->rx_buf_size = sizeof(struct iphdr); in packetizeRx()
924 odev->rx_buf_size += temp_bytes; in packetizeRx()
939 odev->net->stats.rx_bytes += odev->rx_buf_size; in packetizeRx()
941 odev->rx_buf_size = 0; in packetizeRx()
962 odev->rx_buf_size = 0; in packetizeRx()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede.h215 u16 rx_buf_size; member
350 u32 rx_buf_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/
Dag71xx.c353 u16 rx_buf_size; member
1250 ag->rx_buf_size, DMA_FROM_DEVICE); in ag71xx_ring_rx_clean()
1257 return ag->rx_buf_size + in ag71xx_buffer_size()
1276 buf->rx.dma_addr = dma_map_single(&ag->pdev->dev, data, ag->rx_buf_size, in ag71xx_fill_rx_buf()
1475 ag->rx_buf_size = in ag71xx_open()
1696 ag->rx_buf_size, DMA_FROM_DEVICE); in ag71xx_rx_packets()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
Dctxt-info.c235 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_init()
Dctxt-info-gen3.c134 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_gen3_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dskge.c1017 skb = __netdev_alloc_skb(dev, skge->rx_buf_size + NET_IP_ALIGN, in skge_rx_fill()
1023 if (skge_rx_setup(skge, e, skb, skge->rx_buf_size) < 0) { in skge_rx_fill()
2542 skge->rx_buf_size = dev->mtu + ETH_HLEN; in skge_up()
2544 skge->rx_buf_size = RX_BUF_SIZE; in skge_up()
3055 if (len > skge->rx_buf_size) in skge_rx_get()
3081 skge_rx_reuse(e, skge->rx_buf_size); in skge_rx_get()
3086 nskb = netdev_alloc_skb_ip_align(dev, skge->rx_buf_size); in skge_rx_get()
3095 if (skge_rx_setup(skge, e, nskb, skge->rx_buf_size) < 0) { in skge_rx_get()
3138 skge_rx_reuse(e, skge->rx_buf_size); in skge_rx_get()
/kernel/linux/linux-5.10/drivers/char/pcmcia/
Dsynclink_cs.c161 int rx_buf_size; /* size in bytes of single rx buffer */ member
834 RXBUF *buf = (RXBUF*)(info->rx_buf + (info->rx_put * info->rx_buf_size)); in rx_ready_hdlc()
2621 info->rx_buf_size = sizeof(RXBUF) + info->max_frame_size; in rx_alloc_buffers()
2624 info->rx_buf_total_size = info->rx_buf_size * 8; in rx_alloc_buffers()
2631 info->rx_buf_count = info->rx_buf_total_size / info->rx_buf_size; in rx_alloc_buffers()
3623 buf = (RXBUF*)(info->rx_buf + (i * info->rx_buf_size)); in rx_reset_buffers()
3644 buf = (RXBUF*)(info->rx_buf + (info->rx_get * info->rx_buf_size)); in rx_get_frame()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Ddavinci_emac.c325 u32 rx_buf_size; member
869 struct sk_buff *skb = netdev_alloc_skb(priv->ndev, priv->rx_buf_size); in emac_rx_alloc()
1431 priv->rx_buf_size = EMAC_DEF_MAX_FRAME_SIZE + NET_IP_ALIGN; in emac_dev_open()

123