Lines Matching refs:balloon_stats
136 struct balloon_stats balloon_stats; variable
137 EXPORT_SYMBOL_GPL(balloon_stats);
164 balloon_stats.balloon_high++; in balloon_append()
167 balloon_stats.balloon_low++; in balloon_append()
186 balloon_stats.balloon_high--; in balloon_retrieve()
188 balloon_stats.balloon_low--; in balloon_retrieve()
211 balloon_stats.schedule_delay = 1; in update_schedule()
212 balloon_stats.retry_count = 1; in update_schedule()
216 ++balloon_stats.retry_count; in update_schedule()
218 if (balloon_stats.max_retry_count != RETRY_UNLIMITED && in update_schedule()
219 balloon_stats.retry_count > balloon_stats.max_retry_count) { in update_schedule()
220 balloon_stats.schedule_delay = 1; in update_schedule()
221 balloon_stats.retry_count = 1; in update_schedule()
225 balloon_stats.schedule_delay <<= 1; in update_schedule()
227 if (balloon_stats.schedule_delay > balloon_stats.max_schedule_delay) in update_schedule()
228 balloon_stats.schedule_delay = balloon_stats.max_schedule_delay; in update_schedule()
278 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
279 - balloon_stats.total_pages; in reserve_additional_memory()
343 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory()
381 balloon_stats.target_pages = balloon_stats.current_pages + in reserve_additional_memory()
382 balloon_stats.target_unpopulated; in reserve_additional_memory()
389 return balloon_stats.target_pages - balloon_stats.current_pages; in current_credit()
394 return balloon_stats.balloon_low || balloon_stats.balloon_high; in balloon_is_inflated()
431 balloon_stats.current_pages += rc; in increase_reservation()
488 balloon_stats.current_pages -= nr_pages; in decrease_reservation()
537 schedule_delayed_work(&balloon_worker, balloon_stats.schedule_delay * HZ); in balloon_process()
544 balloon_stats.target_pages = target; in balloon_set_new_target()
590 balloon_stats.target_unpopulated += nr_pages; in alloc_xenballooned_pages()
625 balloon_stats.target_unpopulated -= nr_pages - pgno; in alloc_xenballooned_pages()
646 balloon_stats.target_unpopulated -= nr_pages; in free_xenballooned_pages()
676 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_region()
688 balloon_stats.current_pages = xen_pv_domain() in balloon_init()
692 balloon_stats.current_pages = get_num_physpages(); in balloon_init()
694 balloon_stats.target_pages = balloon_stats.current_pages; in balloon_init()
695 balloon_stats.balloon_low = 0; in balloon_init()
696 balloon_stats.balloon_high = 0; in balloon_init()
697 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
699 balloon_stats.schedule_delay = 1; in balloon_init()
700 balloon_stats.max_schedule_delay = 32; in balloon_init()
701 balloon_stats.retry_count = 1; in balloon_init()
702 balloon_stats.max_retry_count = 4; in balloon_init()