/drivers/net/ethernet/ |
D | lantiq_xrx200.c | 84 u16 rx_buf_size; member 141 ch->priv->rx_buf_size; in xrx200_flush_dma() 202 priv->rx_buf_size, DMA_FROM_DEVICE); in xrx200_alloc_buf() 215 LTQ_DMA_OWN | LTQ_DMA_RX_OFFSET(NET_IP_ALIGN) | priv->rx_buf_size; in xrx200_alloc_buf() 423 priv->rx_buf_size = xrx200_buffer_size(new_mtu); in xrx200_change_mtu() 424 priv->rx_skb_size = xrx200_skb_size(priv->rx_buf_size); in xrx200_change_mtu() 444 priv->rx_buf_size = xrx200_buffer_size(old_mtu); in xrx200_change_mtu() 445 priv->rx_skb_size = xrx200_skb_size(priv->rx_buf_size); in xrx200_change_mtu() 577 priv->rx_buf_size = xrx200_buffer_size(ETH_DATA_LEN); in xrx200_probe() 578 priv->rx_skb_size = xrx200_skb_size(priv->rx_buf_size); in xrx200_probe()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_device.c | 89 .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,
|
D | octeon_config.h | 159 ((cfg)->nic_if_cfg[idx].rx_buf_size) 326 u64 rx_buf_size:16; member 367 u64 rx_buf_size:16;
|
/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 141 priv->rx_buf[i] = priv->rx_buf_base + priv->rx_buf_size * i; in moxart_mac_setup_desc_ring() 144 priv->rx_buf_size, in moxart_mac_setup_desc_ring() 200 priv->rx_buf_size, DMA_FROM_DEVICE); in moxart_mac_stop() 240 priv->rx_buf_size, DMA_FROM_DEVICE); in moxart_rx_poll() 496 priv->rx_buf_size = RX_BUF_SIZE; in moxart_mac_probe() 521 priv->rx_buf_base = kmalloc_array(priv->rx_buf_size, RX_DESC_NUM, in moxart_mac_probe()
|
D | moxart_ether.h | 308 unsigned int rx_buf_size; member
|
/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-net.c | 191 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() 653 pdata->rx_buf_size = ret; in xlgmac_open() 825 pdata->rx_buf_size = ret; in xlgmac_change_mtu()
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ae_adapt.c | 298 u32 rx_buf_size; in hns_ae_set_mtu() local 304 rx_buf_size = 2048; in hns_ae_set_mtu() 306 rx_buf_size = 4096; in hns_ae_set_mtu() 308 rx_buf_size = mac_cb->dsaf_dev->buf_size; in hns_ae_set_mtu() 311 ret = hns_mac_set_mtu(mac_cb, new_mtu, rx_buf_size); in hns_ae_set_mtu() 317 q->rx_ring.buf_size = rx_buf_size; in hns_ae_set_mtu() 318 hns_rcb_set_rx_ring_bs(q, rx_buf_size); in hns_ae_set_mtu()
|
/drivers/net/wireless/ath/ath12k/ |
D | dp_tx.h | 32 int rx_buf_size,
|
/drivers/net/wireless/ath/ath11k/ |
D | dp_tx.h | 40 int rx_buf_size,
|
/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 239 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() 865 priv->rx_buf_size = RX_BUF_SIZE + in hip04_alloc_ring() 868 priv->rx_buf[i] = netdev_alloc_frag(priv->rx_buf_size); in hip04_alloc_ring()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.c | 164 dma_unmap_page(dev, addr, priv->rx_buf_size, in dpaa2_eth_free_rx_fd() 222 dma_unmap_page(dev, sg_addr, priv->rx_buf_size, in dpaa2_eth_build_frag_skb() 263 sg_length, priv->rx_buf_size); in dpaa2_eth_build_frag_skb() 294 dma_unmap_page(dev, buf_array[i], priv->rx_buf_size, in dpaa2_eth_free_bufs() 469 priv->rx_buf_size, DMA_BIDIRECTIONAL); in dpaa2_eth_run_xdp() 480 priv->rx_buf_size, DMA_BIDIRECTIONAL); in dpaa2_eth_run_xdp() 598 dma_sync_single_for_cpu(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx() 617 dma_unmap_page(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx() 626 dma_unmap_page(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx() 671 dma_sync_single_for_cpu(dev, addr, priv->rx_buf_size, in dpaa2_eth_rx_err() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-drv.c | 298 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() 1287 pdata->rx_buf_size = xgbe_calc_rx_buf_size(netdev, netdev->mtu); in xgbe_alloc_memory() 2072 pdata->rx_buf_size = ret; in xgbe_change_mtu()
|
/drivers/infiniband/hw/mlx4/ |
D | mad.c | 1607 int rx_buf_size, tx_buf_size; in mlx4_ib_alloc_pv_bufs() local 1631 rx_buf_size = sizeof (struct mlx4_tunnel_mad); in mlx4_ib_alloc_pv_bufs() 1634 rx_buf_size = sizeof (struct mlx4_mad_rcv_buf); in mlx4_ib_alloc_pv_bufs() 1639 tun_qp->ring[i].addr = kmalloc(rx_buf_size, GFP_KERNEL); in mlx4_ib_alloc_pv_bufs() 1644 rx_buf_size, in mlx4_ib_alloc_pv_bufs() 1688 rx_buf_size, DMA_FROM_DEVICE); in mlx4_ib_alloc_pv_bufs() 1703 int rx_buf_size, tx_buf_size; in mlx4_ib_free_pv_qp_bufs() local 1711 rx_buf_size = sizeof (struct mlx4_tunnel_mad); in mlx4_ib_free_pv_qp_bufs() 1714 rx_buf_size = sizeof (struct mlx4_mad_rcv_buf); in mlx4_ib_free_pv_qp_bufs() 1721 rx_buf_size, DMA_FROM_DEVICE); in mlx4_ib_free_pv_qp_bufs()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 449 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_tpa_start() 706 return kmalloc(fp->rx_buf_size + NET_SKB_PAD, gfp_mask); in bnx2x_frag_alloc() 793 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_tpa_stop() 799 if (pad + len > fp->rx_buf_size) { in bnx2x_tpa_stop() 801 pad, len, fp->rx_buf_size); in bnx2x_tpa_stop() 853 fp->rx_buf_size, in bnx2x_alloc_rx_data() 1060 fp->rx_buf_size, in bnx2x_rx_int() 1386 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_free_tpa_pool() 1422 "mtu %d rx_buf_size %d\n", bp->dev->mtu, fp->rx_buf_size); in bnx2x_init_rx_rings() 1563 fp->rx_buf_size, DMA_FROM_DEVICE); in bnx2x_free_rx_bds() [all …]
|
/drivers/net/usb/ |
D | hso.c | 148 unsigned short rx_buf_size; member 708 odev->rx_buf_size = 0; in hso_net_open() 862 odev->rx_buf_size, ip_pkt + buffer_offset, in packetizeRx() 865 odev->rx_buf_size += temp_bytes; in packetizeRx() 900 odev->rx_buf_size = sizeof(struct iphdr); in packetizeRx() 923 odev->rx_buf_size += temp_bytes; in packetizeRx() 938 odev->net->stats.rx_bytes += odev->rx_buf_size; in packetizeRx() 940 odev->rx_buf_size = 0; in packetizeRx() 961 odev->rx_buf_size = 0; in packetizeRx()
|
/drivers/net/ethernet/broadcom/ |
D | bcm63xx_enet.h | 234 unsigned int rx_buf_size; member
|
D | bcm63xx_enet.c | 249 priv->rx_buf_size, in bcm_enet_refill_rx() 253 len_stat = priv->rx_buf_size << DMADESC_LENGTH_SHIFT; in bcm_enet_refill_rx() 388 priv->rx_buf_size, DMA_FROM_DEVICE); in bcm_enet_receive_queue() 880 dma_unmap_single(kdev, desc->address, priv->rx_buf_size, in bcm_enet_free_rx_buf_ring() 1649 priv->rx_buf_size = ALIGN(actual_mtu + ETH_FCS_LEN, in bcm_enet_change_mtu() 1652 priv->rx_frag_size = SKB_DATA_ALIGN(priv->rx_buf_offset + priv->rx_buf_size) + in bcm_enet_change_mtu()
|
/drivers/net/ethernet/atheros/ |
D | ag71xx.c | 355 u16 rx_buf_size; member 1209 ag->rx_buf_size, DMA_FROM_DEVICE); in ag71xx_ring_rx_clean() 1216 return ag->rx_buf_size + in ag71xx_buffer_size() 1235 buf->rx.dma_addr = dma_map_single(&ag->pdev->dev, data, ag->rx_buf_size, in ag71xx_fill_rx_buf() 1434 ag->rx_buf_size = in ag71xx_open() 1656 ag->rx_buf_size, DMA_FROM_DEVICE); in ag71xx_rx_packets()
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede.h | 211 u16 rx_buf_size; member 350 u32 rx_buf_size; member
|
D | qede_main.c | 1583 rxq->rx_buf_size = NET_IP_ALIGN + ETH_OVERHEAD + edev->ndev->mtu; in qede_alloc_mem_rxq() 1590 if (rxq->rx_buf_size + size > PAGE_SIZE) in qede_alloc_mem_rxq() 1591 rxq->rx_buf_size = PAGE_SIZE - size; in qede_alloc_mem_rxq() 1597 size = size + rxq->rx_buf_size; in qede_alloc_mem_rxq() 2302 rxq->rx_buf_size, in qede_start_queues()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | ops.c | 1264 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_mvm_start() 1267 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_mvm_start() 1270 trans_cfg.rx_buf_size = IWL_AMSDU_8K; in iwl_op_mode_mvm_start() 1273 trans_cfg.rx_buf_size = IWL_AMSDU_12K; in iwl_op_mode_mvm_start() 1278 trans_cfg.rx_buf_size = IWL_AMSDU_4K; in iwl_op_mode_mvm_start()
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | ctxt-info.c | 187 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_init()
|
/drivers/net/ethernet/marvell/ |
D | skge.c | 1024 skb = __netdev_alloc_skb(dev, skge->rx_buf_size + NET_IP_ALIGN, in skge_rx_fill() 1030 if (skge_rx_setup(skge, e, skb, skge->rx_buf_size) < 0) { in skge_rx_fill() 2549 skge->rx_buf_size = dev->mtu + ETH_HLEN; in skge_up() 2551 skge->rx_buf_size = RX_BUF_SIZE; in skge_up() 3063 if (len > skge->rx_buf_size) in skge_rx_get() 3089 skge_rx_reuse(e, skge->rx_buf_size); in skge_rx_get() 3094 nskb = netdev_alloc_skb_ip_align(dev, skge->rx_buf_size); in skge_rx_get() 3103 if (skge_rx_setup(skge, e, nskb, skge->rx_buf_size) < 0) { in skge_rx_get() 3146 skge_rx_reuse(e, skge->rx_buf_size); in skge_rx_get()
|
/drivers/net/ethernet/ti/ |
D | davinci_emac.c | 324 u32 rx_buf_size; member 876 struct sk_buff *skb = netdev_alloc_skb(priv->ndev, priv->rx_buf_size); in emac_rx_alloc() 1435 priv->rx_buf_size = EMAC_DEF_MAX_FRAME_SIZE + NET_IP_ALIGN; in emac_dev_open()
|
/drivers/hwmon/ |
D | ibmaem.c | 217 u8 rx_buf_size; member 374 rs_req.rx_buf_size = size; in aem_read_sensor()
|