/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_xdp.c | 24 struct bnxt_tx_ring_info *txr, in bnxt_xmit_bd() argument 32 prod = txr->tx_prod; in bnxt_xmit_bd() 33 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd() 35 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd() 43 txr->tx_prod = prod; in bnxt_xmit_bd() 47 static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp() argument 52 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp() 58 struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp_redirect() argument 64 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp_redirect() 73 struct bnxt_tx_ring_info *txr = bnapi->tx_ring; in bnxt_tx_int_xdp() local [all …]
|
D | bnxt.c | 357 struct bnxt_tx_ring_info *txr; in bnxt_start_xmit() local 367 txr = &bp->tx_ring[bp->tx_ring_map[i]]; in bnxt_start_xmit() 368 prod = txr->tx_prod; in bnxt_start_xmit() 370 free_size = bnxt_tx_avail(bp, txr); in bnxt_start_xmit() 380 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit() 384 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_start_xmit() 401 struct tx_push_buffer *tx_push_buf = txr->tx_push; in bnxt_start_xmit() 404 void __iomem *db = txr->tx_db.doorbell; in bnxt_start_xmit() 447 txbd->tx_bd_haddr = txr->data_mapping; in bnxt_start_xmit() 449 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_start_xmit() [all …]
|
D | bnxt_xdp.h | 14 struct bnxt_tx_ring_info *txr,
|
D | bnxt.h | 1847 static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_tx_avail() argument 1853 ((txr->tx_prod - txr->tx_cons) & bp->tx_ring_mask); in bnxt_tx_avail()
|
D | bnxt_ethtool.c | 2814 struct bnxt_tx_ring_info *txr = &bp->tx_ring[0]; in bnxt_run_loopback() local 2844 bnxt_xmit_bd(bp, txr, map, pkt_size); in bnxt_run_loopback() 2849 bnxt_db_write(bp, &txr->tx_db, txr->tx_prod); in bnxt_run_loopback()
|
/Linux-v5.4/drivers/net/ethernet/qualcomm/ |
D | qca_spi.c | 287 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_transmit() 300 while (qca->txr.skb[qca->txr.head]) { in qcaspi_transmit() 301 pkt_len = qca->txr.skb[qca->txr.head]->len + QCASPI_HW_PKT_LEN; in qcaspi_transmit() 309 if (qcaspi_tx_frame(qca, qca->txr.skb[qca->txr.head]) == -1) { 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() 326 qca->txr.size -= pkt_len; in qcaspi_transmit() 327 new_head = qca->txr.head + 1; in qcaspi_transmit() 328 if (new_head >= qca->txr.count) in qcaspi_transmit() [all …]
|
D | qca_debug.c | 79 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_info_show() 81 else if (qca->txr.skb[qca->txr.tail]) in qcaspi_info_show() 89 qca->txr.size); in qcaspi_info_show() 255 ring->tx_pending = qca->txr.count; in qcaspi_get_ringparam() 272 qca->txr.count = max_t(u32, ring->tx_pending, TX_RING_MIN_LEN); in qcaspi_set_ringparam() 273 qca->txr.count = min_t(u16, qca->txr.count, TX_RING_MAX_LEN); in qcaspi_set_ringparam()
|
D | qca_spi.h | 85 struct tx_ring txr; member
|
/Linux-v5.4/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 253 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail() argument 260 diff = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); in bnx2_tx_avail() 703 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; in bnx2_free_tx_mem() local 705 if (txr->tx_desc_ring) { in bnx2_free_tx_mem() 707 txr->tx_desc_ring, in bnx2_free_tx_mem() 708 txr->tx_desc_mapping); in bnx2_free_tx_mem() 709 txr->tx_desc_ring = NULL; in bnx2_free_tx_mem() 711 kfree(txr->tx_buf_ring); in bnx2_free_tx_mem() 712 txr->tx_buf_ring = NULL; in bnx2_free_tx_mem() 755 struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; in bnx2_alloc_tx_mem() local [all …]
|
D | bcmsysport.c | 1106 struct bcm_sysport_tx_ring *txr; in bcm_sysport_rx_isr() local 1141 txr = &priv->tx_rings[ring]; in bcm_sysport_rx_isr() 1143 if (likely(napi_schedule_prep(&txr->napi))) { in bcm_sysport_rx_isr() 1145 __napi_schedule(&txr->napi); in bcm_sysport_rx_isr() 1157 struct bcm_sysport_tx_ring *txr; in bcm_sysport_tx_isr() local 1173 txr = &priv->tx_rings[ring]; in bcm_sysport_tx_isr() 1175 if (likely(napi_schedule_prep(&txr->napi))) { in bcm_sysport_tx_isr() 1177 __napi_schedule_irqoff(&txr->napi); in bcm_sysport_tx_isr()
|
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/ |
D | enetc.c | 767 static int enetc_alloc_txbdr(struct enetc_bdr *txr) in enetc_alloc_txbdr() argument 771 txr->tx_swbd = vzalloc(txr->bd_count * sizeof(struct enetc_tx_swbd)); in enetc_alloc_txbdr() 772 if (!txr->tx_swbd) in enetc_alloc_txbdr() 775 err = enetc_dma_alloc_bdr(txr, sizeof(union enetc_tx_bd)); in enetc_alloc_txbdr() 777 vfree(txr->tx_swbd); in enetc_alloc_txbdr() 781 txr->next_to_clean = 0; in enetc_alloc_txbdr() 782 txr->next_to_use = 0; in enetc_alloc_txbdr() 787 static void enetc_free_txbdr(struct enetc_bdr *txr) in enetc_free_txbdr() argument 791 for (i = 0; i < txr->bd_count; i++) in enetc_free_txbdr() 792 enetc_free_tx_skb(txr, &txr->tx_swbd[i]); in enetc_free_txbdr() [all …]
|
/Linux-v5.4/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 92 struct ioc3_etxd *txr; member 807 desc = &ip->txr[entry]; in ioc3_tx_unmap() 834 ip->txr[i].cmd = 0; in ioc3_clean_tx_ring() 1254 ip->txr = dma_direct_alloc_pages(ip->dma_dev, TX_RING_SIZE, in ioc3_probe() 1257 if (!ip->txr) { in ioc3_probe() 1318 if (ip->txr) in ioc3_probe() 1319 dma_direct_free_pages(ip->dma_dev, TX_RING_SIZE, ip->txr, in ioc3_probe() 1340 dma_direct_free_pages(ip->dma_dev, TX_RING_SIZE, ip->txr, in ioc3_remove_one() 1427 desc = &ip->txr[produce]; in ioc3_start_xmit()
|
/Linux-v5.4/drivers/net/ethernet/amazon/ena/ |
D | ena_netdev.c | 170 struct ena_ring *txr, *rxr; in ena_init_io_rings() local 176 txr = &adapter->tx_ring[i]; in ena_init_io_rings() 180 ena_init_io_rings_common(adapter, txr, i); in ena_init_io_rings() 184 txr->ring_size = adapter->requested_tx_ring_size; in ena_init_io_rings() 185 txr->tx_max_header_size = ena_dev->tx_max_header_size; in ena_init_io_rings() 186 txr->tx_mem_queue_type = ena_dev->tx_mem_queue_type; in ena_init_io_rings() 187 txr->sgl_size = adapter->max_tx_sgl_size; in ena_init_io_rings() 188 txr->smoothed_interval = in ena_init_io_rings()
|