Lines Matching refs:hnae_ring
270 struct hnae_ring { struct
323 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() argument
331 static inline int ring_space(struct hnae_ring *ring) in ring_space()
337 static inline int is_ring_empty(struct hnae_ring *ring) in is_ring_empty()
353 int (*alloc_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
354 void (*free_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
355 int (*map_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
356 void (*unmap_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
363 struct hnae_ring rx_ring ____cacheline_internodealigned_in_smp;
364 struct hnae_ring tx_ring ____cacheline_internodealigned_in_smp;
487 void (*toggle_ring_irq)(struct hnae_ring *ring, u32 val);
599 static inline int hnae_reserve_buffer_map(struct hnae_ring *ring, in hnae_reserve_buffer_map()
621 static inline int hnae_alloc_buffer_attach(struct hnae_ring *ring, int i) in hnae_alloc_buffer_attach()
633 static inline void hnae_buffer_detach(struct hnae_ring *ring, int i) in hnae_buffer_detach()
639 static inline void hnae_free_buffer_detach(struct hnae_ring *ring, int i) in hnae_free_buffer_detach()
652 static inline void hnae_replace_buffer(struct hnae_ring *ring, int i, in hnae_replace_buffer()
663 static inline void hnae_reuse_buffer(struct hnae_ring *ring, int i) in hnae_reuse_buffer()
675 struct hnae_ring *ring; in hnae_reinit_all_ring_desc()
690 struct hnae_ring *ring; in hnae_reinit_all_ring_page_off()