Home
last modified time | relevance | path

Searched refs:iodev (Results 1 – 7 of 7) sorted by relevance

/arch/arm64/kvm/vgic/
Dvgic-mmio.c965 vgic_get_mmio_region(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev, in vgic_get_mmio_region() argument
970 region = vgic_find_mmio_region(iodev->regions, iodev->nr_regions, in vgic_get_mmio_region()
971 addr - iodev->base_addr); in vgic_get_mmio_region()
978 static int vgic_uaccess_read(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev, in vgic_uaccess_read() argument
984 region = vgic_get_mmio_region(vcpu, iodev, addr, sizeof(u32)); in vgic_uaccess_read()
990 r_vcpu = iodev->redist_vcpu ? iodev->redist_vcpu : vcpu; in vgic_uaccess_read()
999 static int vgic_uaccess_write(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev, in vgic_uaccess_write() argument
1005 region = vgic_get_mmio_region(vcpu, iodev, addr, sizeof(u32)); in vgic_uaccess_write()
1009 r_vcpu = iodev->redist_vcpu ? iodev->redist_vcpu : vcpu; in vgic_uaccess_write()
1032 struct vgic_io_device *iodev = kvm_to_vgic_iodev(dev); in dispatch_mmio_read() local
[all …]
Dvgic-mmio-v2.c500 struct vgic_io_device iodev; in vgic_v2_has_attr_regs() local
515 iodev.regions = vgic_v2_dist_registers; in vgic_v2_has_attr_regs()
516 iodev.nr_regions = ARRAY_SIZE(vgic_v2_dist_registers); in vgic_v2_has_attr_regs()
517 iodev.base_addr = 0; in vgic_v2_has_attr_regs()
520 iodev.regions = vgic_v2_cpu_registers; in vgic_v2_has_attr_regs()
521 iodev.nr_regions = ARRAY_SIZE(vgic_v2_cpu_registers); in vgic_v2_has_attr_regs()
522 iodev.base_addr = 0; in vgic_v2_has_attr_regs()
532 region = vgic_get_mmio_region(vcpu, &iodev, addr, sizeof(u32)); in vgic_v2_has_attr_regs()
Dvgic-mmio-v3.c993 struct vgic_io_device iodev; in vgic_v3_has_attr_regs() local
1008 iodev.regions = vgic_v3_dist_registers; in vgic_v3_has_attr_regs()
1009 iodev.nr_regions = ARRAY_SIZE(vgic_v3_dist_registers); in vgic_v3_has_attr_regs()
1010 iodev.base_addr = 0; in vgic_v3_has_attr_regs()
1013 iodev.regions = vgic_v3_rd_registers; in vgic_v3_has_attr_regs()
1014 iodev.nr_regions = ARRAY_SIZE(vgic_v3_rd_registers); in vgic_v3_has_attr_regs()
1015 iodev.base_addr = 0; in vgic_v3_has_attr_regs()
1028 region = vgic_get_mmio_region(vcpu, &iodev, addr, sizeof(u32)); in vgic_v3_has_attr_regs()
Dvgic-its.c706 struct vgic_io_device *iodev; in vgic_msi_to_its() local
723 iodev = container_of(kvm_io_dev, struct vgic_io_device, dev); in vgic_msi_to_its()
724 if (iodev->iodev_type != IODEV_ITS) in vgic_msi_to_its()
727 return iodev->its; in vgic_msi_to_its()
1870 struct vgic_io_device *iodev = &its->iodev; in vgic_register_its_iodev() local
1880 iodev->regions = its_registers; in vgic_register_its_iodev()
1881 iodev->nr_regions = ARRAY_SIZE(its_registers); in vgic_register_its_iodev()
1882 kvm_iodevice_init(&iodev->dev, &kvm_io_gic_ops); in vgic_register_its_iodev()
1884 iodev->base_addr = its->vgic_its_base; in vgic_register_its_iodev()
1885 iodev->iodev_type = IODEV_ITS; in vgic_register_its_iodev()
[all …]
Dvgic.h179 vgic_get_mmio_region(struct kvm_vcpu *vcpu, struct vgic_io_device *iodev,
/arch/riscv/kvm/
Daia_aplic.c30 struct kvm_io_device iodev; member
600 kvm_iodevice_init(&aplic->iodev, &aplic_iodoev_ops); in kvm_riscv_aia_aplic_init()
605 &aplic->iodev); in kvm_riscv_aia_aplic_init()
619 kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS, &aplic->iodev); in kvm_riscv_aia_aplic_init()
637 kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS, &aplic->iodev); in kvm_riscv_aia_aplic_cleanup()
Daia_imsic.c34 struct kvm_io_device iodev; member
1057 kvm_iodevice_init(&imsic->iodev, &imsic_iodoev_ops); in kvm_riscv_vcpu_aia_imsic_init()
1062 &imsic->iodev); in kvm_riscv_vcpu_aia_imsic_init()
1089 kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS, &imsic->iodev); in kvm_riscv_vcpu_aia_imsic_cleanup()