Searched refs:txr (Results 1 - 13 of 13) sorted by relevance

/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_xdp.c26 struct bnxt_tx_ring_info *txr,
44 prod = txr->tx_prod;
45 tx_buf = &txr->tx_buf_ring[RING_TX(bp, prod)];
50 txbd = &txr->tx_desc_ring[TX_RING(bp, prod)][TX_IDX(prod)];
55 txbd->tx_bd_opaque = SET_TX_OPAQUE(bp, txr, prod, 1 + num_frags);
66 WRITE_ONCE(txr->tx_prod, prod);
69 frag_tx_buf = &txr->tx_buf_ring[RING_TX(bp, prod)];
72 txbd = &txr->tx_desc_ring[TX_RING(bp, prod)][TX_IDX(prod)];
90 WRITE_ONCE(txr->tx_prod, prod);
95 static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, argument
25 bnxt_xmit_bd(struct bnxt *bp, struct bnxt_tx_ring_info *txr, dma_addr_t mapping, u32 len, struct xdp_buff *xdp) argument
107 __bnxt_xmit_xdp_redirect(struct bnxt *bp, struct bnxt_tx_ring_info *txr, dma_addr_t mapping, u32 len, struct xdp_frame *xdpf) argument
123 struct bnxt_tx_ring_info *txr = bnapi->tx_ring[0]; local
229 struct bnxt_tx_ring_info *txr; local
342 struct bnxt_tx_ring_info *txr; local
[all...]
H A Dbnxt_xdp.h16 struct bnxt_tx_ring_info *txr,
H A Dbnxt.c390 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr, argument
393 struct bnxt_napi *bnapi = txr->bnapi;
399 txr->txq_index, txr->tx_hw_cons,
400 txr->tx_cons, txr->tx_prod, curr);
438 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, argument
443 bnxt_db_write(bp, &txr->tx_db, prod);
444 txr->kick_pending = 0;
459 struct bnxt_tx_ring_info *txr; local
764 __bnxt_tx_int(struct bnxt *bp, struct bnxt_tx_ring_info *txr, int budget) argument
835 struct bnxt_tx_ring_info *txr; local
2850 struct bnxt_tx_ring_info *txr; local
2904 struct bnxt_tx_ring_info *txr = bnapi->tx_ring[0]; local
3210 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
3646 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
3691 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
3939 struct bnxt_tx_ring_info *txr; local
4152 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
4829 struct bnxt_tx_ring_info *txr; local
5067 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
6012 bnxt_cp_ring_for_tx(struct bnxt *bp, struct bnxt_tx_ring_info *txr) argument
6598 struct bnxt_tx_ring_info *txr; local
6823 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
6946 struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; local
7734 struct bnxt_tx_ring_info *txr; local
10659 struct bnxt_tx_ring_info *txr; local
10678 struct bnxt_tx_ring_info *txr; local
12781 struct bnxt_tx_ring_info *txr; local
[all...]
H A Dbnxt.h70 #define SET_TX_OPAQUE(bp, txr, idx, bds) \
71 (((txr)->tx_napi_idx << TX_OPAQUE_RING_SHIFT) | \
1166 #define bnxt_for_each_napi_tx(iter, bnapi, txr) \
1167 for (iter = 0, txr = (bnapi)->tx_ring[0]; txr; \
1168 txr = (iter < BNXT_MAX_TXR_PER_NAPI - 1) ? \
2598 const struct bnxt_tx_ring_info *txr)
2600 u32 used = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons);
2712 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
2597 bnxt_tx_avail(struct bnxt *bp, const struct bnxt_tx_ring_info *txr) argument
[all...]
H A Dbnxt_ethtool.c4563 struct bnxt_tx_ring_info *txr = &bp->tx_ring[0]; local
4593 bnxt_xmit_bd(bp, txr, map, pkt_size, NULL);
4598 bnxt_db_write(bp, &txr->tx_db, txr->tx_prod);
/linux-master/drivers/net/ethernet/qualcomm/
H A Dqca_spi.c273 if (qca->txr.skb[qca->txr.head] == NULL)
286 while (qca->txr.skb[qca->txr.head]) {
287 pkt_len = qca->txr.skb[qca->txr.head]->len + QCASPI_HW_PKT_LEN;
295 if (qcaspi_tx_frame(qca, qca->txr.skb[qca->txr.head]) == -1) {
302 n_stats->tx_bytes += qca->txr.skb[qca->txr
445 qcaspi_tx_ring_has_space(struct tx_ring *txr) argument
[all...]
H A Dqca_debug.c69 if (qca->txr.skb[qca->txr.head] == NULL)
71 else if (qca->txr.skb[qca->txr.tail])
79 qca->txr.size);
247 ring->tx_pending = qca->txr.count;
265 qca->txr.count = max_t(u32, ring->tx_pending, QCASPI_TX_RING_MIN_LEN);
266 qca->txr.count = min_t(u16, qca->txr.count, QCASPI_TX_RING_MAX_LEN);
H A Dqca_spi.h74 struct tx_ring txr; member in struct:qcaspi
/linux-master/drivers/net/ethernet/broadcom/
H A Dbnx2.c246 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) argument
253 diff = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons);
697 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; local
699 if (txr->tx_desc_ring) {
701 txr->tx_desc_ring,
702 txr->tx_desc_mapping);
703 txr->tx_desc_ring = NULL;
705 kfree(txr->tx_buf_ring);
706 txr
749 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; local
2844 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; local
3387 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; local
3481 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; local
5112 struct bnx2_tx_ring_info *txr; local
5132 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) argument
5167 struct bnx2_tx_ring_info *txr; local
5418 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; local
5799 struct bnx2_tx_ring_info *txr; local
6584 struct bnx2_tx_ring_info *txr; local
[all...]
H A Dbcmsysport.c1142 struct bcm_sysport_tx_ring *txr; local
1177 txr = &priv->tx_rings[ring];
1179 if (likely(napi_schedule_prep(&txr->napi))) {
1181 __napi_schedule(&txr->napi);
1193 struct bcm_sysport_tx_ring *txr; local
1209 txr = &priv->tx_rings[ring];
1211 if (likely(napi_schedule_prep(&txr->napi))) {
1213 __napi_schedule_irqoff(&txr->napi);
/linux-master/drivers/net/ethernet/sgi/
H A Dioc3-eth.c86 struct ioc3_etxd *txr; member in struct:ioc3_private
615 desc = &ip->txr[entry];
642 ip->txr[i].cmd = 0;
902 ip->txr = PTR_ALIGN(ip->tx_ring, SZ_16K);
1039 desc = &ip->txr[produce];
/linux-master/drivers/net/ethernet/amazon/ena/
H A Dena_netdev.c210 struct ena_ring *txr, *rxr; local
216 txr = &adapter->tx_ring[i];
220 ena_init_io_rings_common(adapter, txr, i);
223 txr->ring_size = adapter->requested_tx_ring_size;
224 txr->tx_max_header_size = ena_dev->tx_max_header_size;
225 txr->tx_mem_queue_type = ena_dev->tx_mem_queue_type;
226 txr->sgl_size = adapter->max_tx_sgl_size;
227 txr->smoothed_interval =
229 txr->disable_meta_caching = adapter->disable_meta_caching;
230 spin_lock_init(&txr
3289 struct ena_ring *txr; local
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dxskxceiver.c253 struct xsk_ring_prod *txr; local
264 txr = ifobject->tx_on ? &xsk->tx : NULL;
266 return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg);

Completed in 226 milliseconds