Home
last modified time | relevance | path

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

12

/Linux-v5.4/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
/Linux-v5.4/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;
/Linux-v5.4/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
/Linux-v5.4/include/linux/
Dfs_uart_pd.h56 u8 rx_buf_size; member
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c301 u32 rx_buf_size; in hns_ae_set_mtu() local
307 rx_buf_size = 2048; in hns_ae_set_mtu()
309 rx_buf_size = 4096; in hns_ae_set_mtu()
311 rx_buf_size = mac_cb->dsaf_dev->buf_size; in hns_ae_set_mtu()
314 ret = hns_mac_set_mtu(mac_cb, new_mtu, rx_buf_size); in hns_ae_set_mtu()
320 q->rx_ring.buf_size = rx_buf_size; in hns_ae_set_mtu()
321 hns_rcb_set_rx_ring_bs(q, rx_buf_size); in hns_ae_set_mtu()
/Linux-v5.4/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()
873 priv->rx_buf_size = RX_BUF_SIZE + in hip04_alloc_ring()
876 priv->rx_buf[i] = netdev_alloc_frag(priv->rx_buf_size); in hip04_alloc_ring()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dops.c740 trans_cfg.rx_buf_size = rb_size_default; in iwl_op_mode_mvm_start()
743 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_mvm_start()
746 trans_cfg.rx_buf_size = IWL_AMSDU_8K; in iwl_op_mode_mvm_start()
749 trans_cfg.rx_buf_size = IWL_AMSDU_12K; in iwl_op_mode_mvm_start()
754 trans_cfg.rx_buf_size = rb_size_default; in iwl_op_mode_mvm_start()
/Linux-v5.4/drivers/net/usb/
Dhso.c148 unsigned short rx_buf_size; member
710 odev->rx_buf_size = 0; in hso_net_open()
865 odev->rx_buf_size, ip_pkt + buffer_offset, in packetizeRx()
868 odev->rx_buf_size += temp_bytes; in packetizeRx()
903 odev->rx_buf_size = sizeof(struct iphdr); in packetizeRx()
926 odev->rx_buf_size += temp_bytes; in packetizeRx()
941 odev->net->stats.rx_bytes += odev->rx_buf_size; in packetizeRx()
943 odev->rx_buf_size = 0; in packetizeRx()
964 odev->rx_buf_size = 0; in packetizeRx()
/Linux-v5.4/drivers/infiniband/hw/mlx4/
Dmad.c1605 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
1707 rx_buf_size = sizeof (struct mlx4_tunnel_mad); in mlx4_ib_free_pv_qp_bufs()
1710 rx_buf_size = sizeof (struct mlx4_mad_rcv_buf); in mlx4_ib_free_pv_qp_bufs()
1717 rx_buf_size, DMA_FROM_DEVICE); in mlx4_ib_free_pv_qp_bufs()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c449 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_tpa_start()
693 return kmalloc(fp->rx_buf_size + NET_SKB_PAD, gfp_mask); in bnx2x_frag_alloc()
780 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_tpa_stop()
786 if (pad + len > fp->rx_buf_size) { in bnx2x_tpa_stop()
788 pad, len, fp->rx_buf_size); in bnx2x_tpa_stop()
839 fp->rx_buf_size, in bnx2x_alloc_rx_data()
1046 fp->rx_buf_size, in bnx2x_rx_int()
1372 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_free_tpa_pool()
1408 "mtu %d rx_buf_size %d\n", bp->dev->mtu, fp->rx_buf_size); in bnx2x_init_rx_rings()
1549 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_free_rx_bds()
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/
Dqede.h234 u16 rx_buf_size; member
354 u32 rx_buf_size; member
Dqede_main.c1391 rxq->rx_buf_size = NET_IP_ALIGN + ETH_OVERHEAD + edev->ndev->mtu; in qede_alloc_mem_rxq()
1398 if (rxq->rx_buf_size + size > PAGE_SIZE) in qede_alloc_mem_rxq()
1399 rxq->rx_buf_size = PAGE_SIZE - size; in qede_alloc_mem_rxq()
1405 size = size + rxq->rx_buf_size; in qede_alloc_mem_rxq()
2093 rxq->rx_buf_size, in qede_start_queues()
/Linux-v5.4/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()
1343 pdata->rx_buf_size = xgbe_calc_rx_buf_size(netdev, netdev->mtu); in xgbe_alloc_memory()
2145 pdata->rx_buf_size = ret; in xgbe_change_mtu()
Dxgbe-desc.c381 pdata->rx_buf_size); in xgbe_map_rx_buffer()
/Linux-v5.4/drivers/net/ethernet/atheros/
Dag71xx.c301 u16 rx_buf_size; member
1025 ag->rx_buf_size, DMA_FROM_DEVICE); in ag71xx_ring_rx_clean()
1032 return ag->rx_buf_size + in ag71xx_buffer_size()
1051 buf->rx.dma_addr = dma_map_single(&ag->pdev->dev, data, ag->rx_buf_size, in ag71xx_fill_rx_buf()
1243 ag->rx_buf_size = in ag71xx_open()
1475 ag->rx_buf_size, DMA_FROM_DEVICE); in ag71xx_rx_packets()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/pcie/
Dctxt-info.c178 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_init()
/Linux-v5.4/drivers/net/ethernet/marvell/
Dskge.c1016 skb = __netdev_alloc_skb(dev, skge->rx_buf_size + NET_IP_ALIGN, in skge_rx_fill()
1022 if (skge_rx_setup(skge, e, skb, skge->rx_buf_size) < 0) { in skge_rx_fill()
2541 skge->rx_buf_size = dev->mtu + ETH_HLEN; in skge_up()
2543 skge->rx_buf_size = RX_BUF_SIZE; in skge_up()
3057 if (len > skge->rx_buf_size) in skge_rx_get()
3083 skge_rx_reuse(e, skge->rx_buf_size); in skge_rx_get()
3088 nskb = netdev_alloc_skb_ip_align(dev, skge->rx_buf_size); in skge_rx_get()
3097 if (skge_rx_setup(skge, e, nskb, skge->rx_buf_size) < 0) { in skge_rx_get()
3141 skge_rx_reuse(e, skge->rx_buf_size); in skge_rx_get()
/Linux-v5.4/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()
/Linux-v5.4/drivers/net/ethernet/ti/
Ddavinci_emac.c325 u32 rx_buf_size; member
856 struct sk_buff *skb = netdev_alloc_skb(priv->ndev, priv->rx_buf_size); in emac_rx_alloc()
1418 priv->rx_buf_size = EMAC_DEF_MAX_FRAME_SIZE + NET_IP_ALIGN; in emac_dev_open()
/Linux-v5.4/drivers/hwmon/
Dibmaem.c217 u8 rx_buf_size; member
374 rs_req.rx_buf_size = size; in aem_read_sensor()
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
Dsdio.c1969 u32 rx_buf_size; in mwifiex_alloc_sdio_mpa_buffers() local
1980 rx_buf_size = max_t(u32, mpa_rx_buf_size, in mwifiex_alloc_sdio_mpa_buffers()
1982 card->mpa_rx.buf = kzalloc(rx_buf_size, GFP_KERNEL); in mwifiex_alloc_sdio_mpa_buffers()
1988 card->mpa_rx.buf_size = rx_buf_size; in mwifiex_alloc_sdio_mpa_buffers()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c1323 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_dvm_start()
1326 trans_cfg.rx_buf_size = IWL_AMSDU_8K; in iwl_op_mode_dvm_start()
1330 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_dvm_start()

12