Home
last modified time | relevance | path

Searched refs:gpool (Results 1 – 3 of 3) sorted by relevance

/linux/arch/x86/kernel/cpu/mce/
H A Dgenpool.c122 struct gen_pool *gpool; in mce_gen_pool_create() local
127 gpool = gen_pool_create(order, -1); in mce_gen_pool_create()
128 if (!gpool) in mce_gen_pool_create()
135 gen_pool_destroy(gpool); in mce_gen_pool_create()
138 ret = gen_pool_add(gpool, (unsigned long)mce_pool, mce_poolsz, -1); in mce_gen_pool_create()
140 gen_pool_destroy(gpool); in mce_gen_pool_create()
145 mce_evt_pool = gpool; in mce_gen_pool_create()
/linux/drivers/dma/
H A Dmmp_tdma.c358 struct gen_pool *gpool; in mmp_tdma_free_descriptor() local
361 gpool = tdmac->pool; in mmp_tdma_free_descriptor()
362 if (gpool && tdmac->desc_arr) in mmp_tdma_free_descriptor()
363 gen_pool_free(gpool, (unsigned long)tdmac->desc_arr, in mmp_tdma_free_descriptor()
410 struct gen_pool *gpool; in mmp_tdma_alloc_descriptor() local
413 gpool = tdmac->pool; in mmp_tdma_alloc_descriptor()
414 if (!gpool) in mmp_tdma_alloc_descriptor()
417 tdmac->desc_arr = gen_pool_dma_alloc(gpool, size, &tdmac->desc_arr_phys); in mmp_tdma_alloc_descriptor()
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_sched.c3099 struct panthor_group_pool *gpool = pfile->groups; in panthor_group_create() local
3230 group = xa_erase(&gpool->xa, group_handle); in panthor_group_destroy()
3303 struct panthor_group_pool *gpool; in panthor_group_pool_create() local
3305 gpool = kzalloc(sizeof(*gpool), GFP_KERNEL); in panthor_group_pool_create()
3306 if (!gpool) in panthor_group_pool_create()
3309 xa_init_flags(&gpool->xa, XA_FLAGS_ALLOC1); in panthor_group_pool_create()
3310 pfile->groups = gpool; in panthor_group_pool_create()
3320 if (IS_ERR_OR_NULL(gpool)) in panthor_group_pool_destroy()
3323 xa_for_each(&gpool->xa, i, group) in panthor_group_pool_destroy()
3326 xa_destroy(&gpool->xa); in panthor_group_pool_destroy()
[all …]