Home
last modified time | relevance | path

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

123

/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
739 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_data_tso()
816 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_put_hdr_tso()
832 if ((txq->tx_desc_count + tso_count_descs(skb)) >= txq->tx_ring_size) { in txq_submit_tso()
907 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_frag_skb()
946 if (txq->tx_ring_size - txq->tx_desc_count < MAX_SKB_FRAGS + 1) { in txq_submit_skb()
958 if (txq->tx_curr_desc == txq->tx_ring_size) in txq_submit_skb()
1088 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()
1219 pep->tx_curr_desc_q = (tx_desc_curr + 1) % pep->tx_ring_size; in eth_alloc_tx_desc_index()
1240 && pep->tx_ring_size - pep->tx_desc_count > 1) { in pxa168_rx_poll()
1280 if (pep->tx_ring_size - pep->tx_desc_count <= 1) { in pxa168_eth_start_xmit()
1463 pep->tx_ring_size = NUM_TX_DESCS; in pxa168_eth_probe()
1471 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()
1596 sky2->tx_ring_size * 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()
1977 for (i = sky2->tx_prod; i != slot; i = RING_NEXT(i, sky2->tx_ring_size)) { in sky2_xmit_frame()
2006 BUG_ON(done >= sky2->tx_ring_size); in sky2_tx_complete()
2009 idx = RING_NEXT(idx, sky2->tx_ring_size)) { in sky2_tx_complete()
2025 sky2->tx_next = RING_NEXT(idx, sky2->tx_ring_size); in sky2_tx_complete()
[all …]
Dmvneta.c433 u16 tx_ring_size; member
2974 txq->size = pp->tx_ring_size; in mvneta_txq_sw_init()
4022 ring->tx_pending = pp->tx_ring_size; in mvneta_ethtool_get_ringparam()
4035 pp->tx_ring_size = clamp_t(u16, ring->tx_pending, in mvneta_ethtool_set_ringparam()
4037 if (pp->tx_ring_size != ring->tx_pending) in mvneta_ethtool_set_ringparam()
4039 pp->tx_ring_size, ring->tx_pending); in mvneta_ethtool_set_ringparam()
4377 txq->size = pp->tx_ring_size; in mvneta_init()
4614 pp->tx_ring_size = MVNETA_MAX_TXD; in mvneta_probe()
/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()
1467 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_init_rings()
1501 for (i = 0; i < priv->tx_ring_size; i++) { in adm8211_free_rings()
1642 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw()
1647 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
1650 entry = priv->cur_tx % priv->tx_ring_size; in adm8211_tx_raw()
1657 if (entry == priv->tx_ring_size - 1) in adm8211_tx_raw()
[all …]
/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 …]
/drivers/net/ethernet/freescale/
Dgianfar.c1094 for (i = 0; i < tx_queue->tx_ring_size; i++) { in free_skb_tx_queue()
1319 tx_queue->num_txbdfree = tx_queue->tx_ring_size; in gfar_init_bds()
1327 for (j = 0; j < tx_queue->tx_ring_size; j++) { in gfar_init_bds()
1369 priv->total_tx_ring_size += priv->tx_queue[i]->tx_ring_size; in gfar_alloc_skb_resources()
1391 addr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
1392 vaddr += sizeof(struct txbd8) * tx_queue->tx_ring_size; in gfar_alloc_skb_resources()
1410 kmalloc_array(tx_queue->tx_ring_size, in gfar_alloc_skb_resources()
1416 for (j = 0; j < tx_queue->tx_ring_size; j++) in gfar_alloc_skb_resources()
1914 tx_queue->tx_ring_size); in gfar_start_xmit()
1928 txbdp = next_txbd(txbdp, base, tx_queue->tx_ring_size); in gfar_start_xmit()
[all …]
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c422 while (priv->tx_desc_count < priv->tx_ring_size) { in bcm_enet_tx_reclaim()
447 if (priv->tx_dirty_desc == priv->tx_ring_size) in bcm_enet_tx_reclaim()
614 if (priv->tx_curr_desc == priv->tx_ring_size) { in bcm_enet_start_xmit()
936 size = priv->tx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open()
946 priv->tx_skb = kcalloc(priv->tx_ring_size, sizeof(struct sk_buff *), in bcm_enet_open()
953 priv->tx_desc_count = priv->tx_ring_size; in bcm_enet_open()
1032 enet_dmac_writel(priv, priv->tx_ring_size, ENETDMAC_LEN, priv->tx_chan); in bcm_enet_open()
1496 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1514 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
1743 priv->tx_ring_size = BCMENET_DEF_TX_DESC; in bcm_enet_probe()
[all …]
Dbcm63xx_enet.h251 int tx_ring_size; member
/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()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.h750 WARN_ON(used > txdata->tx_ring_size); in bnx2x_tx_avail()
751 WARN_ON((txdata->tx_ring_size - used) > MAX_TX_AVAIL); in bnx2x_tx_avail()
754 return (s16)(txdata->tx_ring_size) - used; in bnx2x_tx_avail()
1172 txdata->tx_ring_size = IS_FCOE_FP(fp) ? MAX_TX_AVAIL : bp->tx_ring_size; in bnx2x_init_txdata()
/drivers/net/vmxnet3/
Dvmxnet3_int.h370 u32 tx_ring_size; member
465 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size,
Dvmxnet3_ethtool.c521 param->tx_pending = adapter->tx_ring_size; in vmxnet3_get_ringparam()
601 if (new_tx_ring_size == adapter->tx_ring_size && in vmxnet3_set_ringparam()
657 adapter->tx_ring_size = new_tx_ring_size; in vmxnet3_set_ringparam()
/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()
2734 for (i = 0; i < np->tx_ring_size; i += 4) { in nv_tx_timeout()
[all …]
/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()
272 unsigned int tx_descs = priv->tx_ring_size; in alloc_init_skbufs()
317 unsigned int tx_descs = priv->tx_ring_size; in free_skbufs()
446 unsigned int txsize = priv->tx_ring_size; in tse_tx_complete()
560 unsigned int txsize = priv->tx_ring_size; in tse_start_xmit()
1198 priv->tx_ring_size = dma_tx_num; in tse_open()
Daltera_tse.h437 u32 tx_ring_size; member
/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()
/drivers/hid/intel-ish-hid/ishtp/
Dclient.h68 unsigned int tx_ring_size; member
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()
1078 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()
/drivers/net/wan/
Dfsl_ucc_hdlc.h99 unsigned short tx_ring_size; member
/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()
1439 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet()
3012 jme->tx_ring_size = 1 << 10; in jme_init_one()
3013 jme->tx_ring_mask = jme->tx_ring_size - 1; in jme_init_one()
/drivers/net/ethernet/cadence/
Dmacb_main.c61 * (bp)->tx_ring_size)
64 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4)
176 return index & (bp->tx_ring_size - 1); in macb_tx_ring_wrap()
903 bp->tx_ring_size) <= MACB_TX_WAKEUP_THRESH(bp)) in macb_tx_interrupt()
1617 if (unlikely(entry == (bp->tx_ring_size - 1))) in macb_tx_map()
1838 bp->tx_ring_size) < desc_cnt) { in macb_start_xmit()
1858 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, bp->tx_ring_size) < 1) in macb_start_xmit()
2012 size = bp->tx_ring_size * sizeof(struct macb_tx_skb); in macb_alloc_consistent()
2044 for (i = 0; i < bp->tx_ring_size; i++) { in gem_init_rings()
2068 for (i = 0; i < bp->tx_ring_size; i++) { in macb_init_rings()
[all …]
/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()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c151 if (tx_avail != bp->tx_ring_size) in bnxt_rx_xdp()

123