Lines Matching refs:ret
150 int ret = cma_activate_area(&cma_areas[i]); in cma_init_reserved_areas() local
152 if (ret) in cma_init_reserved_areas()
153 return ret; in cma_init_reserved_areas()
236 int ret = 0; in cma_declare_contiguous() local
288 ret = -EINVAL; in cma_declare_contiguous()
306 ret = -EBUSY; in cma_declare_contiguous()
328 ret = -ENOMEM; in cma_declare_contiguous()
341 ret = cma_init_reserved_mem(base, size, order_per_bit, res_cma); in cma_declare_contiguous()
342 if (ret) in cma_declare_contiguous()
351 return ret; in cma_declare_contiguous()
368 int ret; in cma_alloc() local
403 ret = alloc_contig_range(pfn, pfn + count, MIGRATE_CMA); in cma_alloc()
405 if (ret == 0) { in cma_alloc()
411 if (ret != -EBUSY) in cma_alloc()