Lines Matching defs:hnae_ring
270 struct hnae_ring { struct
271 u8 __iomem *io_base; /* base io address for the ring */
272 struct hnae_desc *desc; /* dma map address space */
273 struct hnae_desc_cb *desc_cb;
274 struct hnae_queue *q;
275 int irq;
276 char ring_name[RCB_RING_NAME_LEN];
279 struct ring_stats stats;
282 spinlock_t lock;
284 dma_addr_t desc_dma_addr;
285 u32 buf_size; /* size for hnae_desc->addr, preset by AE */
286 u16 desc_num; /* total number of desc */
287 u16 max_desc_num_per_pkt;
288 u16 max_raw_data_sz_per_desc;
289 u16 max_pkt_size;
290 int next_to_use; /* idx of next spare desc */
295 int next_to_clean;
297 int flags; /* ring attribute */
298 int irq_init_flag;
323 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() argument