Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/net/ethernet/marvell/
Dmv643xx_eth.c192 (addr < txq->tso_hdrs_dma + txq->tx_ring_size * TSO_HEADER_SIZE))
354 int tx_ring_size; member
415 int tx_ring_size; member
751 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_data_tso()
828 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_hdr_tso()
844 if ((txq->tx_desc_count + tso_count_descs(skb)) >= txq->tx_ring_size) { in txq_submit_tso()
919 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_frag_skb()
958 if (txq->tx_ring_size - txq->tx_desc_count < MAX_SKB_FRAGS + 1) { in txq_submit_skb()
970 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_skb()
1100 if (txq->tx_used_desc == txq->tx_ring_size) in txq_reclaim()
[all …]
Dpxa168_eth.c236 int tx_ring_size; member
733 pep->tx_used_desc_q = (tx_index + 1) % pep->tx_ring_size; in txq_reclaim()
1096 int tx_desc_num = pep->tx_ring_size; in txq_init()
1104 size = pep->tx_ring_size * sizeof(struct tx_desc); in txq_init()
1230 pep->tx_curr_desc_q = (tx_desc_curr + 1) % pep->tx_ring_size; in eth_alloc_tx_desc_index()
1251 && pep->tx_ring_size - pep->tx_desc_count > 1) { in pxa168_rx_poll()
1289 if (pep->tx_ring_size - pep->tx_desc_count <= 1) { in pxa168_eth_start_xmit()
1473 pep->tx_ring_size = NUM_TX_DESCS; in pxa168_eth_probe()
1481 pep->tx_ring_size = pep->pd->tx_queue_size; in pxa168_eth_probe()
Dsky2.c1115 *slot = RING_NEXT(*slot, sky2->tx_ring_size); in get_tx_le()
1611 sky2->tx_ring_size * in sky2_alloc_buffers()
1617 sky2->tx_ring = kcalloc(sky2->tx_ring_size, sizeof(struct tx_ring_info), in sky2_alloc_buffers()
1650 sky2->tx_ring_size * sizeof(struct sky2_tx_le), in sky2_free_buffers()
1717 sky2->tx_ring_size - 1); in sky2_hw_up()
1793 return (sky2->tx_prod - sky2->tx_cons) & (sky2->tx_ring_size - 1); in tx_inuse()
1992 for (i = sky2->tx_prod; i != slot; i = RING_NEXT(i, sky2->tx_ring_size)) { in sky2_xmit_frame()
2021 BUG_ON(done >= sky2->tx_ring_size); in sky2_tx_complete()
2024 idx = RING_NEXT(idx, sky2->tx_ring_size)) { in sky2_tx_complete()
2040 sky2->tx_next = RING_NEXT(idx, sky2->tx_ring_size); in sky2_tx_complete()
[all …]
/Linux-v4.19/drivers/staging/mt7621-eth/
Dmtk_eth_soc.c55 #define NEXT_TX_DESP_IDX(X) (((X) + 1) & (ring->tx_ring_size - 1))
395 for (i = 0; i < ring->tx_ring_size; i++) in mtk_pdma_tx_clean()
403 ring->tx_ring_size * sizeof(*ring->tx_dma), in mtk_pdma_tx_clean()
416 for (i = 0; i < ring->tx_ring_size; i++) in mtk_qdma_tx_clean()
424 ring->tx_ring_size * sizeof(*ring->tx_dma), in mtk_qdma_tx_clean()
575 return (u32)(ring->tx_ring_size - in mtk_pdma_empty_txd()
577 (ring->tx_ring_size - 1))); in mtk_pdma_empty_txd()
1344 ring->tx_ring_size = eth->soc->dma_ring_size; in mtk_pdma_tx_alloc()
1347 ring->tx_thresh = max((unsigned long)ring->tx_ring_size >> 2, in mtk_pdma_tx_alloc()
1350 ring->tx_buf = kcalloc(ring->tx_ring_size, sizeof(*ring->tx_buf), in mtk_pdma_tx_alloc()
[all …]
Dethtool.c160 mac->hw->tx_ring.tx_ring_size = BIT(fls(ring->tx_pending) - 1); in mtk_set_ringparam()
174 ring->tx_pending = mac->hw->tx_ring.tx_ring_size; in mtk_get_ringparam()
/Linux-v4.19/drivers/net/wireless/admtek/
Dadm8211.c38 static unsigned int tx_ring_size __read_mostly = 16;
41 module_param(tx_ring_size, uint, 0);
315 unsigned int entry = dirty_tx % priv->tx_ring_size; in adm8211_interrupt_tci()
347 if (priv->cur_tx - dirty_tx < priv->tx_ring_size - 2) in adm8211_interrupt_tci()
1471 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_init_rings()
1505 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_free_rings()
1646 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw()
1651 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
1654 entry = priv->cur_tx % priv->tx_ring_size; in adm8211_tx_raw()
1661 if (entry == priv->tx_ring_size - 1) in adm8211_tx_raw()
[all …]
/Linux-v4.19/drivers/net/ethernet/amd/
Dpcnet32.c277 unsigned int tx_ring_size; /* current tx ring size */ member
509 sizeof(struct pcnet32_tx_head) * lp->tx_ring_size, in pcnet32_realloc_tx_ring()
512 lp->tx_ring_size = entries; in pcnet32_realloc_tx_ring()
513 lp->tx_mod_mask = lp->tx_ring_size - 1; in pcnet32_realloc_tx_ring()
880 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam()
912 if ((1 << i) != lp->tx_ring_size) in pcnet32_set_ringparam()
933 lp->rx_ring_size, lp->tx_ring_size); in pcnet32_set_ringparam()
999 numbuffs = min(numbuffs, (int)min(lp->rx_ring_size, lp->tx_ring_size)); in pcnet32_loopback_test()
1377 delta = (lp->cur_tx - dirty_tx) & (lp->tx_mod_mask + lp->tx_ring_size); in pcnet32_tx()
1378 if (delta > lp->tx_ring_size) { in pcnet32_tx()
[all …]
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar.c184 tx_queue->num_txbdfree = tx_queue->tx_ring_size; in gfar_init_bds()
192 for (j = 0; j < tx_queue->tx_ring_size; j++) { in gfar_init_bds()
234 priv->total_tx_ring_size += priv->tx_queue[i]->tx_ring_size; in gfar_alloc_skb_resources()
256 addr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
257 vaddr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
275 kmalloc_array(tx_queue->tx_ring_size, in gfar_alloc_skb_resources()
281 for (j = 0; j < tx_queue->tx_ring_size; j++) in gfar_alloc_skb_resources()
1393 priv->tx_queue[i]->tx_ring_size = DEFAULT_TX_RING_SIZE; in gfar_probe()
1466 i, priv->tx_queue[i]->tx_ring_size); in gfar_probe()
1979 for (i = 0; i < tx_queue->tx_ring_size; i++) { in free_skb_tx_queue()
[all …]
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c435 while (priv->tx_desc_count < priv->tx_ring_size) { in bcm_enet_tx_reclaim()
460 if (priv->tx_dirty_desc == priv->tx_ring_size) in bcm_enet_tx_reclaim()
626 if (priv->tx_curr_desc == priv->tx_ring_size) { in bcm_enet_start_xmit()
957 size = priv->tx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open()
967 priv->tx_skb = kcalloc(priv->tx_ring_size, sizeof(struct sk_buff *), in bcm_enet_open()
974 priv->tx_desc_count = priv->tx_ring_size; in bcm_enet_open()
1053 enet_dmac_writel(priv, priv->tx_ring_size, ENETDMAC_LEN, priv->tx_chan); in bcm_enet_open()
1517 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1535 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
1765 priv->tx_ring_size = BCMENET_DEF_TX_DESC; in bcm_enet_probe()
[all …]
Dbcm63xx_enet.h251 int tx_ring_size; member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c60 if (bnxt_tx_avail(bp, txr) == bp->tx_ring_size) { in bnxt_tx_int_xdp()
113 if (tx_avail != bp->tx_ring_size) in bnxt_rx_xdp()
/Linux-v4.19/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c310 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local
315 tx_ring_size = (int)sizeof(struct pch_gbe_tx_ring); in pch_gbe_set_ringparam()
323 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.h752 WARN_ON(used > txdata->tx_ring_size); in bnx2x_tx_avail()
753 WARN_ON((txdata->tx_ring_size - used) > MAX_TX_AVAIL); in bnx2x_tx_avail()
756 return (s16)(txdata->tx_ring_size) - used; in bnx2x_tx_avail()
1174 txdata->tx_ring_size = IS_FCOE_FP(fp) ? MAX_TX_AVAIL : bp->tx_ring_size; in bnx2x_init_txdata()
/Linux-v4.19/drivers/net/vmxnet3/
Dvmxnet3_int.h370 u32 tx_ring_size; member
462 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
Dvmxnet3_ethtool.c511 param->tx_pending = adapter->tx_ring_size; in vmxnet3_get_ringparam()
591 if (new_tx_ring_size == adapter->tx_ring_size && in vmxnet3_set_ringparam()
647 adapter->tx_ring_size = new_tx_ring_size; in vmxnet3_set_ringparam()
/Linux-v4.19/drivers/net/wan/
Dfsl_ucc_hdlc.h103 unsigned short tx_ring_size; member
/Linux-v4.19/drivers/net/ethernet/nvidia/
Dforcedeth.c832 int tx_ring_size; member
1030 np->tx_ring_size), in free_rings()
1037 np->tx_ring_size), in free_rings()
1941 np->last_tx.orig = &np->tx_ring.orig[np->tx_ring_size-1]; in nv_init_tx()
1943 np->last_tx.ex = &np->tx_ring.ex[np->tx_ring_size-1]; in nv_init_tx()
1946 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1]; in nv_init_tx()
1953 for (i = 0; i < np->tx_ring_size; i++) { in nv_init_tx()
2016 for (i = 0; i < np->tx_ring_size; i++) { in nv_drain_tx()
2077 …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()
2707 for (i = 0; i < np->tx_ring_size; i += 4) { in nv_tx_timeout()
[all …]
/Linux-v4.19/drivers/net/ethernet/altera/
Daltera_tse_main.c89 #define TSE_TX_THRESH(x) (x->tx_ring_size / 4)
97 return priv->tx_cons + priv->tx_ring_size - priv->tx_prod - 1; in tse_tx_avail()
283 unsigned int tx_descs = priv->tx_ring_size; in alloc_init_skbufs()
328 unsigned int tx_descs = priv->tx_ring_size; in free_skbufs()
457 unsigned int txsize = priv->tx_ring_size; in tse_tx_complete()
571 unsigned int txsize = priv->tx_ring_size; in tse_start_xmit()
1210 priv->tx_ring_size = dma_tx_num; in tse_open()
/Linux-v4.19/drivers/hid/intel-ish-hid/ishtp/
Dclient.h85 unsigned int tx_ring_size; member
Dclient-buffers.c73 for (j = 0; j < cl->tx_ring_size; ++j) { in ishtp_cl_alloc_tx_ring()
/Linux-v4.19/drivers/net/ethernet/
Djme.c575 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_setup_tx_resources()
590 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources()
592 txring->bufinf = kcalloc(jme->tx_ring_size, in jme_setup_tx_resources()
601 memset(txring->alloc, 0, TX_RING_ALLOC_SIZE(jme->tx_ring_size)); in jme_setup_tx_resources()
607 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_setup_tx_resources()
629 for (i = 0 ; i < jme->tx_ring_size ; ++i) { in jme_free_tx_resources()
644 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_free_tx_resources()
678 jwrite32(jme, JME_TXQDC, jme->tx_ring_size); in jme_enable_tx_engine()
1458 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet()
3033 jme->tx_ring_size = 1 << 10; in jme_init_one()
[all …]
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_main.c54 * (bp)->tx_ring_size)
57 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4)
166 return index & (bp->tx_ring_size - 1); in macb_tx_ring_wrap()
888 bp->tx_ring_size) <= MACB_TX_WAKEUP_THRESH(bp)) in macb_tx_interrupt()
1569 if (unlikely(entry == (bp->tx_ring_size - 1))) in macb_tx_map()
1794 bp->tx_ring_size) < desc_cnt) { in macb_start_xmit()
1814 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, bp->tx_ring_size) < 1) in macb_start_xmit()
1968 size = bp->tx_ring_size * sizeof(struct macb_tx_skb); in macb_alloc_consistent()
2000 for (i = 0; i < bp->tx_ring_size; i++) { in gem_init_rings()
2024 for (i = 0; i < bp->tx_ring_size; i++) { in macb_init_rings()
[all …]
/Linux-v4.19/drivers/net/ethernet/amazon/ena/
Dena_netdev.h305 u32 tx_ring_size; member
/Linux-v4.19/drivers/net/ethernet/adaptec/
Dstarfire.c882 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local
901tx_ring_size = ((sizeof(starfire_tx_desc) * TX_RING_SIZE + QUEUE_ALIGN - 1) / QUEUE_ALIGN) * QUEUE… in netdev_open()
903 np->queue_mem_size = tx_done_q_size + rx_done_q_size + tx_ring_size + rx_ring_size; in netdev_open()
916 np->rx_ring = (void *) np->tx_ring + tx_ring_size; in netdev_open()
917 np->rx_ring_dma = np->tx_ring_dma + tx_ring_size; in netdev_open()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_main.c170 params->prof[i].tx_ring_size = MLX4_EN_DEF_TX_RING_SIZE; in mlx4_en_get_profile()

123