Lines Matching defs:mempool
103 * from mempool and will be set to
163 struct rte_mempool *mempool;
164 /**< crypto operation mempool which operation is allocated from */
228 * the mempool
230 * @param mempool rte_crypto_op mempool
235 __rte_crypto_op_get_priv_data_size(struct rte_mempool *mempool)
238 (struct rte_crypto_op_pool_private *) rte_mempool_get_priv(mempool);
260 * - On success pointer to mempool
269 * Bulk allocate raw element from mempool and return as crypto operations
271 * @param mempool crypto operation mempool.
280 __rte_crypto_op_raw_bulk_alloc(struct rte_mempool *mempool,
286 priv = (struct rte_crypto_op_pool_private *) rte_mempool_get_priv(mempool);
291 if (rte_mempool_get_bulk(mempool, (void **)ops, nb_ops) == 0)
298 * Allocate a crypto operation from a mempool with default parameters set
300 * @param mempool crypto operation mempool
308 rte_crypto_op_alloc(struct rte_mempool *mempool, enum rte_crypto_op_type type)
313 retval = __rte_crypto_op_raw_bulk_alloc(mempool, type, &op, 1);
324 * Bulk allocate crypto operations from a mempool with default parameters set
326 * @param mempool crypto operation mempool
338 rte_crypto_op_bulk_alloc(struct rte_mempool *mempool,
344 if (unlikely(__rte_crypto_op_raw_bulk_alloc(mempool, type, ops, nb_ops)
372 if (likely(op->mempool != NULL)) {
373 priv_size = __rte_crypto_op_get_priv_data_size(op->mempool);
391 * be returned to the mempool.
400 if (op != NULL && op->mempool != NULL)
401 rte_mempool_put(op->mempool, op);
434 op->mempool = NULL;