Lines Matching defs:vdev

62 static bool vfio_notifier_init(VFIOPCIDevice *vdev, EventNotifier *e,  in vfio_notifier_init()
84 static void vfio_notifier_cleanup(VFIOPCIDevice *vdev, EventNotifier *e, in vfio_notifier_cleanup()
108 VFIOPCIDevice *vdev = opaque; in vfio_intx_mmap_enable() local
121 VFIOPCIDevice *vdev = opaque; in vfio_intx_interrupt() local
140 VFIOPCIDevice *vdev = container_of(vbasedev, VFIOPCIDevice, vbasedev); in vfio_pci_intx_eoi() local
153 static bool vfio_intx_enable_kvm(VFIOPCIDevice *vdev, Error **errp) in vfio_intx_enable_kvm()
213 static bool vfio_cpr_intx_enable_kvm(VFIOPCIDevice *vdev, Error **errp) in vfio_cpr_intx_enable_kvm()
243 static void vfio_intx_disable_kvm(VFIOPCIDevice *vdev) in vfio_intx_disable_kvm()
280 static void vfio_intx_update(VFIOPCIDevice *vdev, PCIINTxRoute *route) in vfio_intx_update()
305 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_intx_routing_notifier() local
321 VFIOPCIDevice *vdev = container_of(notify, VFIOPCIDevice, in vfio_irqchip_change() local
327 static bool vfio_intx_enable(VFIOPCIDevice *vdev, Error **errp) in vfio_intx_enable()
393 static void vfio_intx_disable(VFIOPCIDevice *vdev) in vfio_intx_disable()
413 bool vfio_pci_intx_enable(VFIOPCIDevice *vdev, Error **errp) in vfio_pci_intx_enable()
424 VFIOPCIDevice *vdev = vector->vdev; in vfio_msi_interrupt() local
456 void vfio_pci_msi_set_handler(VFIOPCIDevice *vdev, int nr) in vfio_pci_msi_set_handler()
468 static int vfio_enable_msix_no_vec(VFIOPCIDevice *vdev) in vfio_enable_msix_no_vec()
489 static int vfio_enable_vectors(VFIOPCIDevice *vdev, bool msix) in vfio_enable_vectors()
550 void vfio_pci_add_kvm_msi_virq(VFIOPCIDevice *vdev, VFIOMSIVector *vector, in vfio_pci_add_kvm_msi_virq()
588 static void vfio_remove_kvm_msi_virq(VFIOPCIDevice *vdev, VFIOMSIVector *vector, in vfio_remove_kvm_msi_virq()
624 void vfio_pci_vector_init(VFIOPCIDevice *vdev, int nr) in vfio_pci_vector_init()
645 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_msix_vector_do_use() local
740 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_msix_vector_release() local
765 void vfio_pci_msix_set_notifiers(VFIOPCIDevice *vdev) in vfio_pci_msix_set_notifiers()
771 void vfio_pci_prepare_kvm_msi_virq_batch(VFIOPCIDevice *vdev) in vfio_pci_prepare_kvm_msi_virq_batch()
778 void vfio_pci_commit_kvm_msi_virq_batch(VFIOPCIDevice *vdev) in vfio_pci_commit_kvm_msi_virq_batch()
792 static void vfio_msix_enable(VFIOPCIDevice *vdev) in vfio_msix_enable()
846 static void vfio_msi_enable(VFIOPCIDevice *vdev) in vfio_msi_enable()
921 static void vfio_msi_disable_common(VFIOPCIDevice *vdev) in vfio_msi_disable_common()
943 static void vfio_msix_disable(VFIOPCIDevice *vdev) in vfio_msix_disable()
978 static void vfio_msi_disable(VFIOPCIDevice *vdev) in vfio_msi_disable()
992 static void vfio_update_msi(VFIOPCIDevice *vdev) in vfio_update_msi()
1009 static void vfio_pci_load_rom(VFIOPCIDevice *vdev) in vfio_pci_load_rom()
1098 static int vfio_pci_config_space_read(VFIOPCIDevice *vdev, off_t offset, in vfio_pci_config_space_read()
1107 static int vfio_pci_config_space_write(VFIOPCIDevice *vdev, off_t offset, in vfio_pci_config_space_write()
1117 VFIOPCIDevice *vdev = opaque; in vfio_rom_read() local
1165 static void vfio_pci_size_rom(VFIOPCIDevice *vdev) in vfio_pci_size_rom()
1324 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_sub_page_bar_update_mapping() local
1370 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_pci_read_config() local
1404 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_pci_write_config() local
1479 static void vfio_disable_interrupts(VFIOPCIDevice *vdev) in vfio_disable_interrupts()
1497 static bool vfio_msi_setup(VFIOPCIDevice *vdev, int pos, Error **errp) in vfio_msi_setup()
1532 static void vfio_pci_fixup_msix_region(VFIOPCIDevice *vdev) in vfio_pci_fixup_msix_region()
1609 static bool vfio_pci_relocate_msix(VFIOPCIDevice *vdev, Error **errp) in vfio_pci_relocate_msix()
1710 static bool vfio_msix_early_setup(VFIOPCIDevice *vdev, Error **errp) in vfio_msix_early_setup()
1809 static bool vfio_msix_setup(VFIOPCIDevice *vdev, int pos, Error **errp) in vfio_msix_setup()
1866 void vfio_pci_teardown_msi(VFIOPCIDevice *vdev) in vfio_pci_teardown_msi()
1881 static void vfio_mmap_set_enabled(VFIOPCIDevice *vdev, bool enabled) in vfio_mmap_set_enabled()
1890 static void vfio_bar_prepare(VFIOPCIDevice *vdev, int nr) in vfio_bar_prepare()
1921 static void vfio_bars_prepare(VFIOPCIDevice *vdev) in vfio_bars_prepare()
1930 static void vfio_bar_register(VFIOPCIDevice *vdev, int nr) in vfio_bar_register()
1956 static void vfio_bars_register(VFIOPCIDevice *vdev) in vfio_bars_register()
1965 void vfio_pci_bars_exit(VFIOPCIDevice *vdev) in vfio_pci_bars_exit()
1985 static void vfio_bars_finalize(VFIOPCIDevice *vdev) in vfio_bars_finalize()
2049 static void vfio_add_emulated_word(VFIOPCIDevice *vdev, int pos, in vfio_add_emulated_word()
2062 static void vfio_add_emulated_long(VFIOPCIDevice *vdev, int pos, in vfio_add_emulated_long()
2070 static void vfio_pci_enable_rp_atomics(VFIOPCIDevice *vdev) in vfio_pci_enable_rp_atomics()
2133 static void vfio_pci_disable_rp_atomics(VFIOPCIDevice *vdev) in vfio_pci_disable_rp_atomics()
2145 static bool vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size, in vfio_setup_pcie_cap()
2275 static void vfio_check_pcie_flr(VFIOPCIDevice *vdev, uint8_t pos) in vfio_check_pcie_flr()
2285 static void vfio_check_pm_reset(VFIOPCIDevice *vdev, uint8_t pos) in vfio_check_pm_reset()
2295 static void vfio_check_af_flr(VFIOPCIDevice *vdev, uint8_t pos) in vfio_check_af_flr()
2305 static bool vfio_add_vendor_specific_cap(VFIOPCIDevice *vdev, int pos, in vfio_add_vendor_specific_cap()
2327 static bool vfio_add_std_cap(VFIOPCIDevice *vdev, uint8_t pos, Error **errp) in vfio_add_std_cap()
2414 static int vfio_setup_rebar_ecap(VFIOPCIDevice *vdev, uint16_t pos) in vfio_setup_rebar_ecap()
2462 static void vfio_add_ext_cap(VFIOPCIDevice *vdev) in vfio_add_ext_cap()
2556 bool vfio_pci_add_capabilities(VFIOPCIDevice *vdev, Error **errp) in vfio_pci_add_capabilities()
2573 void vfio_pci_pre_reset(VFIOPCIDevice *vdev) in vfio_pci_pre_reset()
2610 void vfio_pci_post_reset(VFIOPCIDevice *vdev) in vfio_pci_post_reset()
2645 int vfio_pci_get_pci_hot_reset_info(VFIOPCIDevice *vdev, in vfio_pci_get_pci_hot_reset_info()
2683 static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single) in vfio_pci_hot_reset()
2706 static int vfio_pci_hot_reset_one(VFIOPCIDevice *vdev) in vfio_pci_hot_reset_one()
2713 VFIOPCIDevice *vdev = container_of(vbasedev, VFIOPCIDevice, vbasedev); in vfio_pci_hot_reset_multi() local
2719 VFIOPCIDevice *vdev = container_of(vbasedev, VFIOPCIDevice, vbasedev); in vfio_pci_compute_needs_reset() local
2727 VFIOPCIDevice *vdev = container_of(vbasedev, VFIOPCIDevice, vbasedev); in vfio_pci_get_object() local
2741 VFIOPCIDevice *vdev = opaque; in vfio_display_migration_needed() local
2783 VFIOPCIDevice *vdev = container_of(vbasedev, VFIOPCIDevice, vbasedev); in vfio_pci_save_config() local
2791 VFIOPCIDevice *vdev = container_of(vbasedev, VFIOPCIDevice, vbasedev); in vfio_pci_load_config() local
2838 bool vfio_populate_vga(VFIOPCIDevice *vdev, Error **errp) in vfio_populate_vga()
2903 bool vfio_pci_populate_device(VFIOPCIDevice *vdev, Error **errp) in vfio_pci_populate_device()
2983 void vfio_pci_put_device(VFIOPCIDevice *vdev) in vfio_pci_put_device()
3005 VFIOPCIDevice *vdev = opaque; in vfio_err_notifier_handler() local
3031 void vfio_pci_register_err_notifier(VFIOPCIDevice *vdev) in vfio_pci_register_err_notifier()
3064 static void vfio_unregister_err_notifier(VFIOPCIDevice *vdev) in vfio_unregister_err_notifier()
3083 VFIOPCIDevice *vdev = opaque; in vfio_req_notifier_handler() local
3096 void vfio_pci_register_req_notifier(VFIOPCIDevice *vdev) in vfio_pci_register_req_notifier()
3138 static void vfio_unregister_req_notifier(VFIOPCIDevice *vdev) in vfio_unregister_req_notifier()
3157 bool vfio_pci_config_setup(VFIOPCIDevice *vdev, Error **errp) in vfio_pci_config_setup()
3263 bool vfio_pci_interrupt_setup(VFIOPCIDevice *vdev, Error **errp) in vfio_pci_interrupt_setup()
3304 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_pci_realize() local
3463 VFIOPCIDevice *vdev = VFIO_PCI_BASE(obj); in vfio_instance_finalize() local
3470 VFIOPCIDevice *vdev = VFIO_PCI_BASE(pdev); in vfio_exitfn() local
3494 VFIOPCIDevice *vdev = VFIO_PCI_BASE(dev); in vfio_pci_reset() local
3539 VFIOPCIDevice *vdev = VFIO_PCI_BASE(obj); in vfio_instance_init() local
3662 VFIOPCIDevice *vdev = VFIO_PCI_BASE(obj); in vfio_pci_set_fd() local