Lines Matching refs:genpool
147 struct gen_pool *genpool; member
761 struct gen_pool *genpool; in svc_create_memory_pool() local
790 genpool = gen_pool_create(min_alloc_order, -1); in svc_create_memory_pool()
791 if (!genpool) { in svc_create_memory_pool()
795 gen_pool_set_algo(genpool, gen_pool_best_fit, NULL); in svc_create_memory_pool()
796 ret = gen_pool_add_virt(genpool, vaddr, paddr, size, -1); in svc_create_memory_pool()
799 gen_pool_destroy(genpool); in svc_create_memory_pool()
803 return genpool; in svc_create_memory_pool()
1071 struct gen_pool *genpool = chan->ctrl->genpool; in stratix10_svc_allocate_memory() local
1072 size_t s = roundup(size, 1 << genpool->min_alloc_order); in stratix10_svc_allocate_memory()
1078 va = gen_pool_alloc(genpool, s); in stratix10_svc_allocate_memory()
1083 pa = gen_pool_virt_to_phys(genpool, va); in stratix10_svc_allocate_memory()
1109 gen_pool_free(chan->ctrl->genpool, in stratix10_svc_free_memory()
1131 struct gen_pool *genpool; in stratix10_svc_drv_probe() local
1153 genpool = svc_create_memory_pool(pdev, sh_memory); in stratix10_svc_drv_probe()
1154 if (IS_ERR(genpool)) in stratix10_svc_drv_probe()
1155 return PTR_ERR(genpool); in stratix10_svc_drv_probe()
1175 controller->genpool = genpool; in stratix10_svc_drv_probe()
1250 gen_pool_destroy(genpool); in stratix10_svc_drv_probe()
1267 if (ctrl->genpool) in stratix10_svc_drv_remove()
1268 gen_pool_destroy(ctrl->genpool); in stratix10_svc_drv_remove()