Lines Matching refs:mempool
120 struct rte_mempool *mempool; member
192 __rte_crypto_op_get_priv_data_size(struct rte_mempool *mempool) in __rte_crypto_op_get_priv_data_size() argument
195 (struct rte_crypto_op_pool_private *) rte_mempool_get_priv(mempool); in __rte_crypto_op_get_priv_data_size()
237 __rte_crypto_op_raw_bulk_alloc(struct rte_mempool *mempool, in __rte_crypto_op_raw_bulk_alloc() argument
243 priv = (struct rte_crypto_op_pool_private *) rte_mempool_get_priv(mempool); in __rte_crypto_op_raw_bulk_alloc()
248 if (rte_mempool_get_bulk(mempool, (void **)ops, nb_ops) == 0) in __rte_crypto_op_raw_bulk_alloc()
265 rte_crypto_op_alloc(struct rte_mempool *mempool, enum rte_crypto_op_type type) in rte_crypto_op_alloc() argument
270 retval = __rte_crypto_op_raw_bulk_alloc(mempool, type, &op, 1); in rte_crypto_op_alloc()
295 rte_crypto_op_bulk_alloc(struct rte_mempool *mempool, in rte_crypto_op_bulk_alloc() argument
301 if (unlikely(__rte_crypto_op_raw_bulk_alloc(mempool, type, ops, nb_ops) in rte_crypto_op_bulk_alloc()
329 if (likely(op->mempool != NULL)) { in __rte_crypto_op_get_priv_data()
330 priv_size = __rte_crypto_op_get_priv_data_size(op->mempool); in __rte_crypto_op_get_priv_data()
355 if (op != NULL && op->mempool != NULL) in rte_crypto_op_free()
356 rte_mempool_put(op->mempool, op); in rte_crypto_op_free()
389 op->mempool = NULL; in rte_crypto_sym_op_alloc_from_mbuf_priv_data()