Lines Matching refs:size

142  * @VMW_BALLOON_CMD_GET_TARGET: Gets the balloon target size.
160 * size changes.
266 * @max_page_size: maximum supported page size for ballooning.
273 * @size: balloon actual size in basic page size (frames).
275 * While we currently do not support size which is bigger than 32-bit,
278 atomic64_t size;
281 * @target: balloon target size in basic page size (frames).
446 enum vmballoon_page_size_type size)
449 atomic64_inc(&b->stats->page_stat[stat][size]);
454 enum vmballoon_page_size_type size,
458 atomic64_add(val, &b->stats->page_stat[stat][size]);
576 * @page_size: the size of the page.
588 * @page_size: the size of the page.
601 * @page_size: the size of the page.
616 * @page_size: the size of the page.
629 * vmballoon_send_get_target() - Retrieve desired balloon size from the host.
716 * @page_size: size of the page.
776 * @page_size: size of the page.
850 * next size of pages.
960 * Return: the required change for the balloon size. A positive number
965 int64_t size, target;
967 size = atomic64_read(&b->size);
979 if (target < size && target != 0 &&
980 size - target < vmballoon_page_in_frames(VMW_BALLOON_2M_PAGE))
984 if (target > size && time_before(jiffies, READ_ONCE(b->shrink_timeout)))
987 return target - size;
1042 * size are available.
1104 * vmballoon_inflate() - Inflate the balloon towards its target size.
1146 /* Update the balloon size */
1147 atomic64_add(ctl.n_pages * page_in_frames, &b->size);
1154 * the maximum allowed, move to the next page size.
1184 * vmballoon_deflate() - Decrease the size of the balloon.
1188 * calculated according to the target size.
1191 * Decrease the size of the balloon allowing guest to use more memory.
1193 * Return: The number of deflated frames (i.e., basic page size units)
1224 * performed according to the target and balloon size.
1234 * Calculate the number of frames based on current page size,
1256 * page size, and would eventually try again later.
1263 * size if we did not manage to do so. This calculation takes
1271 atomic64_sub(n_unlocked_frames, &b->size);
1286 /* If we failed to unlock all the pages, move to next size. */
1415 unsigned long size;
1417 while ((size = atomic64_read(&b->size)))
1418 vmballoon_deflate(b, size, false);
1474 * Resets the protocol if needed, gets the new size and adjusts balloon as
1499 pr_debug("%s - size: %llu, target %lu\n", __func__,
1500 atomic64_read(&b->size), READ_ONCE(b->target));
1532 pr_debug("%s - size: %llu", __func__, atomic64_read(&b->size));
1573 return atomic64_read(&b->size);
1678 /* format size info */
1680 seq_printf(f, "%-22s: %16llu\n", "current", atomic64_read(&b->size));
1831 * we will decrease the size of the balloon to reflect the
1834 atomic64_dec(&b->size);