Home
last modified time | relevance | path

Searched refs:txr (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_xdp.c32 prod = txr->tx_prod; in bnxt_xmit_bd()
33 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd()
43 txr->tx_prod = prod; in bnxt_xmit_bd()
77 u16 tx_cons = txr->tx_cons; in bnxt_tx_int_xdp()
100 txr->tx_cons = tx_cons; in bnxt_tx_int_xdp()
115 struct bnxt_tx_ring_info *txr; in bnxt_rx_xdp() local
135 txr = rxr->bnapi->tx_ring; in bnxt_rx_xdp()
216 struct bnxt_tx_ring_info *txr; in bnxt_xdp_xmit() local
228 txr = &bp->tx_ring[ring]; in bnxt_xdp_xmit()
233 if (!txr || !bnxt_tx_avail(bp, txr) || in bnxt_xdp_xmit()
[all …]
A Dbnxt.c377 prod = txr->tx_prod; in bnxt_start_xmit()
602 txr->tx_prod = prod; in bnxt_start_xmit()
626 prod = txr->tx_prod; in bnxt_start_xmit()
645 bnxt_txr_db_kick(bp, txr, txr->tx_prod); in bnxt_start_xmit()
646 txr->tx_buf_ring[txr->tx_prod].skb = NULL; in bnxt_start_xmit()
707 txr->tx_cons = cons; in bnxt_tx_int()
3137 txr->tx_push, txr->tx_push_mapping); in bnxt_free_tx_rings()
3434 if (!txr) in bnxt_init_ring_struct()
4244 if (txr) { in bnxt_clear_ring_indices()
11202 if (!txr) in bnxt_dump_tx_sw_state()
[all …]
A Dbnxt_xdp.h14 struct bnxt_tx_ring_info *txr,
A Dbnxt.h2198 static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_tx_avail() argument
2204 ((txr->tx_prod - txr->tx_cons) & bp->tx_ring_mask); in bnxt_tx_avail()
A Dbnxt_ethtool.c3418 struct bnxt_tx_ring_info *txr = &bp->tx_ring[0]; in bnxt_run_loopback() local
3448 bnxt_xmit_bd(bp, txr, map, pkt_size); in bnxt_run_loopback()
3453 bnxt_db_write(bp, &txr->tx_db, txr->tx_prod); in bnxt_run_loopback()
/linux/drivers/net/ethernet/qualcomm/
A Dqca_spi.c287 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_transmit()
300 while (qca->txr.skb[qca->txr.head]) { in qcaspi_transmit()
316 n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; in qcaspi_transmit()
324 dev_kfree_skb(qca->txr.skb[qca->txr.head]); in qcaspi_transmit()
325 qca->txr.skb[qca->txr.head] = NULL; in qcaspi_transmit()
461 if (txr->skb[txr->tail]) in qcaspi_tx_ring_has_space()
585 (qca->txr.skb[qca->txr.head] == NULL) && in qcaspi_spi_thread()
593 qca->txr.skb[qca->txr.head]); in qcaspi_spi_thread()
737 if (qca->txr.skb[qca->txr.tail]) { in qcaspi_netdev_xmit()
777 qca->txr.skb[qca->txr.tail] = skb; in qcaspi_netdev_xmit()
[all …]
A Dqca_debug.c80 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_info_show()
82 else if (qca->txr.skb[qca->txr.tail]) in qcaspi_info_show()
90 qca->txr.size); in qcaspi_info_show()
256 ring->tx_pending = qca->txr.count; in qcaspi_get_ringparam()
273 qca->txr.count = max_t(u32, ring->tx_pending, TX_RING_MIN_LEN); in qcaspi_set_ringparam()
274 qca->txr.count = min_t(u16, qca->txr.count, TX_RING_MAX_LEN); in qcaspi_set_ringparam()
A Dqca_spi.h86 struct tx_ring txr; member
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc.c1754 txr->tx_swbd = vzalloc(txr->bd_count * sizeof(struct enetc_tx_swbd)); in enetc_alloc_txbdr()
1755 if (!txr->tx_swbd) in enetc_alloc_txbdr()
1762 txr->tso_headers = dma_alloc_coherent(txr->dev, in enetc_alloc_txbdr()
1777 dma_free_coherent(txr->dev, txr->bd_count * sizeof(union enetc_tx_bd), in enetc_alloc_txbdr()
1778 txr->bd_base, txr->bd_dma_base); in enetc_alloc_txbdr()
1779 txr->bd_base = NULL; in enetc_alloc_txbdr()
1781 vfree(txr->tx_swbd); in enetc_alloc_txbdr()
1792 enetc_free_tx_frame(txr, &txr->tx_swbd[i]); in enetc_free_txbdr()
1796 dma_free_coherent(txr->dev, txr->bd_count * TSO_HEADER_SIZE, in enetc_free_txbdr()
1797 txr->tso_headers, txr->tso_headers_dma); in enetc_free_txbdr()
[all …]
/linux/drivers/net/ethernet/broadcom/
A Dbnx2.c254 diff = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); in bnx2_tx_avail()
755 txr->tx_desc_ring = in bnx2_alloc_tx_mem()
5137 txr->tx_cons = 0; in bnx2_clear_ring_states()
5200 txr->tx_prod = 0; in bnx2_init_tx_ring()
5862 txbd = &txr->tx_desc_ring[BNX2_TX_RING_IDX(txr->tx_prod)]; in bnx2_run_loopback()
5870 txr->tx_prod = BNX2_NEXT_TX_BD(txr->tx_prod); in bnx2_run_loopback()
5873 BNX2_WR16(bp, txr->tx_bidx_addr, txr->tx_prod); in bnx2_run_loopback()
5874 BNX2_WR(bp, txr->tx_bseq_addr, txr->tx_prod_bseq); in bnx2_run_loopback()
6616 prod = txr->tx_prod; in bnx2_start_xmit()
6717 BNX2_WR(bp, txr->tx_bseq_addr, txr->tx_prod_bseq); in bnx2_start_xmit()
[all …]
A Dbcmsysport.c1131 struct bcm_sysport_tx_ring *txr; in bcm_sysport_rx_isr() local
1166 txr = &priv->tx_rings[ring]; in bcm_sysport_rx_isr()
1168 if (likely(napi_schedule_prep(&txr->napi))) { in bcm_sysport_rx_isr()
1170 __napi_schedule(&txr->napi); in bcm_sysport_rx_isr()
1182 struct bcm_sysport_tx_ring *txr; in bcm_sysport_tx_isr() local
1198 txr = &priv->tx_rings[ring]; in bcm_sysport_tx_isr()
1200 if (likely(napi_schedule_prep(&txr->napi))) { in bcm_sysport_tx_isr()
1202 __napi_schedule_irqoff(&txr->napi); in bcm_sysport_tx_isr()
/linux/drivers/net/ethernet/sgi/
A Dioc3-eth.c86 struct ioc3_etxd *txr; member
615 desc = &ip->txr[entry]; in ioc3_tx_unmap()
642 ip->txr[i].cmd = 0; in ioc3_clean_tx_ring()
902 ip->txr = PTR_ALIGN(ip->tx_ring, SZ_16K); in ioc3eth_probe()
1041 desc = &ip->txr[produce]; in ioc3_start_xmit()
/linux/drivers/net/ethernet/amazon/ena/
A Dena_netdev.c687 struct ena_ring *txr, *rxr; in ena_init_io_rings() local
693 txr = &adapter->tx_ring[i]; in ena_init_io_rings()
697 ena_init_io_rings_common(adapter, txr, i); in ena_init_io_rings()
700 txr->ring_size = adapter->requested_tx_ring_size; in ena_init_io_rings()
701 txr->tx_max_header_size = ena_dev->tx_max_header_size; in ena_init_io_rings()
702 txr->tx_mem_queue_type = ena_dev->tx_mem_queue_type; in ena_init_io_rings()
703 txr->sgl_size = adapter->max_tx_sgl_size; in ena_init_io_rings()
704 txr->smoothed_interval = in ena_init_io_rings()
706 txr->disable_meta_caching = adapter->disable_meta_caching; in ena_init_io_rings()
707 spin_lock_init(&txr->xdp_tx_lock); in ena_init_io_rings()
/linux/tools/testing/selftests/bpf/
A Dxdpxceiver.c267 struct xsk_ring_prod *txr; in xsk_configure_socket() local
276 txr = ifobject->tx_on ? &xsk->tx : NULL; in xsk_configure_socket()
278 return xsk_socket__create(&xsk->xsk, ifobject->ifname, qid, umem->umem, rxr, txr, &cfg); in xsk_configure_socket()
/linux/samples/bpf/
A Dxdpsock_user.c856 struct xsk_ring_prod *txr; in xsk_configure_socket() local
874 txr = tx ? &xsk->tx : NULL; in xsk_configure_socket()
876 rxr, txr, &cfg); in xsk_configure_socket()

Completed in 99 milliseconds