Lines Matching refs:mp
13 common_ring_mp_enqueue(struct rte_mempool *mp, void * const *obj_table, in common_ring_mp_enqueue() argument
16 return rte_ring_mp_enqueue_bulk(mp->pool_data, in common_ring_mp_enqueue()
21 common_ring_sp_enqueue(struct rte_mempool *mp, void * const *obj_table, in common_ring_sp_enqueue() argument
24 return rte_ring_sp_enqueue_bulk(mp->pool_data, in common_ring_sp_enqueue()
29 rts_ring_mp_enqueue(struct rte_mempool *mp, void * const *obj_table, in rts_ring_mp_enqueue() argument
32 return rte_ring_mp_rts_enqueue_bulk(mp->pool_data, in rts_ring_mp_enqueue()
37 hts_ring_mp_enqueue(struct rte_mempool *mp, void * const *obj_table, in hts_ring_mp_enqueue() argument
40 return rte_ring_mp_hts_enqueue_bulk(mp->pool_data, in hts_ring_mp_enqueue()
45 common_ring_mc_dequeue(struct rte_mempool *mp, void **obj_table, unsigned n) in common_ring_mc_dequeue() argument
47 return rte_ring_mc_dequeue_bulk(mp->pool_data, in common_ring_mc_dequeue()
52 common_ring_sc_dequeue(struct rte_mempool *mp, void **obj_table, unsigned n) in common_ring_sc_dequeue() argument
54 return rte_ring_sc_dequeue_bulk(mp->pool_data, in common_ring_sc_dequeue()
59 rts_ring_mc_dequeue(struct rte_mempool *mp, void **obj_table, unsigned int n) in rts_ring_mc_dequeue() argument
61 return rte_ring_mc_rts_dequeue_bulk(mp->pool_data, in rts_ring_mc_dequeue()
66 hts_ring_mc_dequeue(struct rte_mempool *mp, void **obj_table, unsigned int n) in hts_ring_mc_dequeue() argument
68 return rte_ring_mc_hts_dequeue_bulk(mp->pool_data, in hts_ring_mc_dequeue()
73 common_ring_get_count(const struct rte_mempool *mp) in common_ring_get_count() argument
75 return rte_ring_count(mp->pool_data); in common_ring_get_count()
79 ring_alloc(struct rte_mempool *mp, uint32_t rg_flags) in ring_alloc() argument
86 RTE_MEMPOOL_MZ_FORMAT, mp->name); in ring_alloc()
98 r = rte_ring_create(rg_name, rte_align32pow2(mp->size + 1), in ring_alloc()
99 mp->socket_id, rg_flags); in ring_alloc()
103 mp->pool_data = r; in ring_alloc()
109 common_ring_alloc(struct rte_mempool *mp) in common_ring_alloc() argument
113 if (mp->flags & MEMPOOL_F_SP_PUT) in common_ring_alloc()
115 if (mp->flags & MEMPOOL_F_SC_GET) in common_ring_alloc()
118 return ring_alloc(mp, rg_flags); in common_ring_alloc()
122 rts_ring_alloc(struct rte_mempool *mp) in rts_ring_alloc() argument
124 return ring_alloc(mp, RING_F_MP_RTS_ENQ | RING_F_MC_RTS_DEQ); in rts_ring_alloc()
128 hts_ring_alloc(struct rte_mempool *mp) in hts_ring_alloc() argument
130 return ring_alloc(mp, RING_F_MP_HTS_ENQ | RING_F_MC_HTS_DEQ); in hts_ring_alloc()
134 common_ring_free(struct rte_mempool *mp) in common_ring_free() argument
136 rte_ring_free(mp->pool_data); in common_ring_free()