Lines Matching refs:mem_balloon

261 	struct vmmdev_memballoon_change *req = gdev->mem_balloon.change_req;  in vbg_balloon_inflate()
292 gdev->mem_balloon.pages[chunk_idx] = pages; in vbg_balloon_inflate()
312 struct vmmdev_memballoon_change *req = gdev->mem_balloon.change_req; in vbg_balloon_deflate()
313 struct page **pages = gdev->mem_balloon.pages[chunk_idx]; in vbg_balloon_deflate()
332 gdev->mem_balloon.pages[chunk_idx] = NULL; in vbg_balloon_deflate()
344 container_of(work, struct vbg_dev, mem_balloon.work); in vbg_balloon_work()
345 struct vmmdev_memballoon_info *req = gdev->mem_balloon.get_req; in vbg_balloon_work()
364 if (!gdev->mem_balloon.max_chunks) { in vbg_balloon_work()
365 gdev->mem_balloon.pages = in vbg_balloon_work()
368 if (!gdev->mem_balloon.pages) in vbg_balloon_work()
371 gdev->mem_balloon.max_chunks = req->phys_mem_chunks; in vbg_balloon_work()
375 if (chunks > gdev->mem_balloon.max_chunks) { in vbg_balloon_work()
377 __func__, chunks, gdev->mem_balloon.max_chunks); in vbg_balloon_work()
381 if (chunks > gdev->mem_balloon.chunks) { in vbg_balloon_work()
383 for (i = gdev->mem_balloon.chunks; i < chunks; i++) { in vbg_balloon_work()
388 gdev->mem_balloon.chunks++; in vbg_balloon_work()
392 for (i = gdev->mem_balloon.chunks; i-- > chunks;) { in vbg_balloon_work()
397 gdev->mem_balloon.chunks--; in vbg_balloon_work()
782 INIT_WORK(&gdev->mem_balloon.work, vbg_balloon_work); in vbg_core_init()
784 gdev->mem_balloon.get_req = in vbg_core_init()
785 vbg_req_alloc(sizeof(*gdev->mem_balloon.get_req), in vbg_core_init()
787 gdev->mem_balloon.change_req = in vbg_core_init()
788 vbg_req_alloc(sizeof(*gdev->mem_balloon.change_req), in vbg_core_init()
800 if (!gdev->mem_balloon.get_req || !gdev->mem_balloon.change_req || in vbg_core_init()
853 vbg_req_free(gdev->mem_balloon.change_req, in vbg_core_init()
854 sizeof(*gdev->mem_balloon.change_req)); in vbg_core_init()
855 vbg_req_free(gdev->mem_balloon.get_req, in vbg_core_init()
856 sizeof(*gdev->mem_balloon.get_req)); in vbg_core_init()
883 vbg_req_free(gdev->mem_balloon.change_req, in vbg_core_exit()
884 sizeof(*gdev->mem_balloon.change_req)); in vbg_core_exit()
885 vbg_req_free(gdev->mem_balloon.get_req, in vbg_core_exit()
886 sizeof(*gdev->mem_balloon.get_req)); in vbg_core_exit()
1431 balloon_info->u.out.balloon_chunks = gdev->mem_balloon.chunks; in vbg_ioctl_check_balloon()
1595 schedule_work(&gdev->mem_balloon.work); in vbg_core_isr()