Lines Matching refs:tx_ring

433 static void ixgbe_clean_xdp_tx_buffer(struct ixgbe_ring *tx_ring,  in ixgbe_clean_xdp_tx_buffer()  argument
437 dma_unmap_single(tx_ring->dev, in ixgbe_clean_xdp_tx_buffer()
444 struct ixgbe_ring *tx_ring, int napi_budget) in ixgbe_clean_xdp_tx_irq() argument
446 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq()
448 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_clean_xdp_tx_irq()
453 tx_bi = &tx_ring->tx_buffer_info[ntc]; in ixgbe_clean_xdp_tx_irq()
454 tx_desc = IXGBE_TX_DESC(tx_ring, ntc); in ixgbe_clean_xdp_tx_irq()
464 ixgbe_clean_xdp_tx_buffer(tx_ring, tx_bi); in ixgbe_clean_xdp_tx_irq()
473 if (unlikely(ntc == tx_ring->count)) { in ixgbe_clean_xdp_tx_irq()
475 tx_bi = tx_ring->tx_buffer_info; in ixgbe_clean_xdp_tx_irq()
476 tx_desc = IXGBE_TX_DESC(tx_ring, 0); in ixgbe_clean_xdp_tx_irq()
483 tx_ring->next_to_clean = ntc; in ixgbe_clean_xdp_tx_irq()
485 u64_stats_update_begin(&tx_ring->syncp); in ixgbe_clean_xdp_tx_irq()
486 tx_ring->stats.bytes += total_bytes; in ixgbe_clean_xdp_tx_irq()
487 tx_ring->stats.packets += total_packets; in ixgbe_clean_xdp_tx_irq()
488 u64_stats_update_end(&tx_ring->syncp); in ixgbe_clean_xdp_tx_irq()
498 return ixgbe_xmit_zc(tx_ring, q_vector->tx.work_limit); in ixgbe_clean_xdp_tx_irq()
532 void ixgbe_xsk_clean_tx_ring(struct ixgbe_ring *tx_ring) in ixgbe_xsk_clean_tx_ring() argument
534 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_xsk_clean_tx_ring()
535 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_xsk_clean_tx_ring()
540 tx_bi = &tx_ring->tx_buffer_info[ntc]; in ixgbe_xsk_clean_tx_ring()
543 ixgbe_clean_xdp_tx_buffer(tx_ring, tx_bi); in ixgbe_xsk_clean_tx_ring()
550 if (ntc == tx_ring->count) in ixgbe_xsk_clean_tx_ring()