Lines Matching defs:ring
188 #define is_tx_ring(ring) ((ring)->flags & RINGF_DIR) argument
189 #define is_rx_ring(ring) (!is_tx_ring(ring)) argument
190 #define ring_to_dma_dir(ring) (is_tx_ring(ring) ? \ argument
249 #define ring_ptr_move_fw(ring, p) \ argument
251 #define ring_ptr_move_bw(ring, p) \ argument
259 #define assert_is_ring_idx(ring, idx) \ argument
265 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist()
273 static inline int ring_space(struct hnae_ring *ring) in ring_space()
279 static inline int is_ring_empty(struct hnae_ring *ring) in is_ring_empty()
478 #define ring_to_dev(ring) ((ring)->q->dev->dev) argument
497 static inline int hnae_reserve_buffer_map(struct hnae_ring *ring, in hnae_reserve_buffer_map()
519 static inline int hnae_alloc_buffer_attach(struct hnae_ring *ring, int i) in hnae_alloc_buffer_attach()
531 static inline void hnae_buffer_detach(struct hnae_ring *ring, int i) in hnae_buffer_detach()
537 static inline void hnae_free_buffer_detach(struct hnae_ring *ring, int i) in hnae_free_buffer_detach()
550 static inline void hnae_replace_buffer(struct hnae_ring *ring, int i, in hnae_replace_buffer()
563 static inline void hnae_reuse_buffer(struct hnae_ring *ring, int i) in hnae_reuse_buffer()