Searched refs:MB2PAGES (Results 1 – 2 of 2) sorted by relevance
178 #define MB2PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) macro196 MB2PAGES(selfballoon_reserved_mb); in selfballoon_process()214 MB2PAGES(selfballoon_min_usable_mb); in selfballoon_process()216 else if (useful_pages < MB2PAGES(16)) in selfballoon_process()218 else if (useful_pages < MB2PAGES(64)) in selfballoon_process()219 floor_pages = totalreserve_pages + MB2PAGES(16) + in selfballoon_process()220 ((useful_pages - MB2PAGES(16)) >> 1); in selfballoon_process()221 else if (useful_pages < MB2PAGES(512)) in selfballoon_process()222 floor_pages = totalreserve_pages + MB2PAGES(40) + in selfballoon_process()223 ((useful_pages - MB2PAGES(40)) >> 3); in selfballoon_process()[all …]
1093 #define MB2PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) in compute_balloon_floor() macro1105 if (totalram_pages < MB2PAGES(128)) in compute_balloon_floor()1106 min_pages = MB2PAGES(8) + (totalram_pages >> 1); in compute_balloon_floor()1107 else if (totalram_pages < MB2PAGES(512)) in compute_balloon_floor()1108 min_pages = MB2PAGES(40) + (totalram_pages >> 2); in compute_balloon_floor()1109 else if (totalram_pages < MB2PAGES(2048)) in compute_balloon_floor()1110 min_pages = MB2PAGES(104) + (totalram_pages >> 3); in compute_balloon_floor()1111 else if (totalram_pages < MB2PAGES(8192)) in compute_balloon_floor()1112 min_pages = MB2PAGES(232) + (totalram_pages >> 4); in compute_balloon_floor()1114 min_pages = MB2PAGES(488) + (totalram_pages >> 5); in compute_balloon_floor()[all …]