mempool
struct qcom_tzmem_pool *mempool;
cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL);
cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL);
cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL);
cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL);
qcuefi->mempool = devm_qcom_tzmem_pool_new(&aux_dev->dev, &pool_config);
if (IS_ERR(qcuefi->mempool))
return PTR_ERR(qcuefi->mempool);
struct qcom_tzmem_pool *mempool = qcom_scm_get_tzmem_pool();
if (!mempool)
args_virt = qcom_tzmem_alloc(mempool,
void *ptr __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *keybuf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *eph_key_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *sw_secret_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *lt_key_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *lt_key_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *eph_key_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *raw_key_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
void *lt_key_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
u32 *payload_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
char *name_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool,
return __scm->mempool;
scm->mempool = devm_qcom_tzmem_pool_new(scm->dev, &pool_config);
if (IS_ERR(scm->mempool))
return dev_err_probe(scm->dev, PTR_ERR(scm->mempool),
struct qcom_tzmem_pool *mempool;
mdata_buf = qcom_tzmem_alloc(__scm->mempool, size, GFP_KERNEL);
output_rt_tzm = qcom_tzmem_alloc(__scm->mempool, *output_rt_size, GFP_KERNEL);
input_rt_tzm = qcom_tzmem_alloc(__scm->mempool, input_rt_size, GFP_KERNEL);
static struct mempool fserror_events_pool;
mempool_t *mempool = rreq->netfs_ops->subrequest_pool ?: &netfs_subrequest_pool;
struct kmem_cache *cache = mempool->pool_data;
mempool_t *mempool = ctx->ops->request_pool ?: &netfs_request_pool;
struct kmem_cache *cache = mempool->pool_data;
rreq = mempool_alloc(mempool, GFP_KERNEL);
struct mempool *zone_wplugs_pool;
mempool_t *mempool)
btree_init_mempool(&head->h, mempool);
mempool_t *mempool)
btree_init_mempool(&head->h, mempool);
mempool_t *mempool;
void btree_init_mempool(struct btree_head *head, mempool_t *mempool);
static inline bool mempool_initialized(struct mempool *pool)
static inline bool mempool_is_saturated(struct mempool *pool)
void mempool_exit(struct mempool *pool);
int mempool_init_node(struct mempool *pool, int min_nr,
int mempool_init_noprof(struct mempool *pool, int min_nr,
struct mempool *mempool_create(int min_nr, mempool_alloc_t *alloc_fn,
struct mempool *mempool_create_node_noprof(int min_nr,
int mempool_resize(struct mempool *pool, int new_min_nr);
void mempool_destroy(struct mempool *pool);
void *mempool_alloc_noprof(struct mempool *pool, gfp_t gfp_mask) __malloc;
int mempool_alloc_bulk_noprof(struct mempool *pool, void **elem,
void *mempool_alloc_preallocated(struct mempool *pool) __malloc;
void mempool_free(void *element, struct mempool *pool);
unsigned int mempool_free_bulk(struct mempool *pool, void **elem,
typedef struct mempool mempool_t;
void btree_init_mempool(struct btree_head *head, mempool_t *mempool)
head->mempool = mempool;
head->mempool = mempool_create(0, btree_alloc, btree_free, NULL);
if (!head->mempool)
mempool_free(head->node, head->mempool);
mempool_destroy(head->mempool);
head->mempool = NULL;
mempool_free(node, head->mempool);
mempool_free(new, head->mempool);
mempool_free(right, head->mempool);
mempool_free(child, head->mempool);
mempool_free(node, head->mempool);
node = mempool_alloc(head->mempool, gfp);
static void poison_element(struct mempool *pool, void *element)
static inline void check_element(struct mempool *pool, void *element)
static inline void poison_element(struct mempool *pool, void *element)
static __always_inline bool kasan_poison_element(struct mempool *pool,
static void kasan_unpoison_element(struct mempool *pool, void *element)
static __always_inline void add_element(struct mempool *pool, void *element)
static void *remove_element(struct mempool *pool)
void mempool_exit(struct mempool *pool)
void mempool_destroy(struct mempool *pool)
int mempool_init_node(struct mempool *pool, int min_nr,
int mempool_init_noprof(struct mempool *pool, int min_nr,
struct mempool *mempool_create_node_noprof(int min_nr,
struct mempool *pool;
int mempool_resize(struct mempool *pool, int new_min_nr)
static void poison_error(struct mempool *pool, void *element, size_t size,
static unsigned int mempool_alloc_from_pool(struct mempool *pool, void **elems,
int mempool_alloc_bulk_noprof(struct mempool *pool, void **elems,
void *mempool_alloc_noprof(struct mempool *pool, gfp_t gfp_mask)
static void __check_element(struct mempool *pool, void *element, size_t size)
void *mempool_alloc_preallocated(struct mempool *pool)
unsigned int mempool_free_bulk(struct mempool *pool, void **elems,
void mempool_free(void *element, struct mempool *pool)
static void check_element(struct mempool *pool, void *element)