Lines Matching refs:genpool
146 struct gen_pool *genpool; member
743 struct gen_pool *genpool; in svc_create_memory_pool() local
772 genpool = gen_pool_create(min_alloc_order, -1); in svc_create_memory_pool()
773 if (!genpool) { in svc_create_memory_pool()
777 gen_pool_set_algo(genpool, gen_pool_best_fit, NULL); in svc_create_memory_pool()
778 ret = gen_pool_add_virt(genpool, vaddr, paddr, size, -1); in svc_create_memory_pool()
781 gen_pool_destroy(genpool); in svc_create_memory_pool()
785 return genpool; in svc_create_memory_pool()
1053 struct gen_pool *genpool = chan->ctrl->genpool; in stratix10_svc_allocate_memory() local
1054 size_t s = roundup(size, 1 << genpool->min_alloc_order); in stratix10_svc_allocate_memory()
1060 va = gen_pool_alloc(genpool, s); in stratix10_svc_allocate_memory()
1065 pa = gen_pool_virt_to_phys(genpool, va); in stratix10_svc_allocate_memory()
1091 gen_pool_free(chan->ctrl->genpool, in stratix10_svc_free_memory()
1113 struct gen_pool *genpool; in stratix10_svc_drv_probe() local
1135 genpool = svc_create_memory_pool(pdev, sh_memory); in stratix10_svc_drv_probe()
1136 if (!genpool) in stratix10_svc_drv_probe()
1157 controller->genpool = genpool; in stratix10_svc_drv_probe()
1232 gen_pool_destroy(genpool); in stratix10_svc_drv_probe()
1249 if (ctrl->genpool) in stratix10_svc_drv_remove()
1250 gen_pool_destroy(ctrl->genpool); in stratix10_svc_drv_remove()