Lines Matching refs:alloc_unit
1200 int alloc_unit) in alloc_balloon_pages() argument
1205 for (i = 0; i < num_pages / alloc_unit; i++) { in alloc_balloon_pages()
1208 return i * alloc_unit; in alloc_balloon_pages()
1216 get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages()
1219 return i * alloc_unit; in alloc_balloon_pages()
1221 dm->num_pages_ballooned += alloc_unit; in alloc_balloon_pages()
1228 if (alloc_unit != 1) in alloc_balloon_pages()
1229 split_page(pg, get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages()
1232 for (j = 0; j < alloc_unit; j++) { in alloc_balloon_pages()
1240 bl_resp->range_array[i].finfo.page_cnt = alloc_unit; in alloc_balloon_pages()
1244 return i * alloc_unit; in alloc_balloon_pages()
1252 int alloc_unit; in balloon_up() local
1263 alloc_unit = PAGES_IN_2M; in balloon_up()
1286 bl_resp, alloc_unit); in balloon_up()
1288 if (alloc_unit != 1 && num_ballooned == 0) { in balloon_up()
1289 alloc_unit = 1; in balloon_up()