Lines Matching refs:gp_dma
1070 struct gen_pool *gp_dma; in cio_gp_dma_create() local
1075 gp_dma = gen_pool_create(3, -1); in cio_gp_dma_create()
1076 if (!gp_dma) in cio_gp_dma_create()
1082 return gp_dma; in cio_gp_dma_create()
1083 gen_pool_add_virt(gp_dma, (unsigned long) cpu_addr, in cio_gp_dma_create()
1086 return gp_dma; in cio_gp_dma_create()
1099 void cio_gp_dma_destroy(struct gen_pool *gp_dma, struct device *dma_dev) in cio_gp_dma_destroy() argument
1101 if (!gp_dma) in cio_gp_dma_destroy()
1104 gen_pool_for_each_chunk(gp_dma, __gp_dma_free_dma, dma_dev); in cio_gp_dma_destroy()
1105 gen_pool_destroy(gp_dma); in cio_gp_dma_destroy()
1117 void *__cio_gp_dma_zalloc(struct gen_pool *gp_dma, struct device *dma_dev, in __cio_gp_dma_zalloc() argument
1124 if (!gp_dma) in __cio_gp_dma_zalloc()
1126 addr = gen_pool_dma_alloc(gp_dma, size, &dma_addr); in __cio_gp_dma_zalloc()
1132 gen_pool_add_virt(gp_dma, (unsigned long)addr, dma_addr, chunk_size, -1); in __cio_gp_dma_zalloc()
1133 addr = gen_pool_dma_alloc(gp_dma, size, dma_handle ? &dma_addr : NULL); in __cio_gp_dma_zalloc()
1140 void *cio_gp_dma_zalloc(struct gen_pool *gp_dma, struct device *dma_dev, in cio_gp_dma_zalloc() argument
1143 return __cio_gp_dma_zalloc(gp_dma, dma_dev, size, NULL); in cio_gp_dma_zalloc()
1146 void cio_gp_dma_free(struct gen_pool *gp_dma, void *cpu_addr, size_t size) in cio_gp_dma_free() argument
1151 gen_pool_free(gp_dma, (unsigned long) cpu_addr, size); in cio_gp_dma_free()