Home
last modified time | relevance | path

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

123

/linux/drivers/net/wireless/admtek/
A Dadm8211.c34 static unsigned int rx_ring_size __read_mostly = 16;
37 module_param(rx_ring_size, uint, 0);
357 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()
1433 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings()
1443 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings()
1487 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_free_rings()
1739 sizeof(*priv->rx_buffers) * priv->rx_ring_size; in adm8211_alloc_rings()
1754 priv->tx_ring = priv->rx_ring + priv->rx_ring_size; in adm8211_alloc_rings()
[all …]
/linux/drivers/net/ethernet/amd/
A Dpcnet32.c595 for (; new < lp->rx_ring_size; new++) { in pcnet32_realloc_rx_ring()
612 lp->rx_ring_size = entries; in pcnet32_realloc_rx_ring()
613 lp->rx_mod_mask = lp->rx_ring_size - 1; in pcnet32_realloc_rx_ring()
622 while (--new >= lp->rx_ring_size) { in pcnet32_realloc_rx_ring()
647 for (i = 0; i < lp->rx_ring_size; i++) { in pcnet32_purge_rx_ring()
870 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam()
908 if ((1 << i) != lp->rx_ring_size) in pcnet32_set_ringparam()
911 lp->napi.weight = lp->rx_ring_size / 2; in pcnet32_set_ringparam()
921 lp->rx_ring_size, lp->tx_ring_size); in pcnet32_set_ringparam()
1855 lp->rx_mod_mask = lp->rx_ring_size - 1; in pcnet32_probe1()
[all …]
/linux/drivers/net/ethernet/broadcom/
A Dbcm63xx_enet.c873 for (i = 0; i < priv->rx_ring_size; i++) { in bcm_enet_free_rx_buf_ring()
1063 val = priv->rx_ring_size / 3; in bcm_enet_open()
1065 val = (priv->rx_ring_size * 2) / 3; in bcm_enet_open()
1510 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam()
1528 priv->rx_ring_size = ering->rx_pending; in bcm_enet_set_ringparam()
1760 priv->rx_ring_size = BCMENET_DEF_RX_DESC; in bcm_enet_probe()
2240 val = priv->rx_ring_size / 3; in bcm_enetsw_open()
2242 val = (priv->rx_ring_size * 2) / 3; in bcm_enetsw_open()
2594 ering->rx_pending = priv->rx_ring_size; in bcm_enetsw_get_ringparam()
2612 priv->rx_ring_size = ering->rx_pending; in bcm_enetsw_set_ringparam()
[all …]
A Dbcm63xx_enet.h219 int rx_ring_size; member
/linux/drivers/net/ethernet/marvell/
A Dpxa168_eth.c229 int rx_ring_size; member
310 while (pep->rx_desc_count < pep->rx_ring_size) { in rxq_refill()
336 pep->rx_used_desc_q = (used_rx_desc + 1) % pep->rx_ring_size; in rxq_refill()
789 rx_next_curr_desc = (rx_curr_desc + 1) % pep->rx_ring_size; in rxq_process()
1024 int rx_desc_num = pep->rx_ring_size; in rxq_init()
1033 size = pep->rx_ring_size * sizeof(struct rx_desc); in rxq_init()
1063 for (curr = 0; pep->rx_desc_count && curr < pep->rx_ring_size; curr++) { in rxq_deinit()
1450 pep->rx_ring_size = NUM_RX_DESCS; in pxa168_eth_probe()
1456 pep->rx_ring_size = pep->pd->rx_queue_size; in pxa168_eth_probe()
1488 netif_napi_add(dev, &pep->napi, pxa168_rx_poll, pep->rx_ring_size); in pxa168_eth_probe()
A Dmv643xx_eth.c327 int rx_ring_size; member
393 int rx_ring_size; member
529 if (rxq->rx_curr_desc == rxq->rx_ring_size) in rxq_process()
623 if (rxq->rx_used_desc == rxq->rx_ring_size) in rxq_refill()
1648 er->rx_pending = mp->rx_ring_size; in mv643xx_eth_get_ringparam()
1942 rxq->rx_ring_size = mp->rx_ring_size; in rxq_init()
1974 for (i = 0; i < rxq->rx_ring_size; i++) { in rxq_init()
1978 if (nexti == rxq->rx_ring_size) in rxq_init()
2007 for (i = 0; i < rxq->rx_ring_size; i++) { in rxq_deinit()
2937 mp->rx_ring_size = DEFAULT_RX_QUEUE_SIZE; in set_params()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
A Ddma.c224 int rx_ring_size = MT7615_RX_RING_SIZE; in mt7615_dma_init() local
274 rx_ring_size /= 2; in mt7615_dma_init()
277 rx_ring_size, MT_RX_BUF_SIZE, MT_RX_RING_BASE); in mt7615_dma_init()
/linux/drivers/net/ethernet/i825xx/
A 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()
A Dlib82596.c360 static int rx_ring_size = RX_RING_SIZE; variable
498 for (i = 0, rbd = dma->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs()
516 rbd = dma->rbds + rx_ring_size - 1; in init_rx_bufs()
522 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs()
533 rfd->v_prev = dma->rfds + rx_ring_size - 1; in init_rx_bufs()
534 rfd = dma->rfds + rx_ring_size - 1; in init_rx_bufs()
549 for (i = 0, rbd = lp->dma->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs()
568 for (i = 0; i < rx_ring_size; i++) { in rebuild_rx_bufs()
572 dma->rfds[rx_ring_size-1].cmd = SWAP16(CMD_EOL|CMD_FLEX); in rebuild_rx_bufs()
/linux/drivers/net/ethernet/oki-semi/pch_gbe/
A Dpch_gbe_ethtool.c301 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local
307 rx_ring_size = (int)sizeof(struct pch_gbe_rx_ring); in pch_gbe_set_ringparam()
319 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
/linux/drivers/net/ethernet/altera/
A Daltera_tse_main.c271 unsigned int rx_descs = priv->rx_ring_size; in alloc_init_skbufs()
316 unsigned int rx_descs = priv->rx_ring_size; in free_skbufs()
334 unsigned int rxsize = priv->rx_ring_size; in tse_rx_refill()
373 unsigned int entry = priv->rx_cons % priv->rx_ring_size; in tse_rx()
400 next_entry = (++priv->rx_cons) % priv->rx_ring_size; in tse_rx()
1197 priv->rx_ring_size = dma_rx_num; in tse_open()
1230 for (i = 0; i < priv->rx_ring_size; i++) in tse_open()
/linux/drivers/scsi/ibmvscsi_tgt/
A Dlibsrp.h91 size_t rx_ring_size; member
A Dlibsrp.c114 target->rx_ring_size = nr; in srp_target_alloc()
133 srp_ring_free(target->dev, target->rx_ring, target->rx_ring_size, in srp_target_free()
/linux/drivers/net/ethernet/nvidia/
A Dforcedeth.c811 int rx_ring_size; member
1026 (np->rx_ring_size + in free_rings()
1033 (np->rx_ring_size + in free_rings()
1928 np->last_rx_ctx = &np->rx_skb[np->rx_ring_size-1]; in nv_init_rx()
1930 for (i = 0; i < np->rx_ring_size; i++) { in nv_init_rx()
2060 for (i = 0; i < np->rx_ring_size; i++) { in nv_drain_rx()
4661 ring->rx_pending = np->rx_ring_size; in nv_get_ringparam()
4742 np->rx_ring_size = ring->rx_pending; in nv_set_ringparam()
5840 np->rx_ring_size = RX_RING_DEFAULT; in nv_probe()
5846 (np->rx_ring_size + in nv_probe()
[all …]
/linux/drivers/net/vmxnet3/
A Dvmxnet3_int.h381 u32 rx_ring_size; member
490 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
/linux/drivers/net/ethernet/broadcom/bnx2x/
A Dbnx2x_cmn.c4448 int rx_ring_size) in bnx2x_alloc_rx_bds() argument
4460 for (i = 0; i < rx_ring_size; i++) { in bnx2x_alloc_rx_bds()
4508 int rx_ring_size = 0; in bnx2x_alloc_fp_mem_at() local
4511 rx_ring_size = MIN_RX_SIZE_NONTPA; in bnx2x_alloc_fp_mem_at()
4512 bp->rx_ring_size = rx_ring_size; in bnx2x_alloc_fp_mem_at()
4513 } else if (!bp->rx_ring_size) { in bnx2x_alloc_fp_mem_at()
4524 rx_ring_size /= 10; in bnx2x_alloc_fp_mem_at()
4529 MIN_RX_SIZE_TPA, rx_ring_size); in bnx2x_alloc_fp_mem_at()
4531 bp->rx_ring_size = rx_ring_size; in bnx2x_alloc_fp_mem_at()
4533 rx_ring_size = bp->rx_ring_size; in bnx2x_alloc_fp_mem_at()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_main.c172 params->prof[i].rx_ring_size = MLX4_EN_MIN_RX_SIZE; in mlx4_en_get_profile()
175 params->prof[i].rx_ring_size = MLX4_EN_DEF_RX_RING_SIZE; in mlx4_en_get_profile()
/linux/drivers/hid/intel-ish-hid/ishtp/
A Dclient.h60 unsigned int rx_ring_size; member
A Dclient-buffers.c27 for (j = 0; j < cl->rx_ring_size; ++j) { in ishtp_cl_alloc_rx_ring()
/linux/drivers/net/wan/
A Dfsl_ucc_hdlc.h100 unsigned short rx_ring_size; member
/linux/drivers/net/ethernet/freescale/
A Dgianfar.c117 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
152 gfar_write(baddr, priv->rx_queue[i]->rx_ring_size | in gfar_init_rqprm()
1100 for (i = 0; i < rx_queue->rx_ring_size; i++) { in free_skb_rx_queue()
1271 if (unlikely(++i == rx_queue->rx_ring_size)) { in gfar_alloc_rx_buffs()
1378 addr += sizeof(struct rxbd8) * rx_queue->rx_ring_size; in gfar_alloc_skb_resources()
1379 vaddr += sizeof(struct rxbd8) * rx_queue->rx_ring_size; in gfar_alloc_skb_resources()
1398 rx_queue->rx_buff = kcalloc(rx_queue->rx_ring_size, in gfar_alloc_skb_resources()
2396 rxq->next_to_alloc = (nta < rxq->rx_ring_size) ? nta : 0; in gfar_reuse_rx_page()
2553 if (unlikely(++i == rx_queue->rx_ring_size)) in gfar_clean_rx_ring()
3280 priv->rx_queue[i]->rx_ring_size = DEFAULT_RX_RING_SIZE; in gfar_probe()
[all …]
A Dgianfar.h1058 u16 rx_ring_size; member
1327 return rxq->rx_ring_size + rxq->next_to_clean - rxq->next_to_use - 1; in gfar_rxbd_unused()
1336 i = rxq->next_to_use ? rxq->next_to_use - 1 : rxq->rx_ring_size - 1; in gfar_rxbd_dma_lastfree()
A Dgianfar_ethtool.c392 rvals->rx_pending = rx_queue->rx_ring_size; in gfar_gringparam()
393 rvals->rx_mini_pending = rx_queue->rx_ring_size; in gfar_gringparam()
394 rvals->rx_jumbo_pending = rx_queue->rx_ring_size; in gfar_gringparam()
431 priv->rx_queue[i]->rx_ring_size = rvals->rx_pending; in gfar_sringparam()
/linux/drivers/net/ethernet/
A Djme.c780 for (i = 0 ; i < jme->rx_ring_size ; ++i) in jme_free_rx_resources()
786 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_free_rx_resources()
806 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources()
821 rxring->bufinf = kcalloc(jme->rx_ring_size, in jme_setup_rx_resources()
830 for (i = 0 ; i < jme->rx_ring_size ; ++i) { in jme_setup_rx_resources()
843 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources()
875 jwrite32(jme, JME_RXQDC, jme->rx_ring_size); in jme_enable_rx_engine()
1346 jme_process_receive(jme, jme->rx_ring_size); in jme_rx_clean_tasklet()
2992 jme->rx_ring_size = 1 << 9; in jme_init_one()
2993 jme->rx_ring_mask = jme->rx_ring_size - 1; in jme_init_one()
/linux/drivers/net/ethernet/cadence/
A Dmacb_main.c54 * (bp)->rx_ring_size)
211 return index & (bp->rx_ring_size - 1); in macb_rx_ring_wrap()
1255 bp->rx_ring_size) > 0) { in gem_rx_refill()
1284 if (entry == bp->rx_ring_size - 1) in gem_rx_refill()
1511 for (i = 0; i < bp->rx_ring_size; i++) { in macb_init_rx_ring()
2282 for (i = 0; i < bp->rx_ring_size; i++) { in gem_free_rx_buffers()
2354 bp->rx_ring_size, queue->rx_skbuff); in gem_alloc_rx_buffers()
3111 ring->rx_pending = bp->rx_ring_size; in macb_get_ringparam()
3134 (new_rx_size == bp->rx_ring_size)) { in macb_set_ringparam()
3144 bp->rx_ring_size = new_rx_size; in macb_set_ringparam()
[all …]

Completed in 122 milliseconds

123