Home
last modified time | relevance | path

Searched refs:tx_ring_size (Results 1 – 25 of 55) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmv643xx_eth.c180 (addr < txq->tso_hdrs_dma + txq->tx_ring_size * TSO_HEADER_SIZE))
342 int tx_ring_size; member
403 int tx_ring_size; member
734 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_data_tso()
811 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_hdr_tso()
826 if ((txq->tx_desc_count + tso_count_descs(skb)) >= txq->tx_ring_size) { in txq_submit_tso()
901 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_frag_skb()
940 if (txq->tx_ring_size - txq->tx_desc_count < MAX_SKB_FRAGS + 1) { in txq_submit_skb()
952 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_skb()
1082 if (txq->tx_used_desc == txq->tx_ring_size) in txq_reclaim()
[all …]
Dpxa168_eth.c225 int tx_ring_size; member
722 pep->tx_used_desc_q = (tx_index + 1) % pep->tx_ring_size; in txq_reclaim()
1085 int tx_desc_num = pep->tx_ring_size; in txq_init()
1093 size = pep->tx_ring_size * sizeof(struct tx_desc); in txq_init()
1218 pep->tx_curr_desc_q = (tx_desc_curr + 1) % pep->tx_ring_size; in eth_alloc_tx_desc_index()
1239 && pep->tx_ring_size - pep->tx_desc_count > 1) { in pxa168_rx_poll()
1279 if (pep->tx_ring_size - pep->tx_desc_count <= 1) { in pxa168_eth_start_xmit()
1453 pep->tx_ring_size = NUM_TX_DESCS; in pxa168_eth_probe()
1461 pep->tx_ring_size = pep->pd->tx_queue_size; in pxa168_eth_probe()
Dsky2.c1104 *slot = RING_NEXT(*slot, sky2->tx_ring_size); in get_tx_le()
1597 sky2->tx_ring_size * sizeof(struct sky2_tx_le), in sky2_alloc_buffers()
1602 sky2->tx_ring = kcalloc(sky2->tx_ring_size, sizeof(struct tx_ring_info), in sky2_alloc_buffers()
1635 sky2->tx_ring_size * sizeof(struct sky2_tx_le), in sky2_free_buffers()
1702 sky2->tx_ring_size - 1); in sky2_hw_up()
1778 return (sky2->tx_prod - sky2->tx_cons) & (sky2->tx_ring_size - 1); in tx_inuse()
1976 for (i = sky2->tx_prod; i != slot; i = RING_NEXT(i, sky2->tx_ring_size)) { in sky2_xmit_frame()
2005 BUG_ON(done >= sky2->tx_ring_size); in sky2_tx_complete()
2008 idx = RING_NEXT(idx, sky2->tx_ring_size)) { in sky2_tx_complete()
2024 sky2->tx_next = RING_NEXT(idx, sky2->tx_ring_size); in sky2_tx_complete()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/admtek/
Dadm8211.c34 static unsigned int tx_ring_size __read_mostly = 16;
37 module_param(tx_ring_size, uint, 0);
311 unsigned int entry = dirty_tx % priv->tx_ring_size; in adm8211_interrupt_tci()
343 if (priv->cur_tx - dirty_tx < priv->tx_ring_size - 2) in adm8211_interrupt_tci()
1466 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_init_rings()
1499 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_free_rings()
1639 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw()
1644 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
1647 entry = priv->cur_tx % priv->tx_ring_size; in adm8211_tx_raw()
1654 if (entry == priv->tx_ring_size - 1) in adm8211_tx_raw()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dpcnet32.c273 unsigned int tx_ring_size; /* current tx ring size */ member
505 sizeof(struct pcnet32_tx_head) * lp->tx_ring_size, in pcnet32_realloc_tx_ring()
508 lp->tx_ring_size = entries; in pcnet32_realloc_tx_ring()
509 lp->tx_mod_mask = lp->tx_ring_size - 1; in pcnet32_realloc_tx_ring()
868 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam()
900 if ((1 << i) != lp->tx_ring_size) in pcnet32_set_ringparam()
921 lp->rx_ring_size, lp->tx_ring_size); in pcnet32_set_ringparam()
987 numbuffs = min(numbuffs, (int)min(lp->rx_ring_size, lp->tx_ring_size)); in pcnet32_loopback_test()
1363 delta = (lp->cur_tx - dirty_tx) & (lp->tx_mod_mask + lp->tx_ring_size); in pcnet32_tx()
1364 if (delta > lp->tx_ring_size) { in pcnet32_tx()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dgianfar.c1103 for (i = 0; i < tx_queue->tx_ring_size; i++) { in free_skb_tx_queue()
1328 tx_queue->num_txbdfree = tx_queue->tx_ring_size; in gfar_init_bds()
1336 for (j = 0; j < tx_queue->tx_ring_size; j++) { in gfar_init_bds()
1378 priv->total_tx_ring_size += priv->tx_queue[i]->tx_ring_size; in gfar_alloc_skb_resources()
1400 addr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
1401 vaddr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
1419 kmalloc_array(tx_queue->tx_ring_size, in gfar_alloc_skb_resources()
1425 for (j = 0; j < tx_queue->tx_ring_size; j++) in gfar_alloc_skb_resources()
1915 tx_queue->tx_ring_size); in gfar_start_xmit()
1929 txbdp = next_txbd(txbdp, base, tx_queue->tx_ring_size); in gfar_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c421 while (priv->tx_desc_count < priv->tx_ring_size) { in bcm_enet_tx_reclaim()
446 if (priv->tx_dirty_desc == priv->tx_ring_size) in bcm_enet_tx_reclaim()
613 if (priv->tx_curr_desc == priv->tx_ring_size) { in bcm_enet_start_xmit()
935 size = priv->tx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open()
945 priv->tx_skb = kcalloc(priv->tx_ring_size, sizeof(struct sk_buff *), in bcm_enet_open()
952 priv->tx_desc_count = priv->tx_ring_size; in bcm_enet_open()
1031 enet_dmac_writel(priv, priv->tx_ring_size, ENETDMAC_LEN, priv->tx_chan); in bcm_enet_open()
1492 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1510 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
1738 priv->tx_ring_size = BCMENET_DEF_TX_DESC; in bcm_enet_probe()
[all …]
Dbcm63xx_enet.h251 int tx_ring_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c299 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local
304 tx_ring_size = (int)sizeof(struct pch_gbe_tx_ring); in pch_gbe_set_ringparam()
312 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.h748 WARN_ON(used > txdata->tx_ring_size); in bnx2x_tx_avail()
749 WARN_ON((txdata->tx_ring_size - used) > MAX_TX_AVAIL); in bnx2x_tx_avail()
752 return (s16)(txdata->tx_ring_size) - used; in bnx2x_tx_avail()
1170 txdata->tx_ring_size = IS_FCOE_FP(fp) ? MAX_TX_AVAIL : bp->tx_ring_size; in bnx2x_init_txdata()
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_int.h377 u32 tx_ring_size; member
482 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
Dvmxnet3_ethtool.c607 param->tx_pending = adapter->tx_ring_size; in vmxnet3_get_ringparam()
685 if (new_tx_ring_size == adapter->tx_ring_size && in vmxnet3_set_ringparam()
741 adapter->tx_ring_size = new_tx_ring_size; in vmxnet3_set_ringparam()
/kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/ishtp/
Dclient.h68 unsigned int tx_ring_size; member
Dclient-buffers.c66 for (j = 0; j < cl->tx_ring_size; ++j) { in ishtp_cl_alloc_tx_ring()
Dclient.c102 cl->tx_ring_size = CL_DEF_TX_RING_SIZE; in ishtp_cl_init()
103 cl->tx_ring_free_size = cl->tx_ring_size; in ishtp_cl_init()
1088 cl->tx_ring_size = size; in ishtp_set_tx_ring_size()
/kernel/linux/linux-5.10/drivers/net/wan/
Dfsl_ucc_hdlc.h99 unsigned short tx_ring_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/nvidia/
Dforcedeth.c832 int tx_ring_size; member
1027 np->tx_ring_size), in free_rings()
1034 np->tx_ring_size), in free_rings()
1959 np->last_tx.orig = &np->tx_ring.orig[np->tx_ring_size-1]; in nv_init_tx()
1961 np->last_tx.ex = &np->tx_ring.ex[np->tx_ring_size-1]; in nv_init_tx()
1964 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1]; in nv_init_tx()
1971 for (i = 0; i < np->tx_ring_size; i++) { in nv_init_tx()
2034 for (i = 0; i < np->tx_ring_size; i++) { in nv_drain_tx()
2095 …return (u32)(np->tx_ring_size - ((np->tx_ring_size + (np->put_tx_ctx - np->get_tx_ctx)) % np->tx_r… in nv_get_empty_tx_slots()
2773 for (i = 0; i < np->tx_ring_size; i += 4) { in nv_tx_timeout()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/altera/
Daltera_tse_main.c78 #define TSE_TX_THRESH(x) (x->tx_ring_size / 4)
86 return priv->tx_cons + priv->tx_ring_size - priv->tx_prod - 1; in tse_tx_avail()
276 unsigned int tx_descs = priv->tx_ring_size; in alloc_init_skbufs()
321 unsigned int tx_descs = priv->tx_ring_size; in free_skbufs()
450 unsigned int txsize = priv->tx_ring_size; in tse_tx_complete()
564 unsigned int txsize = priv->tx_ring_size; in tse_start_xmit()
1202 priv->tx_ring_size = dma_tx_num; in tse_open()
Daltera_tse.h437 u32 tx_ring_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_main.c171 params->prof[i].tx_ring_size = MLX4_EN_MIN_TX_SIZE; in mlx4_en_get_profile()
174 params->prof[i].tx_ring_size = MLX4_EN_DEF_TX_RING_SIZE; in mlx4_en_get_profile()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dipoib_tx.c698 unsigned long tx_ring_size; in hfi1_ipoib_txreq_init() local
705 tx_ring_size = roundup_pow_of_two((unsigned long)dev->tx_queue_len + 1); in hfi1_ipoib_txreq_init()
757 kcalloc_node(tx_ring_size, in hfi1_ipoib_txreq_init()
765 txq->tx_ring.max_items = tx_ring_size; in hfi1_ipoib_txreq_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/
Djme.c561 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_setup_tx_resources()
576 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources()
578 txring->bufinf = kcalloc(jme->tx_ring_size, in jme_setup_tx_resources()
588 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_setup_tx_resources()
610 for (i = 0 ; i < jme->tx_ring_size ; ++i) { in jme_free_tx_resources()
625 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_free_tx_resources()
659 jwrite32(jme, JME_TXQDC, jme->tx_ring_size); in jme_enable_tx_engine()
1437 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet()
3004 jme->tx_ring_size = 1 << 10; in jme_init_one()
3005 jme->tx_ring_mask = jme->tx_ring_size - 1; in jme_init_one()
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb_main.c60 * (bp)->tx_ring_size)
63 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4)
179 return index & (bp->tx_ring_size - 1); in macb_tx_ring_wrap()
1080 bp->tx_ring_size) <= MACB_TX_WAKEUP_THRESH(bp)) in macb_tx_interrupt()
1871 if (unlikely(entry == (bp->tx_ring_size - 1))) in macb_tx_map()
2082 bp->tx_ring_size) < desc_cnt) { in macb_start_xmit()
2102 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, bp->tx_ring_size) < 1) in macb_start_xmit()
2256 size = bp->tx_ring_size * sizeof(struct macb_tx_skb); in macb_alloc_consistent()
2288 for (i = 0; i < bp->tx_ring_size; i++) { in gem_init_rings()
2312 for (i = 0; i < bp->tx_ring_size; i++) { in macb_init_rings()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/adaptec/
Dstarfire.c867 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local
886tx_ring_size = ((sizeof(starfire_tx_desc) * TX_RING_SIZE + QUEUE_ALIGN - 1) / QUEUE_ALIGN) * QUEUE… in netdev_open()
888 np->queue_mem_size = tx_done_q_size + rx_done_q_size + tx_ring_size + rx_ring_size; in netdev_open()
903 np->rx_ring = (void *) np->tx_ring + tx_ring_size; in netdev_open()
904 np->rx_ring_dma = np->tx_ring_dma + tx_ring_size; in netdev_open()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c152 if (tx_avail != bp->tx_ring_size) in bnxt_rx_xdp()

123