/Linux-v4.19/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 192 (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 …]
|
D | pxa168_eth.c | 236 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()
|
D | sky2.c | 1115 *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/ |
D | mtk_eth_soc.c | 55 #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 …]
|
D | ethtool.c | 160 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/ |
D | adm8211.c | 38 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/ |
D | pcnet32.c | 277 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/ |
D | gianfar.c | 184 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/ |
D | bcm63xx_enet.c | 435 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 …]
|
D | bcm63xx_enet.h | 251 int tx_ring_size; member
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_xdp.c | 60 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/ |
D | pch_gbe_ethtool.c | 310 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/ |
D | bnx2x_cmn.h | 752 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/ |
D | vmxnet3_int.h | 370 u32 tx_ring_size; member 462 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
|
D | vmxnet3_ethtool.c | 511 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/ |
D | fsl_ucc_hdlc.h | 103 unsigned short tx_ring_size; member
|
/Linux-v4.19/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 832 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/ |
D | altera_tse_main.c | 89 #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/ |
D | client.h | 85 unsigned int tx_ring_size; member
|
D | client-buffers.c | 73 for (j = 0; j < cl->tx_ring_size; ++j) { in ishtp_cl_alloc_tx_ring()
|
/Linux-v4.19/drivers/net/ethernet/ |
D | jme.c | 575 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/ |
D | macb_main.c | 54 * (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/ |
D | ena_netdev.h | 305 u32 tx_ring_size; member
|
/Linux-v4.19/drivers/net/ethernet/adaptec/ |
D | starfire.c | 882 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local 901 …tx_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/ |
D | en_main.c | 170 params->prof[i].tx_ring_size = MLX4_EN_DEF_TX_RING_SIZE; in mlx4_en_get_profile()
|