Lines Matching refs:intel_vgpu
71 size_t (*rw)(struct intel_vgpu *vgpu, char *buf,
73 void (*release)(struct intel_vgpu *vgpu,
97 struct intel_vgpu *vgpu;
107 container_of((vfio_dev), struct intel_vgpu, vfio_device)
130 static void gvt_unpin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_unpin_guest_page()
138 static int gvt_pin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_pin_guest_page()
179 static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_map_page()
202 static void gvt_dma_unmap_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_unmap_page()
211 static struct gvt_dma *__gvt_cache_find_dma_addr(struct intel_vgpu *vgpu, in __gvt_cache_find_dma_addr()
230 static struct gvt_dma *__gvt_cache_find_gfn(struct intel_vgpu *vgpu, gfn_t gfn) in __gvt_cache_find_gfn()
248 static int __gvt_cache_add(struct intel_vgpu *vgpu, gfn_t gfn, in __gvt_cache_add()
297 static void __gvt_cache_remove_entry(struct intel_vgpu *vgpu, in __gvt_cache_remove_entry()
306 static void gvt_cache_destroy(struct intel_vgpu *vgpu) in gvt_cache_destroy()
325 static void gvt_cache_init(struct intel_vgpu *vgpu) in gvt_cache_init()
333 static void kvmgt_protect_table_init(struct intel_vgpu *info) in kvmgt_protect_table_init()
338 static void kvmgt_protect_table_destroy(struct intel_vgpu *info) in kvmgt_protect_table_destroy()
351 __kvmgt_protect_table_find(struct intel_vgpu *info, gfn_t gfn) in __kvmgt_protect_table_find()
365 static bool kvmgt_gfn_is_write_protected(struct intel_vgpu *info, gfn_t gfn) in kvmgt_gfn_is_write_protected()
373 static void kvmgt_protect_table_add(struct intel_vgpu *info, gfn_t gfn) in kvmgt_protect_table_add()
388 static void kvmgt_protect_table_del(struct intel_vgpu *info, gfn_t gfn) in kvmgt_protect_table_del()
399 static size_t intel_vgpu_reg_rw_opregion(struct intel_vgpu *vgpu, char *buf, in intel_vgpu_reg_rw_opregion()
418 static void intel_vgpu_reg_release_opregion(struct intel_vgpu *vgpu, in intel_vgpu_reg_release_opregion()
428 static int handle_edid_regs(struct intel_vgpu *vgpu, in handle_edid_regs()
499 static size_t intel_vgpu_reg_rw_edid(struct intel_vgpu *vgpu, char *buf, in intel_vgpu_reg_rw_edid()
521 static void intel_vgpu_reg_release_edid(struct intel_vgpu *vgpu, in intel_vgpu_reg_release_edid()
532 static int intel_vgpu_register_reg(struct intel_vgpu *vgpu, in intel_vgpu_register_reg()
556 int intel_gvt_set_opregion(struct intel_vgpu *vgpu) in intel_gvt_set_opregion()
583 int intel_gvt_set_edid(struct intel_vgpu *vgpu, int port_num) in intel_gvt_set_edid()
615 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_dma_unmap()
633 static bool __kvmgt_vgpu_exist(struct intel_vgpu *vgpu) in __kvmgt_vgpu_exist()
635 struct intel_vgpu *itr; in __kvmgt_vgpu_exist()
656 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_open_device()
690 static void intel_vgpu_release_msi_eventfd_ctx(struct intel_vgpu *vgpu) in intel_vgpu_release_msi_eventfd_ctx()
703 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_close_device()
727 static u64 intel_vgpu_get_bar_addr(struct intel_vgpu *vgpu, int bar) in intel_vgpu_get_bar_addr()
754 static int intel_vgpu_bar_rw(struct intel_vgpu *vgpu, int bar, u64 off, in intel_vgpu_bar_rw()
769 static inline bool intel_vgpu_in_aperture(struct intel_vgpu *vgpu, u64 off) in intel_vgpu_in_aperture()
775 static int intel_vgpu_aperture_rw(struct intel_vgpu *vgpu, u64 off, in intel_vgpu_aperture_rw()
802 static ssize_t intel_vgpu_rw(struct intel_vgpu *vgpu, char *buf, in intel_vgpu_rw()
850 static bool gtt_entry(struct intel_vgpu *vgpu, loff_t *ppos) in gtt_entry()
871 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_read()
946 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_write()
1019 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_mmap()
1054 static int intel_vgpu_get_irq_count(struct intel_vgpu *vgpu, int type) in intel_vgpu_get_irq_count()
1062 static int intel_vgpu_set_intx_mask(struct intel_vgpu *vgpu, in intel_vgpu_set_intx_mask()
1070 static int intel_vgpu_set_intx_unmask(struct intel_vgpu *vgpu, in intel_vgpu_set_intx_unmask()
1077 static int intel_vgpu_set_intx_trigger(struct intel_vgpu *vgpu, in intel_vgpu_set_intx_trigger()
1084 static int intel_vgpu_set_msi_trigger(struct intel_vgpu *vgpu, in intel_vgpu_set_msi_trigger()
1105 static int intel_vgpu_set_irqs(struct intel_vgpu *vgpu, u32 flags, in intel_vgpu_set_irqs()
1109 int (*func)(struct intel_vgpu *vgpu, unsigned int index, in intel_vgpu_set_irqs()
1149 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_ioctl()
1424 struct intel_vgpu *vgpu = dev_get_drvdata(dev); in vgpu_id_show()
1449 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_init_dev()
1459 struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); in intel_vgpu_release_dev()
1479 struct intel_vgpu *vgpu; in intel_vgpu_probe()
1482 vgpu = vfio_alloc_device(intel_vgpu, vfio_device, &mdev->dev, in intel_vgpu_probe()
1505 struct intel_vgpu *vgpu = dev_get_drvdata(&mdev->dev); in intel_vgpu_remove()
1548 int intel_gvt_page_track_add(struct intel_vgpu *info, u64 gfn) in intel_gvt_page_track_add()
1578 int intel_gvt_page_track_remove(struct intel_vgpu *info, u64 gfn) in intel_gvt_page_track_remove()
1612 struct intel_vgpu *info = in kvmgt_page_track_write()
1613 container_of(node, struct intel_vgpu, track_node); in kvmgt_page_track_write()
1626 struct intel_vgpu *info = in kvmgt_page_track_flush_slot()
1627 container_of(node, struct intel_vgpu, track_node); in kvmgt_page_track_flush_slot()
1641 void intel_vgpu_detach_regions(struct intel_vgpu *vgpu) in intel_vgpu_detach_regions()
1657 int intel_gvt_dma_map_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in intel_gvt_dma_map_guest_page()
1704 int intel_gvt_dma_pin_guest_page(struct intel_vgpu *vgpu, dma_addr_t dma_addr) in intel_gvt_dma_pin_guest_page()
1732 void intel_gvt_dma_unmap_guest_page(struct intel_vgpu *vgpu, in intel_gvt_dma_unmap_guest_page()
1766 struct intel_vgpu *vgpu; in intel_gvt_test_and_emulate_vblank()
1874 struct intel_vgpu *vgpu; in intel_gvt_init_device()