Home
last modified time | relevance | path

Searched refs:rx_ring_size (Results 1 – 25 of 37) sorted by relevance

12

/drivers/net/wireless/
Dadm8211.c40 static unsigned int rx_ring_size __read_mostly = 16;
43 module_param(rx_ring_size, uint, 0);
359 unsigned int entry = priv->cur_rx % priv->rx_ring_size; in adm8211_interrupt_rci()
363 unsigned int limit = priv->rx_ring_size; in adm8211_interrupt_rci()
430 (entry == priv->rx_ring_size - 1 ? in adm8211_interrupt_rci()
450 entry = (++priv->cur_rx) % priv->rx_ring_size; in adm8211_interrupt_rci()
1434 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings()
1444 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings()
1482 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_free_rings()
1723 priv->rx_buffers = kmalloc(sizeof(*priv->rx_buffers) * priv->rx_ring_size + in adm8211_alloc_rings()
[all …]
Dadm8211.h546 unsigned int rx_ring_size, tx_ring_size; member
/drivers/net/ethernet/amd/
Dpcnet32.c276 unsigned int rx_ring_size; /* current rx ring size */ member
573 overlap = min(size, lp->rx_ring_size); in pcnet32_realloc_rx_ring()
600 for (; new < lp->rx_ring_size; new++) { in pcnet32_realloc_rx_ring()
612 lp->rx_ring_size, lp->rx_ring, in pcnet32_realloc_rx_ring()
615 lp->rx_ring_size = (1 << size); in pcnet32_realloc_rx_ring()
616 lp->rx_mod_mask = lp->rx_ring_size - 1; in pcnet32_realloc_rx_ring()
625 while (--new >= lp->rx_ring_size) { in pcnet32_realloc_rx_ring()
649 for (i = 0; i < lp->rx_ring_size; i++) { in pcnet32_purge_rx_ring()
769 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam()
807 if ((1 << i) != lp->rx_ring_size) in pcnet32_set_ringparam()
[all …]
/drivers/net/ethernet/marvell/
Dpxa168_eth.c227 int rx_ring_size; member
348 while (pep->rx_desc_count < pep->rx_ring_size) { in rxq_refill()
374 pep->rx_used_desc_q = (used_rx_desc + 1) % pep->rx_ring_size; in rxq_refill()
807 rx_next_curr_desc = (rx_curr_desc + 1) % pep->rx_ring_size; in rxq_process()
1015 int rx_desc_num = pep->rx_ring_size; in rxq_init()
1018 pep->rx_skb = kzalloc(sizeof(*pep->rx_skb) * pep->rx_ring_size, in rxq_init()
1025 size = pep->rx_ring_size * sizeof(struct rx_desc); in rxq_init()
1055 for (curr = 0; pep->rx_desc_count && curr < pep->rx_ring_size; curr++) { in rxq_deinit()
1521 pep->rx_ring_size = NUM_RX_DESCS; in pxa168_eth_probe()
1523 pep->rx_ring_size = pep->pd->rx_queue_size; in pxa168_eth_probe()
[all …]
Dmv643xx_eth.c322 int rx_ring_size; member
383 int rx_ring_size; member
519 if (rxq->rx_curr_desc == rxq->rx_ring_size) in rxq_process()
593 while (refilled < budget && rxq->rx_desc_count < rxq->rx_ring_size) { in rxq_refill()
613 if (rxq->rx_used_desc == rxq->rx_ring_size) in rxq_refill()
1443 er->rx_pending = mp->rx_ring_size; in mv643xx_eth_get_ringparam()
1455 mp->rx_ring_size = er->rx_pending < 4096 ? er->rx_pending : 4096; in mv643xx_eth_set_ringparam()
1734 rxq->rx_ring_size = mp->rx_ring_size; in rxq_init()
1740 size = rxq->rx_ring_size * sizeof(struct rx_desc); in rxq_init()
1760 rxq->rx_skb = kcalloc(rxq->rx_ring_size, sizeof(*rxq->rx_skb), in rxq_init()
[all …]
Dmvneta.c248 u16 rx_ring_size; member
1966 rxq->size = pp->rx_ring_size; in mvneta_rxq_init()
2505 ring->rx_pending = pp->rx_ring_size; in mvneta_ethtool_get_ringparam()
2516 pp->rx_ring_size = ring->rx_pending < MVNETA_MAX_RXD ? in mvneta_ethtool_set_ringparam()
2590 rxq->size = pp->rx_ring_size; in mvneta_init()
2746 pp->rx_ring_size = MVNETA_MAX_RXD; in mvneta_probe()
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c184 while (priv->rx_desc_count < priv->rx_ring_size) { in bcm_enet_refill_rx()
208 if (priv->rx_dirty_desc == priv->rx_ring_size - 1) { in bcm_enet_refill_rx()
290 if (priv->rx_curr_desc == priv->rx_ring_size) in bcm_enet_receive_queue()
864 size = priv->rx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open()
900 priv->rx_skb = kcalloc(priv->rx_ring_size, sizeof(struct sk_buff *), in bcm_enet_open()
949 val = priv->rx_ring_size / 3; in bcm_enet_open()
951 val = (priv->rx_ring_size * 2) / 3; in bcm_enet_open()
991 for (i = 0; i < priv->rx_ring_size; i++) { in bcm_enet_open()
1108 for (i = 0; i < priv->rx_ring_size; i++) { in bcm_enet_stop()
1398 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam()
[all …]
Dbcm63xx_enet.h166 int rx_ring_size; member
/drivers/net/ethernet/i825xx/
Dlib82596.c361 static int rx_ring_size = RX_RING_SIZE; variable
471 for (i = 0, rbd = dma->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs()
489 rbd = dma->rbds + rx_ring_size - 1; in init_rx_bufs()
495 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs()
506 rfd->v_prev = dma->rfds + rx_ring_size - 1; in init_rx_bufs()
507 rfd = dma->rfds + rx_ring_size - 1; in init_rx_bufs()
522 for (i = 0, rbd = lp->dma->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs()
541 for (i = 0; i < rx_ring_size; i++) { in rebuild_rx_bufs()
545 dma->rfds[rx_ring_size-1].cmd = SWAP16(CMD_EOL|CMD_FLEX); in rebuild_rx_bufs()
D82596.c370 static int rx_ring_size = RX_RING_SIZE; variable
532 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs()
549 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs()
569 rbd = lp->rbds + rx_ring_size - 1; in init_rx_bufs()
575 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs()
586 rfd->v_prev = lp->rfds + rx_ring_size - 1; in init_rx_bufs()
587 rfd = lp->rfds + rx_ring_size - 1; in init_rx_bufs()
603 for (i = 0; i < rx_ring_size; i++) { in rebuild_rx_bufs()
607 lp->rfds[rx_ring_size-1].cmd = CMD_EOL|CMD_FLEX; in rebuild_rx_bufs()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c293 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local
299 rx_ring_size = (int)sizeof(struct pch_gbe_rx_ring); in pch_gbe_set_ringparam()
311 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c4152 int rx_ring_size) in bnx2x_alloc_rx_bds() argument
4164 for (i = 0; i < rx_ring_size; i++) { in bnx2x_alloc_rx_bds()
4213 int rx_ring_size = 0; in bnx2x_alloc_fp_mem_at() local
4215 if (!bp->rx_ring_size && in bnx2x_alloc_fp_mem_at()
4217 rx_ring_size = MIN_RX_SIZE_NONTPA; in bnx2x_alloc_fp_mem_at()
4218 bp->rx_ring_size = rx_ring_size; in bnx2x_alloc_fp_mem_at()
4219 } else if (!bp->rx_ring_size) { in bnx2x_alloc_fp_mem_at()
4220 rx_ring_size = MAX_RX_AVAIL/BNX2X_NUM_RX_QUEUES(bp); in bnx2x_alloc_fp_mem_at()
4230 rx_ring_size /= 10; in bnx2x_alloc_fp_mem_at()
4234 rx_ring_size = max_t(int, bp->disable_tpa ? MIN_RX_SIZE_NONTPA : in bnx2x_alloc_fp_mem_at()
[all …]
/drivers/net/ethernet/nvidia/
Dforcedeth.c810 int rx_ring_size; member
1010 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings()
1017 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingPh… in setup_hw_rings()
1018 …writel(dma_high(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingP… in setup_hw_rings()
1029 … pci_free_consistent(np->pci_dev, sizeof(struct ring_desc) * (np->rx_ring_size + np->tx_ring_size), in free_rings()
1033 …pci_free_consistent(np->pci_dev, sizeof(struct ring_desc_ex) * (np->rx_ring_size + np->tx_ring_siz… in free_rings()
1908 np->last_rx.orig = &np->rx_ring.orig[np->rx_ring_size-1]; in nv_init_rx()
1910 np->last_rx.ex = &np->rx_ring.ex[np->rx_ring_size-1]; in nv_init_rx()
1912 np->last_rx_ctx = &np->rx_skb[np->rx_ring_size-1]; in nv_init_rx()
1914 for (i = 0; i < np->rx_ring_size; i++) { in nv_init_rx()
[all …]
/drivers/net/ethernet/
Djme.c807 for (i = 0 ; i < jme->rx_ring_size ; ++i) in jme_free_rx_resources()
813 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_free_rx_resources()
833 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources()
849 jme->rx_ring_size, GFP_ATOMIC); in jme_setup_rx_resources()
857 sizeof(struct jme_buffer_info) * jme->rx_ring_size); in jme_setup_rx_resources()
858 for (i = 0 ; i < jme->rx_ring_size ; ++i) { in jme_setup_rx_resources()
871 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources()
903 jwrite32(jme, JME_RXQDC, jme->rx_ring_size); in jme_enable_rx_engine()
1379 jme_process_receive(jme, jme->rx_ring_size); in jme_rx_clean_tasklet()
3053 jme->rx_ring_size = 1 << 9; in jme_init_one()
[all …]
Djme.h442 u32 rx_ring_size; member
/drivers/net/ethernet/freescale/
Dgianfar.c158 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
203 for (j = 0; j < rx_queue->rx_ring_size; j++) { in gfar_init_bds()
244 priv->total_rx_ring_size += priv->rx_queue[i]->rx_ring_size; in gfar_alloc_skb_resources()
272 addr += sizeof(struct rxbd8) * rx_queue->rx_ring_size; in gfar_alloc_skb_resources()
273 vaddr += sizeof(struct rxbd8) * rx_queue->rx_ring_size; in gfar_alloc_skb_resources()
293 kmalloc_array(rx_queue->rx_ring_size, in gfar_alloc_skb_resources()
299 for (j = 0; j < rx_queue->rx_ring_size; j++) in gfar_alloc_skb_resources()
1166 priv->rx_queue[i]->rx_ring_size = DEFAULT_RX_RING_SIZE; in gfar_probe()
1222 i, priv->rx_queue[i]->rx_ring_size); in gfar_probe()
1737 for (i = 0; i < rx_queue->rx_ring_size; i++) { in free_skb_rx_queue()
[all …]
Dgianfar_ethtool.c464 rvals->rx_pending = rx_queue->rx_ring_size; in gfar_gringparam()
465 rvals->rx_mini_pending = rx_queue->rx_ring_size; in gfar_gringparam()
466 rvals->rx_jumbo_pending = rx_queue->rx_ring_size; in gfar_gringparam()
516 priv->rx_queue[i]->rx_ring_size); in gfar_sringparam()
524 priv->rx_queue[i]->rx_ring_size = rvals->rx_pending; in gfar_sringparam()
567 priv->rx_queue[i]->rx_ring_size); in gfar_set_features()
/drivers/scsi/
Dlibsrp.c140 target->rx_ring_size = nr; in srp_target_alloc()
158 srp_ring_free(target->dev, target->rx_ring, target->rx_ring_size, in srp_target_free()
/drivers/net/vmxnet3/
Dvmxnet3_int.h405 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size);
/drivers/net/ethernet/mellanox/mlx4/
Den_main.c139 params->prof[i].rx_ring_size = MLX4_EN_DEF_RX_RING_SIZE; in mlx4_en_get_profile()
Dmlx4_en.h320 u32 rx_ring_size; member
Den_netdev.c1814 priv->prof->rx_ring_size, priv->stride); in mlx4_en_free_resources()
1851 prof->rx_ring_size, i, RX)) in mlx4_en_alloc_resources()
1855 prof->rx_ring_size, priv->stride)) in mlx4_en_alloc_resources()
/drivers/net/ethernet/adaptec/
Dstarfire.c884 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local
904 rx_ring_size = sizeof(struct starfire_rx_desc) * RX_RING_SIZE; in netdev_open()
905 np->queue_mem_size = tx_done_q_size + rx_done_q_size + tx_ring_size + rx_ring_size; in netdev_open()
/drivers/net/ethernet/via/
Dvia-velocity.c1460 const unsigned int rx_ring_size = opt->numrx * sizeof(struct rx_desc); in velocity_init_dma_rings() local
1474 rx_ring_size, &pool_dma); in velocity_init_dma_rings()
1484 pool += rx_ring_size; in velocity_init_dma_rings()
1485 pool_dma += rx_ring_size; in velocity_init_dma_rings()
/drivers/net/ethernet/qlogic/qlge/
Dqlge_ethtool.c646 if (c->rx_coalesce_usecs > qdev->rx_ring_size / 2) in ql_set_coalesce()

12