Searched refs:bus_idx (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/virt/kvm/
H A Deventfd.c653 u8 bus_idx; member in struct:_ioeventfd
754 if (_p->bus_idx == p->bus_idx && ioeventfd_check_collision()
775 enum kvm_bus bus_idx, kvm_assign_ioeventfd_idx()
795 p->bus_idx = bus_idx; kvm_assign_ioeventfd_idx()
815 ret = kvm_io_bus_register_dev(kvm, bus_idx, p->addr, p->length, kvm_assign_ioeventfd_idx()
820 kvm->buses[bus_idx]->ioeventfd_count++; kvm_assign_ioeventfd_idx()
838 kvm_deassign_ioeventfd_idx(struct kvm *kvm, enum kvm_bus bus_idx, kvm_deassign_ioeventfd_idx() argument
854 if (p->bus_idx != bus_idx || kvm_deassign_ioeventfd_idx()
864 kvm_io_bus_unregister_dev(kvm, bus_idx, &p->dev); kvm_deassign_ioeventfd_idx()
865 kvm->buses[bus_idx]->ioeventfd_count--; kvm_deassign_ioeventfd_idx()
880 enum kvm_bus bus_idx = ioeventfd_bus_from_flags(args->flags); kvm_deassign_ioeventfd() local
881 int ret = kvm_deassign_ioeventfd_idx(kvm, bus_idx, args); kvm_deassign_ioeventfd()
883 if (!args->len && bus_idx == KVM_MMIO_BUS) kvm_deassign_ioeventfd()
892 enum kvm_bus bus_idx; kvm_assign_ioeventfd() local
895 bus_idx = ioeventfd_bus_from_flags(args->flags); kvm_assign_ioeventfd()
922 ret = kvm_assign_ioeventfd_idx(kvm, bus_idx, args); kvm_assign_ioeventfd()
929 if (!args->len && bus_idx == KVM_MMIO_BUS) { kvm_assign_ioeventfd()
938 kvm_deassign_ioeventfd_idx(kvm, bus_idx, args); kvm_assign_ioeventfd()
774 kvm_assign_ioeventfd_idx(struct kvm *kvm, enum kvm_bus bus_idx, struct kvm_ioeventfd *args) kvm_assign_ioeventfd_idx() argument
H A Dkvm_main.c3026 int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_write() argument
3038 bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); kvm_io_bus_write()
3044 int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, kvm_io_bus_write_cookie() argument
3055 bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); kvm_io_bus_write_cookie()
3093 int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_read() argument
3105 bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); kvm_io_bus_read()
3112 int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_register_dev() argument
3117 bus = kvm->buses[bus_idx]; kvm_io_bus_register_dev()
3129 rcu_assign_pointer(kvm->buses[bus_idx], new_bus); kvm_io_bus_register_dev()
3137 int kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, kvm_io_bus_unregister_dev() argument
3143 bus = kvm->buses[bus_idx]; kvm_io_bus_unregister_dev()
3164 rcu_assign_pointer(kvm->buses[bus_idx], new_bus); kvm_io_bus_unregister_dev()
/linux-4.1.27/include/linux/
H A Dkvm_host.h168 int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr,
170 int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx,
172 int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr,
174 int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr,
176 int kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx,

Completed in 189 milliseconds