Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/net/ethernet/marvell/
Dmv643xx_eth.c181 (addr < txq->tso_hdrs_dma + txq->tx_ring_size * TSO_HEADER_SIZE))
343 int tx_ring_size; member
404 int tx_ring_size; member
736 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_data_tso()
814 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_hdr_tso()
829 if ((txq->tx_desc_count + tso_count_descs(skb)) >= txq->tx_ring_size) { in txq_submit_tso()
904 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_frag_skb()
943 if (txq->tx_ring_size - txq->tx_desc_count < MAX_SKB_FRAGS + 1) { in txq_submit_skb()
955 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_skb()
1085 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()
1084 int tx_desc_num = pep->tx_ring_size; in txq_init()
1092 size = pep->tx_ring_size * sizeof(struct tx_desc); in txq_init()
1217 pep->tx_curr_desc_q = (tx_desc_curr + 1) % pep->tx_ring_size; in eth_alloc_tx_desc_index()
1238 && pep->tx_ring_size - pep->tx_desc_count > 1) { in pxa168_rx_poll()
1278 if (pep->tx_ring_size - pep->tx_desc_count <= 1) { in pxa168_eth_start_xmit()
1452 pep->tx_ring_size = NUM_TX_DESCS; in pxa168_eth_probe()
1460 pep->tx_ring_size = pep->pd->tx_queue_size; in pxa168_eth_probe()
Dsky2.c1103 *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 …]
/linux-6.6.21/drivers/net/wireless/admtek/
Dadm8211.c33 static unsigned int tx_ring_size __read_mostly = 16;
36 module_param(tx_ring_size, uint, 0);
310 unsigned int entry = dirty_tx % priv->tx_ring_size; in adm8211_interrupt_tci()
342 if (priv->cur_tx - dirty_tx < priv->tx_ring_size - 2) in adm8211_interrupt_tci()
1465 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_init_rings()
1498 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_free_rings()
1638 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw()
1643 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
1646 entry = priv->cur_tx % priv->tx_ring_size; in adm8211_tx_raw()
1653 if (entry == priv->tx_ring_size - 1) in adm8211_tx_raw()
[all …]
/linux-6.6.21/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()
870 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam()
904 if ((1 << i) != lp->tx_ring_size) in pcnet32_set_ringparam()
925 lp->rx_ring_size, lp->tx_ring_size); in pcnet32_set_ringparam()
991 numbuffs = min(numbuffs, (int)min(lp->rx_ring_size, lp->tx_ring_size)); in pcnet32_loopback_test()
1367 delta = (lp->cur_tx - dirty_tx) & (lp->tx_mod_mask + lp->tx_ring_size); in pcnet32_tx()
1368 if (delta > lp->tx_ring_size) { in pcnet32_tx()
[all …]
/linux-6.6.21/drivers/net/ethernet/freescale/
Dgianfar.c1070 for (i = 0; i < tx_queue->tx_ring_size; i++) { in free_skb_tx_queue()
1295 tx_queue->num_txbdfree = tx_queue->tx_ring_size; in gfar_init_bds()
1303 for (j = 0; j < tx_queue->tx_ring_size; j++) { in gfar_init_bds()
1345 priv->total_tx_ring_size += priv->tx_queue[i]->tx_ring_size; in gfar_alloc_skb_resources()
1367 addr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
1368 vaddr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
1386 kmalloc_array(tx_queue->tx_ring_size, in gfar_alloc_skb_resources()
1392 for (j = 0; j < tx_queue->tx_ring_size; j++) in gfar_alloc_skb_resources()
1882 tx_queue->tx_ring_size); in gfar_start_xmit()
1896 txbdp = next_txbd(txbdp, base, tx_queue->tx_ring_size); in gfar_start_xmit()
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c436 while (priv->tx_desc_count < priv->tx_ring_size) { in bcm_enet_tx_reclaim()
461 if (priv->tx_dirty_desc == priv->tx_ring_size) in bcm_enet_tx_reclaim()
631 if (priv->tx_curr_desc == priv->tx_ring_size) { in bcm_enet_start_xmit()
974 size = priv->tx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open()
984 priv->tx_skb = kcalloc(priv->tx_ring_size, sizeof(struct sk_buff *), in bcm_enet_open()
991 priv->tx_desc_count = priv->tx_ring_size; in bcm_enet_open()
1070 enet_dmac_writel(priv, priv->tx_ring_size, ENETDMAC_LEN, priv->tx_chan); in bcm_enet_open()
1514 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1534 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
1766 priv->tx_ring_size = BCMENET_DEF_TX_DESC; in bcm_enet_probe()
[all …]
Dbcm63xx_enet.h257 int tx_ring_size; member
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dipoib_tx.c686 u32 tx_ring_size, tx_item_size; in hfi1_ipoib_txreq_init() local
694 tx_ring_size = roundup_pow_of_two(dev->tx_queue_len + 1); in hfi1_ipoib_txreq_init()
732 kvzalloc_node(array_size(tx_ring_size, tx_item_size), in hfi1_ipoib_txreq_init()
737 txq->tx_ring.max_items = tx_ring_size; in hfi1_ipoib_txreq_init()
741 for (j = 0; j < tx_ring_size; j++) { in hfi1_ipoib_txreq_init()
760 for (j = 0; j < tx_ring_size; j++) in hfi1_ipoib_txreq_init()
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c309 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local
314 tx_ring_size = (int)sizeof(struct pch_gbe_tx_ring); in pch_gbe_set_ringparam()
322 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/ethernet/altera/
Daltera_tse_main.c81 #define TSE_TX_THRESH(x) (x->tx_ring_size / 4)
89 return priv->tx_cons + priv->tx_ring_size - priv->tx_prod - 1; in tse_tx_avail()
258 unsigned int tx_descs = priv->tx_ring_size; in alloc_init_skbufs()
303 unsigned int tx_descs = priv->tx_ring_size; in free_skbufs()
433 unsigned int txsize = priv->tx_ring_size; in tse_tx_complete()
548 unsigned int txsize = priv->tx_ring_size; in tse_start_xmit()
921 priv->tx_ring_size = dma_tx_num; in tse_open()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dcore.c122 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
204 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
289 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
371 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
456 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
539 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
620 .tx_ring_size = DP_TCL_DATA_RING_SIZE_WCN6750,
701 .tx_ring_size = DP_TCL_DATA_RING_SIZE,
/linux-6.6.21/drivers/hid/intel-ish-hid/ishtp/
Dclient.h68 unsigned int tx_ring_size; member
Dclient.c103 cl->tx_ring_size = CL_DEF_TX_RING_SIZE; in ishtp_cl_init()
104 cl->tx_ring_free_size = cl->tx_ring_size; in ishtp_cl_init()
1102 cl->tx_ring_size = size; in ishtp_set_tx_ring_size()
Dclient-buffers.c66 for (j = 0; j < cl->tx_ring_size; ++j) { in ishtp_cl_alloc_tx_ring()
/linux-6.6.21/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()
1954 np->last_tx.orig = &np->tx_ring.orig[np->tx_ring_size-1]; in nv_init_tx()
1956 np->last_tx.ex = &np->tx_ring.ex[np->tx_ring_size-1]; in nv_init_tx()
1959 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1]; in nv_init_tx()
1966 for (i = 0; i < np->tx_ring_size; i++) { in nv_init_tx()
2029 for (i = 0; i < np->tx_ring_size; i++) { in nv_drain_tx()
2090 …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()
2768 for (i = 0; i < np->tx_ring_size; i += 4) { in nv_tx_timeout()
[all …]
/linux-6.6.21/drivers/net/wan/
Dfsl_ucc_hdlc.h99 unsigned short tx_ring_size; member
/linux-6.6.21/drivers/net/vmxnet3/
Dvmxnet3_int.h402 u32 tx_ring_size; member
528 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/ethernet/
Djme.c562 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_setup_tx_resources()
577 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources()
579 txring->bufinf = kcalloc(jme->tx_ring_size, in jme_setup_tx_resources()
589 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_setup_tx_resources()
611 for (i = 0 ; i < jme->tx_ring_size ; ++i) { in jme_free_tx_resources()
626 TX_RING_ALLOC_SIZE(jme->tx_ring_size), in jme_free_tx_resources()
660 jwrite32(jme, JME_TXQDC, jme->tx_ring_size); in jme_enable_tx_engine()
1432 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet()
2990 jme->tx_ring_size = 1 << 10; in jme_init_one()
2991 jme->tx_ring_mask = jme->tx_ring_size - 1; in jme_init_one()
/linux-6.6.21/Documentation/networking/
Ddriver.rst54 return dr->tx_ring_size - (used & bp->tx_ring_mask);
/linux-6.6.21/drivers/net/ethernet/cadence/
Dmacb_main.c63 * (bp)->tx_ring_size)
66 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4)
184 return index & (bp->tx_ring_size - 1); in macb_tx_ring_wrap()
1297 bp->tx_ring_size) <= MACB_TX_WAKEUP_THRESH(bp)) in macb_tx_complete()
2161 if (unlikely(entry == (bp->tx_ring_size - 1))) in macb_tx_map()
2378 bp->tx_ring_size) < desc_cnt) { in macb_start_xmit()
2400 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, bp->tx_ring_size) < 1) in macb_start_xmit()
2554 size = bp->tx_ring_size * sizeof(struct macb_tx_skb); in macb_alloc_consistent()
2586 for (i = 0; i < bp->tx_ring_size; i++) { in gem_init_rings()
2610 for (i = 0; i < bp->tx_ring_size; i++) { in macb_init_rings()
[all …]
/linux-6.6.21/drivers/net/ethernet/adaptec/
Dstarfire.c869 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local
888tx_ring_size = ((sizeof(starfire_tx_desc) * TX_RING_SIZE + QUEUE_ALIGN - 1) / QUEUE_ALIGN) * QUEUE… in netdev_open()
890 np->queue_mem_size = tx_done_q_size + rx_done_q_size + tx_ring_size + rx_ring_size; in netdev_open()
905 np->rx_ring = (void *) np->tx_ring + tx_ring_size; in netdev_open()
906 np->rx_ring_dma = np->tx_ring_dma + tx_ring_size; in netdev_open()
/linux-6.6.21/drivers/net/ethernet/google/gve/
Dgve_adminq.h242 __be16 tx_ring_size; member

123