/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_xdp.c | 44 prod = txr->tx_prod; in bnxt_xmit_bd() 45 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd() 66 WRITE_ONCE(txr->tx_prod, prod); in bnxt_xmit_bd() 90 WRITE_ONCE(txr->tx_prod, prod); in bnxt_xmit_bd() 128 u16 tx_cons = txr->tx_cons; in bnxt_tx_int_xdp() 229 struct bnxt_tx_ring_info *txr; in bnxt_rx_xdp() local 245 txr = rxr->bnapi->tx_ring; in bnxt_rx_xdp() 337 struct bnxt_tx_ring_info *txr; in bnxt_xdp_xmit() local 349 txr = &bp->tx_ring[ring]; in bnxt_xdp_xmit() 360 if (!bnxt_tx_avail(bp, txr)) in bnxt_xdp_xmit() [all …]
|
H A D | bnxt.c | 344 txr->tx_cons, txr->tx_prod, idx); in bnxt_sched_reset_txr() 414 prod = txr->tx_prod; in bnxt_start_xmit() 662 prod = txr->tx_prod; in bnxt_start_xmit() 683 bnxt_txr_db_kick(bp, txr, txr->tx_prod); in bnxt_start_xmit() 684 txr->tx_buf_ring[txr->tx_prod].skb = NULL; in bnxt_start_xmit() 3293 txr->tx_push, txr->tx_push_mapping); in bnxt_free_tx_rings() 3591 if (!txr) in bnxt_init_ring_struct() 4419 if (txr) { in bnxt_clear_ring_indices() 4420 txr->tx_prod = 0; in bnxt_clear_ring_indices() 11550 if (!txr) in bnxt_dump_tx_sw_state() [all …]
|
H A D | bnxt_xdp.h | 16 struct bnxt_tx_ring_info *txr,
|
H A D | bnxt.h | 2258 const struct bnxt_tx_ring_info *txr) in bnxt_tx_avail() argument 2260 u32 used = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); in bnxt_tx_avail() 2355 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
|
H A D | bnxt_ethtool.c | 3622 struct bnxt_tx_ring_info *txr = &bp->tx_ring[0]; in bnxt_run_loopback() local 3652 bnxt_xmit_bd(bp, txr, map, pkt_size, NULL); in bnxt_run_loopback() 3657 bnxt_db_write(bp, &txr->tx_db, txr->tx_prod); in bnxt_run_loopback()
|
/openbmc/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_spi.c | 288 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_transmit() 301 while (qca->txr.skb[qca->txr.head]) { in qcaspi_transmit() 317 n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; in qcaspi_transmit() 325 dev_kfree_skb(qca->txr.skb[qca->txr.head]); in qcaspi_transmit() 326 qca->txr.skb[qca->txr.head] = NULL; in qcaspi_transmit() 462 if (txr->skb[txr->tail]) in qcaspi_tx_ring_has_space() 598 !qca->txr.skb[qca->txr.head]) in qcaspi_spi_thread() 605 qca->txr.skb[qca->txr.head]); in qcaspi_spi_thread() 753 if (qca->txr.skb[qca->txr.tail]) { in qcaspi_netdev_xmit() 793 qca->txr.skb[qca->txr.tail] = skb; in qcaspi_netdev_xmit() [all …]
|
H A D | qca_debug.c | 82 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_info_show() 84 else if (qca->txr.skb[qca->txr.tail]) in qcaspi_info_show() 92 qca->txr.size); in qcaspi_info_show() 258 ring->tx_pending = qca->txr.count; in qcaspi_get_ringparam() 276 qca->txr.count = max_t(u32, ring->tx_pending, TX_RING_MIN_LEN); in qcaspi_set_ringparam() 277 qca->txr.count = min_t(u16, qca->txr.count, TX_RING_MAX_LEN); in qcaspi_set_ringparam()
|
H A D | qca_spi.h | 86 struct tx_ring txr; member
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bnx2.c | 253 diff = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); in bnx2_tx_avail() 754 txr->tx_desc_ring = in bnx2_alloc_tx_mem() 5120 txr->tx_cons = 0; in bnx2_clear_ring_states() 5183 txr->tx_prod = 0; in bnx2_init_tx_ring() 5846 txbd = &txr->tx_desc_ring[BNX2_TX_RING_IDX(txr->tx_prod)]; in bnx2_run_loopback() 5854 txr->tx_prod = BNX2_NEXT_TX_BD(txr->tx_prod); in bnx2_run_loopback() 5857 BNX2_WR16(bp, txr->tx_bidx_addr, txr->tx_prod); in bnx2_run_loopback() 5858 BNX2_WR(bp, txr->tx_bseq_addr, txr->tx_prod_bseq); in bnx2_run_loopback() 6600 prod = txr->tx_prod; in bnx2_start_xmit() 6701 BNX2_WR(bp, txr->tx_bseq_addr, txr->tx_prod_bseq); in bnx2_start_xmit() [all …]
|
H A D | bcmsysport.c | 1142 struct bcm_sysport_tx_ring *txr; in bcm_sysport_rx_isr() local 1177 txr = &priv->tx_rings[ring]; in bcm_sysport_rx_isr() 1179 if (likely(napi_schedule_prep(&txr->napi))) { in bcm_sysport_rx_isr() 1181 __napi_schedule(&txr->napi); in bcm_sysport_rx_isr() 1193 struct bcm_sysport_tx_ring *txr; in bcm_sysport_tx_isr() local 1209 txr = &priv->tx_rings[ring]; in bcm_sysport_tx_isr() 1211 if (likely(napi_schedule_prep(&txr->napi))) { in bcm_sysport_tx_isr() 1213 __napi_schedule_irqoff(&txr->napi); in bcm_sysport_tx_isr()
|
/openbmc/qemu/hw/net/ |
H A D | e1000e_core.c | 880 txr->i = &i[idx]; in e1000e_tx_ring_init() 881 txr->tx = &core->tx[idx]; in e1000e_tx_ring_init() 907 const E1000ERingInfo *txi = txr->i; in e1000e_start_xmit() 2409 E1000E_TxRing txr; in e1000e_set_tctl() local 2413 e1000e_tx_ring_init(core, &txr, 0); in e1000e_set_tctl() 2414 e1000e_start_xmit(core, &txr); in e1000e_set_tctl() 2418 e1000e_tx_ring_init(core, &txr, 1); in e1000e_set_tctl() 2419 e1000e_start_xmit(core, &txr); in e1000e_set_tctl() 2426 E1000E_TxRing txr; in e1000e_set_tdt() local 2433 e1000e_tx_ring_init(core, &txr, qidx); in e1000e_set_tdt() [all …]
|
H A D | igb_core.c | 771 igb_tx_ring_init(IGBCore *core, IGB_TxRing *txr, int idx) in igb_tx_ring_init() argument 794 txr->i = &i[idx]; in igb_tx_ring_init() 795 txr->tx = &core->tx[idx]; in igb_tx_ring_init() 877 igb_start_xmit(IGBCore *core, const IGB_TxRing *txr) in igb_start_xmit() argument 882 const E1000ERingInfo *txi = txr->i; in igb_start_xmit() 903 igb_process_tx_desc(core, d, txr->tx, &desc, txi->idx); in igb_start_xmit() 913 net_tx_pkt_reset(txr->tx->tx_pkt, net_tx_pkt_unmap_frag_pci, d); in igb_start_xmit() 2806 IGB_TxRing txr; in igb_set_tdt() local 2811 igb_tx_ring_init(core, &txr, qn); in igb_set_tdt() 2812 igb_start_xmit(core, &txr); in igb_set_tdt()
|
/openbmc/linux/drivers/net/ethernet/sgi/ |
H A D | ioc3-eth.c | 86 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()
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.c | 184 struct ena_ring *txr, *rxr; in ena_init_io_rings() local 190 txr = &adapter->tx_ring[i]; in ena_init_io_rings() 194 ena_init_io_rings_common(adapter, txr, i); in ena_init_io_rings() 197 txr->ring_size = adapter->requested_tx_ring_size; in ena_init_io_rings() 198 txr->tx_max_header_size = ena_dev->tx_max_header_size; in ena_init_io_rings() 199 txr->tx_mem_queue_type = ena_dev->tx_mem_queue_type; in ena_init_io_rings() 200 txr->sgl_size = adapter->max_tx_sgl_size; in ena_init_io_rings() 201 txr->smoothed_interval = in ena_init_io_rings() 204 spin_lock_init(&txr->xdp_tx_lock); in ena_init_io_rings() 3223 struct ena_ring *txr; in ena_restore_device() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xskxceiver.c | 250 struct xsk_ring_prod *txr; in __xsk_configure_socket() local 261 txr = ifobject->tx_on ? &xsk->tx : NULL; in __xsk_configure_socket() 263 return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg); in __xsk_configure_socket()
|