/linux-6.1.9/drivers/net/wireless/admtek/ |
D | adm8211.c | 34 static unsigned int rx_ring_size __read_mostly = 16; 37 module_param(rx_ring_size, uint, 0); 353 unsigned int entry = priv->cur_rx % priv->rx_ring_size; in adm8211_interrupt_rci() 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() 1733 priv->rx_buffers = kmalloc(sizeof(*priv->rx_buffers) * priv->rx_ring_size + in adm8211_alloc_rings() [all …]
|
/linux-6.1.9/drivers/net/ethernet/amd/ |
D | pcnet32.c | 272 unsigned int rx_ring_size; /* current rx ring size */ member 562 overlap = min(entries, lp->rx_ring_size); in pcnet32_realloc_rx_ring() 595 for (; new < lp->rx_ring_size; new++) { in pcnet32_realloc_rx_ring() 609 sizeof(struct pcnet32_rx_head) * lp->rx_ring_size, 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() 872 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam() 912 if ((1 << i) != lp->rx_ring_size) in pcnet32_set_ringparam() [all …]
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | dma.c | 221 int rx_ring_size = MT7615_RX_RING_SIZE; in mt7615_dma_init() local 271 rx_ring_size /= 2; in mt7615_dma_init() 274 rx_ring_size, MT_RX_BUF_SIZE, MT_RX_RING_BASE); in mt7615_dma_init()
|
/linux-6.1.9/drivers/net/ethernet/marvell/ |
D | pxa168_eth.c | 229 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() 1451 pep->rx_ring_size = NUM_RX_DESCS; in pxa168_eth_probe() 1457 pep->rx_ring_size = pep->pd->rx_queue_size; in pxa168_eth_probe() 1490 pep->rx_ring_size); in pxa168_eth_probe()
|
D | mv643xx_eth.c | 327 int rx_ring_size; member 393 int rx_ring_size; member 529 if (rxq->rx_curr_desc == rxq->rx_ring_size) in rxq_process() 603 while (refilled < budget && rxq->rx_desc_count < rxq->rx_ring_size) { in rxq_refill() 623 if (rxq->rx_used_desc == rxq->rx_ring_size) in rxq_refill() 1650 er->rx_pending = mp->rx_ring_size; in mv643xx_eth_get_ringparam() 1664 mp->rx_ring_size = min(er->rx_pending, 4096U); in mv643xx_eth_set_ringparam() 1946 rxq->rx_ring_size = mp->rx_ring_size; in rxq_init() 1952 size = rxq->rx_ring_size * sizeof(struct rx_desc); in rxq_init() 1972 rxq->rx_skb = kcalloc(rxq->rx_ring_size, sizeof(*rxq->rx_skb), in rxq_init() [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/ |
D | bcm63xx_enet.c | 229 while (priv->rx_desc_count < priv->rx_ring_size) { in bcm_enet_refill_rx() 255 if (priv->rx_dirty_desc == priv->rx_ring_size - 1) { in bcm_enet_refill_rx() 340 if (priv->rx_curr_desc == priv->rx_ring_size) in bcm_enet_receive_queue() 873 for (i = 0; i < priv->rx_ring_size; i++) { in bcm_enet_free_rx_buf_ring() 963 size = priv->rx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open() 997 priv->rx_buf = kcalloc(priv->rx_ring_size, sizeof(void *), in bcm_enet_open() 1063 val = priv->rx_ring_size / 3; in bcm_enet_open() 1065 val = (priv->rx_ring_size * 2) / 3; in bcm_enet_open() 1069 enet_dmac_writel(priv, priv->rx_ring_size, ENETDMAC_LEN, priv->rx_chan); in bcm_enet_open() 1513 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam() [all …]
|
D | bcm63xx_enet.h | 219 int rx_ring_size; member
|
/linux-6.1.9/drivers/net/ethernet/i825xx/ |
D | 82596.c | 370 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()
|
D | lib82596.c | 360 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-6.1.9/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 309 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local 315 rx_ring_size = (int)sizeof(struct pch_gbe_rx_ring); in pch_gbe_set_ringparam() 327 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
|
/linux-6.1.9/drivers/scsi/ibmvscsi_tgt/ |
D | libsrp.h | 91 size_t rx_ring_size; member
|
D | libsrp.c | 114 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-6.1.9/drivers/net/ethernet/altera/ |
D | altera_tse_main.c | 255 unsigned int rx_descs = priv->rx_ring_size; in alloc_init_skbufs() 300 unsigned int rx_descs = priv->rx_ring_size; in free_skbufs() 318 unsigned int rxsize = priv->rx_ring_size; in tse_rx_refill() 355 unsigned int entry = priv->rx_cons % priv->rx_ring_size; in tse_rx() 385 next_entry = (++priv->rx_cons) % priv->rx_ring_size; in tse_rx() 918 priv->rx_ring_size = dma_rx_num; in tse_open() 951 for (i = 0; i < priv->rx_ring_size; i++) in tse_open()
|
/linux-6.1.9/drivers/net/vmxnet3/ |
D | vmxnet3_int.h | 387 u32 rx_ring_size; member 505 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
|
/linux-6.1.9/drivers/hid/intel-ish-hid/ishtp/ |
D | client.h | 60 unsigned int rx_ring_size; member
|
D | client-buffers.c | 27 for (j = 0; j < cl->rx_ring_size; ++j) { in ishtp_cl_alloc_rx_ring()
|
/linux-6.1.9/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 100 unsigned short rx_ring_size; member
|
/linux-6.1.9/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 811 int rx_ring_size; member 1005 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings() 1012 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingPh… in setup_hw_rings() 1013 …writel(dma_high(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingP… in setup_hw_rings() 1026 (np->rx_ring_size + in free_rings() 1033 (np->rx_ring_size + in free_rings() 1923 np->last_rx.orig = &np->rx_ring.orig[np->rx_ring_size-1]; in nv_init_rx() 1925 np->last_rx.ex = &np->rx_ring.ex[np->rx_ring_size-1]; in nv_init_rx() 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() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | en_main.c | 172 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-6.1.9/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 4447 int rx_ring_size) in bnx2x_alloc_rx_bds() argument 4459 for (i = 0; i < rx_ring_size; i++) { in bnx2x_alloc_rx_bds() 4507 int rx_ring_size = 0; in bnx2x_alloc_fp_mem_at() local 4509 if (!bp->rx_ring_size && IS_MF_STORAGE_ONLY(bp)) { in bnx2x_alloc_fp_mem_at() 4510 rx_ring_size = MIN_RX_SIZE_NONTPA; in bnx2x_alloc_fp_mem_at() 4511 bp->rx_ring_size = rx_ring_size; in bnx2x_alloc_fp_mem_at() 4512 } else if (!bp->rx_ring_size) { in bnx2x_alloc_fp_mem_at() 4513 rx_ring_size = MAX_RX_AVAIL/BNX2X_NUM_RX_QUEUES(bp); in bnx2x_alloc_fp_mem_at() 4523 rx_ring_size /= 10; in bnx2x_alloc_fp_mem_at() 4527 rx_ring_size = max_t(int, bp->disable_tpa ? MIN_RX_SIZE_NONTPA : in bnx2x_alloc_fp_mem_at() [all …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/ |
D | gianfar.c | 117 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() 1349 priv->total_rx_ring_size += priv->rx_queue[i]->rx_ring_size; in gfar_alloc_skb_resources() 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() 2393 rxq->next_to_alloc = (nta < rxq->rx_ring_size) ? nta : 0; in gfar_reuse_rx_page() 2550 if (unlikely(++i == rx_queue->rx_ring_size)) in gfar_clean_rx_ring() [all …]
|
D | gianfar.h | 1055 u16 rx_ring_size; member 1324 return rxq->rx_ring_size + rxq->next_to_clean - rxq->next_to_use - 1; in gfar_rxbd_unused() 1333 i = rxq->next_to_use ? rxq->next_to_use - 1 : rxq->rx_ring_size - 1; in gfar_rxbd_dma_lastfree()
|
D | gianfar_ethtool.c | 394 rvals->rx_pending = rx_queue->rx_ring_size; in gfar_gringparam() 395 rvals->rx_mini_pending = rx_queue->rx_ring_size; in gfar_gringparam() 396 rvals->rx_jumbo_pending = rx_queue->rx_ring_size; in gfar_gringparam() 435 priv->rx_queue[i]->rx_ring_size = rvals->rx_pending; in gfar_sringparam()
|
/linux-6.1.9/drivers/net/ethernet/ |
D | jme.c | 781 for (i = 0 ; i < jme->rx_ring_size ; ++i) in jme_free_rx_resources() 787 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_free_rx_resources() 807 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources() 822 rxring->bufinf = kcalloc(jme->rx_ring_size, in jme_setup_rx_resources() 831 for (i = 0 ; i < jme->rx_ring_size ; ++i) { in jme_setup_rx_resources() 844 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources() 876 jwrite32(jme, JME_RXQDC, jme->rx_ring_size); in jme_enable_rx_engine() 1347 jme_process_receive(jme, jme->rx_ring_size); in jme_rx_clean_tasklet() 2993 jme->rx_ring_size = 1 << 9; in jme_init_one() 2994 jme->rx_ring_mask = jme->rx_ring_size - 1; in jme_init_one()
|
/linux-6.1.9/drivers/net/ethernet/google/gve/ |
D | gve_adminq.h | 202 __be16 rx_ring_size; member
|