Searched refs:alloc_unit (Results 1 – 2 of 2) sorted by relevance
1209 int alloc_unit) in alloc_balloon_pages() argument1214 for (i = 0; i < num_pages / alloc_unit; i++) { in alloc_balloon_pages()1217 return i * alloc_unit; in alloc_balloon_pages()1225 get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages()1228 return i * alloc_unit; in alloc_balloon_pages()1230 dm->num_pages_ballooned += alloc_unit; in alloc_balloon_pages()1237 if (alloc_unit != 1) in alloc_balloon_pages()1238 split_page(pg, get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages()1241 for (j = 0; j < (1 << get_order(alloc_unit << PAGE_SHIFT)); j++) in alloc_balloon_pages()1247 bl_resp->range_array[i].finfo.page_cnt = alloc_unit; in alloc_balloon_pages()[all …]
182 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_update_mem_state() local212 record = realloc(record, alloc_unit * num_blocks); in kvp_update_mem_state()237 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_file_init() local257 kvp_file_info[i].records = malloc(alloc_unit); in kvp_file_init()