10 #ifndef _RTE_RING_PEEK_H_ 11 #define _RTE_RING_PEEK_H_ 71 unsigned int *free_space)
96 unsigned int *free_space)
120 unsigned int *free_space)
145 unsigned int *free_space)
168 unsigned int esize,
unsigned int n)
174 n = __rte_ring_st_get_tail(&r->prod, &tail, n);
176 __rte_ring_enqueue_elems(r, tail, obj_table, esize, n);
177 __rte_ring_st_set_head_tail(&r->prod, tail, n, 1);
180 n = __rte_ring_hts_get_tail(&r->hts_prod, &tail, n);
182 __rte_ring_enqueue_elems(r, tail, obj_table, esize, n);
183 __rte_ring_hts_set_head_tail(&r->hts_prod, tail, n, 1);
235 unsigned int esize,
unsigned int n,
unsigned int *available)
237 return __rte_ring_do_dequeue_start(r, obj_table, esize, n,
260 unsigned int n,
unsigned int *available)
289 unsigned int esize,
unsigned int n,
unsigned int *available)
291 return __rte_ring_do_dequeue_start(r, obj_table, esize, n,
314 unsigned int n,
unsigned int *available)
317 sizeof(uintptr_t), n, available);
337 n = __rte_ring_st_get_tail(&r->cons, &tail, n);
338 __rte_ring_st_set_head_tail(&r->cons, tail, n, 0);
341 n = __rte_ring_hts_get_tail(&r->hts_cons, &tail, n);
342 __rte_ring_hts_set_head_tail(&r->hts_cons, tail, n, 0);
#define __rte_always_inline
static __rte_always_inline unsigned int rte_ring_dequeue_burst_elem_start(struct rte_ring *r, void *obj_table, unsigned int esize, unsigned int n, unsigned int *available)
static __rte_always_inline void rte_ring_dequeue_elem_finish(struct rte_ring *r, unsigned int n)
static __rte_always_inline unsigned int rte_ring_enqueue_burst_elem_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_always_inline unsigned int rte_ring_enqueue_bulk_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_always_inline void rte_ring_dequeue_finish(struct rte_ring *r, unsigned int n)
static __rte_always_inline unsigned int rte_ring_dequeue_bulk_start(struct rte_ring *r, void **obj_table, unsigned int n, unsigned int *available)
static __rte_always_inline unsigned int rte_ring_enqueue_bulk_elem_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_always_inline unsigned int rte_ring_dequeue_bulk_elem_start(struct rte_ring *r, void *obj_table, unsigned int esize, unsigned int n, unsigned int *available)
enum rte_ring_sync_type sync_type
static __rte_always_inline void rte_ring_enqueue_finish(struct rte_ring *r, void *const *obj_table, unsigned int n)
static __rte_always_inline void rte_ring_enqueue_elem_finish(struct rte_ring *r, const void *obj_table, unsigned int esize, unsigned int n)
static __rte_always_inline unsigned int rte_ring_dequeue_burst_start(struct rte_ring *r, void **obj_table, unsigned int n, unsigned int *available)
static __rte_always_inline unsigned int rte_ring_enqueue_burst_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)