Lines Matching refs:tx_ring
121 struct nfp_net_tx_ring *tx_ring; in nfp_net_debugfs_tx_q_read() local
130 if (!r_vec->nfp_net || !r_vec->tx_ring) in nfp_net_debugfs_tx_q_read()
133 tx_ring = r_vec->tx_ring; in nfp_net_debugfs_tx_q_read()
137 txd_cnt = tx_ring->cnt; in nfp_net_debugfs_tx_q_read()
139 d_rd_p = nfp_qcp_rd_ptr_read(tx_ring->qcp_q); in nfp_net_debugfs_tx_q_read()
140 d_wr_p = nfp_qcp_wr_ptr_read(tx_ring->qcp_q); in nfp_net_debugfs_tx_q_read()
143 tx_ring->idx, tx_ring->rd_p, tx_ring->wr_p, d_rd_p, d_wr_p); in nfp_net_debugfs_tx_q_read()
146 txd = &tx_ring->txds[i]; in nfp_net_debugfs_tx_q_read()
151 skb = READ_ONCE(tx_ring->txbufs[i].skb); in nfp_net_debugfs_tx_q_read()
155 if (tx_ring->txbufs[i].dma_addr) in nfp_net_debugfs_tx_q_read()
157 &tx_ring->txbufs[i].dma_addr); in nfp_net_debugfs_tx_q_read()
159 if (i == tx_ring->rd_p % txd_cnt) in nfp_net_debugfs_tx_q_read()
161 if (i == tx_ring->wr_p % txd_cnt) in nfp_net_debugfs_tx_q_read()