Searched refs:gp_dma (Results 1 – 1 of 1) sorted by relevance
1116 struct gen_pool *gp_dma; in cio_gp_dma_create() local1121 gp_dma = gen_pool_create(3, -1); in cio_gp_dma_create()1122 if (!gp_dma) in cio_gp_dma_create()1128 return gp_dma; in cio_gp_dma_create()1129 gen_pool_add_virt(gp_dma, (unsigned long) cpu_addr, in cio_gp_dma_create()1132 return gp_dma; in cio_gp_dma_create()1145 void cio_gp_dma_destroy(struct gen_pool *gp_dma, struct device *dma_dev) in cio_gp_dma_destroy() argument1147 if (!gp_dma) in cio_gp_dma_destroy()1150 gen_pool_for_each_chunk(gp_dma, __gp_dma_free_dma, dma_dev); in cio_gp_dma_destroy()1151 gen_pool_destroy(gp_dma); in cio_gp_dma_destroy()[all …]