Lines Matching refs:balloon_stats
90 struct balloon_stats balloon_stats; variable
91 EXPORT_SYMBOL_GPL(balloon_stats);
122 balloon_stats.balloon_high++; in __balloon_append()
125 balloon_stats.balloon_low++; in __balloon_append()
150 balloon_stats.balloon_high--; in balloon_retrieve()
152 balloon_stats.balloon_low--; in balloon_retrieve()
173 balloon_stats.schedule_delay = 1; in update_schedule()
174 balloon_stats.retry_count = 1; in update_schedule()
178 ++balloon_stats.retry_count; in update_schedule()
180 if (balloon_stats.max_retry_count != RETRY_UNLIMITED && in update_schedule()
181 balloon_stats.retry_count > balloon_stats.max_retry_count) { in update_schedule()
182 balloon_stats.schedule_delay = 1; in update_schedule()
183 balloon_stats.retry_count = 1; in update_schedule()
187 balloon_stats.schedule_delay <<= 1; in update_schedule()
189 if (balloon_stats.schedule_delay > balloon_stats.max_schedule_delay) in update_schedule()
190 balloon_stats.schedule_delay = balloon_stats.max_schedule_delay; in update_schedule()
198 return balloon_stats.target_pages - balloon_stats.current_pages - in current_credit()
199 balloon_stats.hotplug_pages; in current_credit()
204 if (balloon_stats.balloon_low || balloon_stats.balloon_high || in balloon_is_inflated()
205 balloon_stats.balloon_hotplug) in balloon_is_inflated()
264 balloon_stats.hotplug_pages += credit; in reserve_additional_memory()
265 balloon_stats.balloon_hotplug = balloon_hotplug; in reserve_additional_memory()
278 if (balloon_stats.hotplug_pages) in xen_online_page()
279 --balloon_stats.hotplug_pages; in xen_online_page()
281 --balloon_stats.balloon_hotplug; in xen_online_page()
301 unsigned long target = balloon_stats.target_pages; in current_credit()
304 balloon_stats.current_pages + in current_credit()
305 balloon_stats.balloon_low + in current_credit()
306 balloon_stats.balloon_high); in current_credit()
308 return target - balloon_stats.current_pages; in current_credit()
313 if (balloon_stats.balloon_low || balloon_stats.balloon_high) in balloon_is_inflated()
321 balloon_stats.target_pages = balloon_stats.current_pages; in reserve_additional_memory()
338 if (!balloon_stats.balloon_low && !balloon_stats.balloon_high) { in increase_reservation()
339 nr_pages = min(nr_pages, balloon_stats.balloon_hotplug); in increase_reservation()
340 balloon_stats.hotplug_pages += nr_pages; in increase_reservation()
341 balloon_stats.balloon_hotplug -= nr_pages; in increase_reservation()
391 balloon_stats.current_pages += rc; in increase_reservation()
409 if (balloon_stats.hotplug_pages) { in decrease_reservation()
410 nr_pages = min(nr_pages, balloon_stats.hotplug_pages); in decrease_reservation()
411 balloon_stats.hotplug_pages -= nr_pages; in decrease_reservation()
412 balloon_stats.balloon_hotplug += nr_pages; in decrease_reservation()
469 balloon_stats.current_pages -= nr_pages; in decrease_reservation()
510 schedule_delayed_work(&balloon_worker, balloon_stats.schedule_delay * HZ); in balloon_process()
519 balloon_stats.target_pages = target; in balloon_set_new_target()
617 balloon_stats.current_pages = xen_pv_domain() in balloon_init()
620 balloon_stats.target_pages = balloon_stats.current_pages; in balloon_init()
621 balloon_stats.balloon_low = 0; in balloon_init()
622 balloon_stats.balloon_high = 0; in balloon_init()
624 balloon_stats.schedule_delay = 1; in balloon_init()
625 balloon_stats.max_schedule_delay = 32; in balloon_init()
626 balloon_stats.retry_count = 1; in balloon_init()
627 balloon_stats.max_retry_count = RETRY_UNLIMITED; in balloon_init()
630 balloon_stats.hotplug_pages = 0; in balloon_init()
631 balloon_stats.balloon_hotplug = 0; in balloon_init()