Lines Matching refs:virtio_balloon
62 struct virtio_balloon { struct
147 struct virtio_balloon *vb = vq->vdev->priv; in balloon_ack() argument
152 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host()
171 struct virtio_balloon *vb = in virtballoon_free_page_report()
172 container_of(pr_dev_info, struct virtio_balloon, pr_dev_info); in virtballoon_free_page_report()
195 static void set_page_pfns(struct virtio_balloon *vb, in set_page_pfns()
211 static unsigned fill_balloon(struct virtio_balloon *vb, size_t num) in fill_balloon()
261 static void release_pages_balloon(struct virtio_balloon *vb, in release_pages_balloon()
275 static unsigned leak_balloon(struct virtio_balloon *vb, size_t num) in leak_balloon()
311 static inline void update_stat(struct virtio_balloon *vb, int idx, in update_stat()
321 static unsigned int update_balloon_stats(struct virtio_balloon *vb) in update_balloon_stats()
372 struct virtio_balloon *vb = vq->vdev->priv; in stats_request()
380 static void stats_handle_request(struct virtio_balloon *vb) in stats_handle_request()
396 static inline s64 towards_target(struct virtio_balloon *vb) in towards_target()
410 static unsigned long return_free_pages_to_mm(struct virtio_balloon *vb, in return_free_pages_to_mm()
430 static void virtio_balloon_queue_free_page_work(struct virtio_balloon *vb) in virtio_balloon_queue_free_page_work()
445 struct virtio_balloon *vb = vdev->priv; in virtballoon_changed()
457 static void update_balloon_size(struct virtio_balloon *vb) in update_balloon_size()
468 struct virtio_balloon *vb; in update_balloon_stats_func()
470 vb = container_of(work, struct virtio_balloon, in update_balloon_stats_func()
477 struct virtio_balloon *vb; in update_balloon_size_func()
480 vb = container_of(work, struct virtio_balloon, in update_balloon_size_func()
497 static int init_vqs(struct virtio_balloon *vb) in init_vqs()
572 static u32 virtio_balloon_cmd_id_received(struct virtio_balloon *vb) in virtio_balloon_cmd_id_received()
585 static int send_cmd_id_start(struct virtio_balloon *vb) in send_cmd_id_start()
604 static int send_cmd_id_stop(struct virtio_balloon *vb) in send_cmd_id_stop()
621 static int get_free_page_and_send(struct virtio_balloon *vb) in get_free_page_and_send()
668 static int send_free_pages(struct virtio_balloon *vb) in send_free_pages()
697 static void virtio_balloon_report_free_page(struct virtio_balloon *vb) in virtio_balloon_report_free_page()
719 struct virtio_balloon *vb = container_of(work, struct virtio_balloon, in report_free_page_func()
756 struct virtio_balloon *vb = container_of(vb_dev_info, in virtballoon_migratepage()
757 struct virtio_balloon, vb_dev_info); in virtballoon_migratepage()
822 static unsigned long shrink_free_pages(struct virtio_balloon *vb, in shrink_free_pages()
838 struct virtio_balloon *vb = container_of(shrinker, in virtio_balloon_shrinker_scan()
839 struct virtio_balloon, shrinker); in virtio_balloon_shrinker_scan()
847 struct virtio_balloon *vb = container_of(shrinker, in virtio_balloon_shrinker_count()
848 struct virtio_balloon, shrinker); in virtio_balloon_shrinker_count()
856 struct virtio_balloon *vb = container_of(nb, in virtio_balloon_oom_notify()
857 struct virtio_balloon, oom_nb); in virtio_balloon_oom_notify()
867 static void virtio_balloon_unregister_shrinker(struct virtio_balloon *vb) in virtio_balloon_unregister_shrinker()
872 static int virtio_balloon_register_shrinker(struct virtio_balloon *vb) in virtio_balloon_register_shrinker()
883 struct virtio_balloon *vb; in virtballoon_probe()
1030 static void remove_common(struct virtio_balloon *vb) in remove_common()
1049 struct virtio_balloon *vb = vdev->priv; in virtballoon_remove()
1081 struct virtio_balloon *vb = vdev->priv; in virtballoon_freeze()
1093 struct virtio_balloon *vb = vdev->priv; in virtballoon_restore()