Home
last modified time | relevance | path

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

/linux-6.1.9/arch/arm/mach-mmp/
Dsram.c26 struct gen_pool *gpool; member
57 return info->gpool; in sram_get_gpool()
93 info->gpool = gen_pool_create(ilog2(info->granularity), -1); in sram_probe()
94 if (!info->gpool) { in sram_probe()
100 ret = gen_pool_add_virt(info->gpool, (unsigned long)info->sram_virt, in sram_probe()
116 gen_pool_destroy(info->gpool); in sram_probe()
136 gen_pool_destroy(info->gpool); in sram_remove()
/linux-6.1.9/sound/soc/pxa/
Dmmp-pcm.c158 struct gen_pool *gpool; in mmp_pcm_free_dma_buffers() local
160 gpool = sram_get_gpool("asram"); in mmp_pcm_free_dma_buffers()
161 if (!gpool) in mmp_pcm_free_dma_buffers()
174 gen_pool_free(gpool, (unsigned long)buf->area, size); in mmp_pcm_free_dma_buffers()
185 struct gen_pool *gpool; in mmp_pcm_preallocate_dma_buffer() local
191 gpool = sram_get_gpool("asram"); in mmp_pcm_preallocate_dma_buffer()
192 if (!gpool) in mmp_pcm_preallocate_dma_buffer()
195 buf->area = gen_pool_dma_alloc(gpool, size, &buf->addr); in mmp_pcm_preallocate_dma_buffer()
/linux-6.1.9/drivers/dma/
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()