Lines Matching defs:hnae_ring
266 struct hnae_ring { struct
267 u8 __iomem *io_base; /* base io address for the ring */
268 struct hnae_desc *desc; /* dma map address space */
269 struct hnae_desc_cb *desc_cb;
270 struct hnae_queue *q;
271 int irq;
272 char ring_name[RCB_RING_NAME_LEN];
275 struct ring_stats stats;
277 dma_addr_t desc_dma_addr;
278 u32 buf_size; /* size for hnae_desc->addr, preset by AE */
279 u16 desc_num; /* total number of desc */
280 u16 max_desc_num_per_pkt;
281 u16 max_raw_data_sz_per_desc;
282 u16 max_pkt_size;
283 int next_to_use; /* idx of next spare desc */
288 int next_to_clean;
290 int flags; /* ring attribute */
291 int irq_init_flag;
316 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() argument