Lines Matching defs:alloc_unit
1239 int alloc_unit)
1244 for (i = 0; i < num_pages / alloc_unit; i++) {
1247 return i * alloc_unit;
1255 get_order(alloc_unit << PAGE_SHIFT));
1258 return i * alloc_unit;
1260 dm->num_pages_ballooned += alloc_unit;
1267 if (alloc_unit != 1)
1268 split_page(pg, get_order(alloc_unit << PAGE_SHIFT));
1271 for (j = 0; j < alloc_unit; j++) {
1279 bl_resp->range_array[i].finfo.page_cnt = alloc_unit;
1284 return i * alloc_unit;
1292 int alloc_unit;
1303 alloc_unit = PAGES_IN_2M;
1326 bl_resp, alloc_unit);
1328 if (alloc_unit != 1 && num_ballooned == 0) {
1329 alloc_unit = 1;