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 …]
970 #define MB2PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) in compute_balloon_floor() macro982 if (totalram_pages < MB2PAGES(128)) in compute_balloon_floor()983 min_pages = MB2PAGES(8) + (totalram_pages >> 1); in compute_balloon_floor()984 else if (totalram_pages < MB2PAGES(512)) in compute_balloon_floor()985 min_pages = MB2PAGES(40) + (totalram_pages >> 2); in compute_balloon_floor()986 else if (totalram_pages < MB2PAGES(2048)) in compute_balloon_floor()987 min_pages = MB2PAGES(104) + (totalram_pages >> 3); in compute_balloon_floor()988 else if (totalram_pages < MB2PAGES(8192)) in compute_balloon_floor()989 min_pages = MB2PAGES(232) + (totalram_pages >> 4); in compute_balloon_floor()991 min_pages = MB2PAGES(488) + (totalram_pages >> 5); in compute_balloon_floor()[all …]