Lines Matching refs:hnae_ring
266 struct hnae_ring { struct
316 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() argument
324 static inline int ring_space(struct hnae_ring *ring) in ring_space()
330 static inline int is_ring_empty(struct hnae_ring *ring) in is_ring_empty()
346 int (*alloc_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
347 void (*free_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
348 int (*map_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
349 void (*unmap_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
356 struct hnae_ring rx_ring ____cacheline_internodealigned_in_smp;
357 struct hnae_ring tx_ring ____cacheline_internodealigned_in_smp;
476 void (*toggle_ring_irq)(struct hnae_ring *ring, u32 val);
586 static inline int hnae_reserve_buffer_map(struct hnae_ring *ring, in hnae_reserve_buffer_map()
608 static inline int hnae_alloc_buffer_attach(struct hnae_ring *ring, int i) in hnae_alloc_buffer_attach()
620 static inline void hnae_buffer_detach(struct hnae_ring *ring, int i) in hnae_buffer_detach()
626 static inline void hnae_free_buffer_detach(struct hnae_ring *ring, int i) in hnae_free_buffer_detach()
639 static inline void hnae_replace_buffer(struct hnae_ring *ring, int i, in hnae_replace_buffer()
650 static inline void hnae_reuse_buffer(struct hnae_ring *ring, int i) in hnae_reuse_buffer()
662 struct hnae_ring *ring; in hnae_reinit_all_ring_desc()
677 struct hnae_ring *ring; in hnae_reinit_all_ring_page_off()