Lines Matching defs:bs
79 #define bs balloon_stats
84 &bs.current_pages, 0, "Current allocation");
86 &bs.target_pages, 0, "Target allocation");
88 &bs.driver_pages, 0, "Driver pages");
90 &bs.hard_limit, 0, "Xen hard limit");
92 &bs.balloon_low, 0, "Low-mem balloon");
94 &bs.balloon_high, 0, "High-mem balloon");
110 unsigned long target = min(bs.target_pages, bs.hard_limit);
111 if (target > (bs.current_pages + bs.balloon_low + bs.balloon_high))
112 target = bs.current_pages + bs.balloon_low + bs.balloon_high;
187 bs.hard_limit = (bs.current_pages + rc -
188 bs.driver_pages);
196 bs.balloon_low--;
204 bs.current_pages += nr_pages;
251 bs.balloon_low++;
259 bs.current_pages -= nr_pages;
281 credit = current_target() - bs.current_pages;
290 if (current_target() != bs.current_pages)
306 bs.hard_limit = ~0UL;
307 bs.target_pages = max(target, minimum_target());
386 bs.current_pages = realmem;
387 bs.target_pages = bs.current_pages;
388 bs.balloon_low = 0;
389 bs.balloon_high = 0;
390 bs.driver_pages = 0UL;
391 bs.hard_limit = ~0UL;