Lines Matching refs:tx_ring

51 static inline int nfp_net_tx_full(struct nfp_net_tx_ring *tx_ring, int dcnt)  in nfp_net_tx_full()  argument
53 return (tx_ring->wr_p - tx_ring->rd_p) >= (tx_ring->cnt - dcnt); in nfp_net_tx_full()
56 static inline void nfp_net_tx_xmit_more_flush(struct nfp_net_tx_ring *tx_ring) in nfp_net_tx_xmit_more_flush() argument
59 nfp_qcp_wr_ptr_add(tx_ring->qcp_q, tx_ring->wr_ptr_add); in nfp_net_tx_xmit_more_flush()
60 tx_ring->wr_ptr_add = 0; in nfp_net_tx_xmit_more_flush()
64 nfp_net_read_tx_cmpl(struct nfp_net_tx_ring *tx_ring, struct nfp_net_dp *dp) in nfp_net_read_tx_cmpl() argument
66 if (tx_ring->txrwb) in nfp_net_read_tx_cmpl()
67 return *tx_ring->txrwb; in nfp_net_read_tx_cmpl()
68 return nfp_qcp_rd_ptr_read(tx_ring->qcp_q); in nfp_net_read_tx_cmpl()
100 struct nfp_net_tx_ring *tx_ring, unsigned int idx);
151 struct nfp_net_tx_ring *tx_ring);
153 struct nfp_net_tx_ring *tx_ring);
154 void (*tx_ring_free)(struct nfp_net_tx_ring *tx_ring);
156 struct nfp_net_tx_ring *tx_ring);
158 struct nfp_net_tx_ring *tx_ring);
162 struct nfp_net_tx_ring *tx_ring,
167 nfp_net_tx_ring_reset(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring) in nfp_net_tx_ring_reset() argument
169 return dp->ops->tx_ring_reset(dp, tx_ring); in nfp_net_tx_ring_reset()
180 nfp_net_tx_ring_alloc(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring) in nfp_net_tx_ring_alloc() argument
182 return dp->ops->tx_ring_alloc(dp, tx_ring); in nfp_net_tx_ring_alloc()
186 nfp_net_tx_ring_free(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring) in nfp_net_tx_ring_free() argument
188 dp->ops->tx_ring_free(tx_ring); in nfp_net_tx_ring_free()
193 struct nfp_net_tx_ring *tx_ring) in nfp_net_tx_ring_bufs_alloc() argument
195 return dp->ops->tx_ring_bufs_alloc(dp, tx_ring); in nfp_net_tx_ring_bufs_alloc()
200 struct nfp_net_tx_ring *tx_ring) in nfp_net_tx_ring_bufs_free() argument
202 dp->ops->tx_ring_bufs_free(dp, tx_ring); in nfp_net_tx_ring_bufs_free()
208 struct nfp_net_tx_ring *tx_ring, in nfp_net_debugfs_print_tx_descs() argument
211 dp->ops->print_tx_descs(file, r_vec, tx_ring, d_rd_p, d_wr_p); in nfp_net_debugfs_print_tx_descs()