Lines Matching refs:gp_dma
1101 struct gen_pool *gp_dma; in cio_gp_dma_create() local
1106 gp_dma = gen_pool_create(3, -1); in cio_gp_dma_create()
1107 if (!gp_dma) in cio_gp_dma_create()
1113 return gp_dma; in cio_gp_dma_create()
1114 gen_pool_add_virt(gp_dma, (unsigned long) cpu_addr, in cio_gp_dma_create()
1117 return gp_dma; in cio_gp_dma_create()
1130 void cio_gp_dma_destroy(struct gen_pool *gp_dma, struct device *dma_dev) in cio_gp_dma_destroy() argument
1132 if (!gp_dma) in cio_gp_dma_destroy()
1135 gen_pool_for_each_chunk(gp_dma, __gp_dma_free_dma, dma_dev); in cio_gp_dma_destroy()
1136 gen_pool_destroy(gp_dma); in cio_gp_dma_destroy()
1148 void *cio_gp_dma_zalloc(struct gen_pool *gp_dma, struct device *dma_dev, in cio_gp_dma_zalloc() argument
1155 if (!gp_dma) in cio_gp_dma_zalloc()
1157 addr = gen_pool_alloc(gp_dma, size); in cio_gp_dma_zalloc()
1164 gen_pool_add_virt(gp_dma, addr, dma_addr, chunk_size, -1); in cio_gp_dma_zalloc()
1165 addr = gen_pool_alloc(gp_dma, size); in cio_gp_dma_zalloc()
1170 void cio_gp_dma_free(struct gen_pool *gp_dma, void *cpu_addr, size_t size) in cio_gp_dma_free() argument
1175 gen_pool_free(gp_dma, (unsigned long) cpu_addr, size); in cio_gp_dma_free()