Lines Matching +full:msi +full:- +full:1
1 // SPDX-License-Identifier: GPL-2.0
62 return -ENXIO; in kvm_vm_ioctl_irq_line()
64 return kvm_riscv_aia_inject_irq(kvm, irql->irq, irql->level); in kvm_vm_ioctl_irq_line()
71 struct kvm_msi msi; in kvm_set_msi() local
74 return -1; in kvm_set_msi()
76 msi.address_lo = e->msi.address_lo; in kvm_set_msi()
77 msi.address_hi = e->msi.address_hi; in kvm_set_msi()
78 msi.data = e->msi.data; in kvm_set_msi()
79 msi.flags = e->msi.flags; in kvm_set_msi()
80 msi.devid = e->msi.devid; in kvm_set_msi()
82 return kvm_riscv_aia_inject_msi(kvm, &msi); in kvm_set_msi()
89 return kvm_riscv_aia_inject_irq(kvm, e->irqchip.pin, level); in kvm_riscv_set_irq()
99 return -ENOMEM; in kvm_riscv_setup_default_irq_routing()
122 int r = -EINVAL; in kvm_set_routing_entry()
124 switch (ue->type) { in kvm_set_routing_entry()
126 e->set = kvm_riscv_set_irq; in kvm_set_routing_entry()
127 e->irqchip.irqchip = ue->u.irqchip.irqchip; in kvm_set_routing_entry()
128 e->irqchip.pin = ue->u.irqchip.pin; in kvm_set_routing_entry()
129 if ((e->irqchip.pin >= KVM_IRQCHIP_NUM_PINS) || in kvm_set_routing_entry()
130 (e->irqchip.irqchip >= KVM_NR_IRQCHIPS)) in kvm_set_routing_entry()
134 e->set = kvm_set_msi; in kvm_set_routing_entry()
135 e->msi.address_lo = ue->u.msi.address_lo; in kvm_set_routing_entry()
136 e->msi.address_hi = ue->u.msi.address_hi; in kvm_set_routing_entry()
137 e->msi.data = ue->u.msi.data; in kvm_set_routing_entry()
138 e->msi.flags = ue->flags; in kvm_set_routing_entry()
139 e->msi.devid = ue->u.msi.devid; in kvm_set_routing_entry()
154 return -EWOULDBLOCK; in kvm_arch_set_irq_inatomic()
156 switch (e->type) { in kvm_arch_set_irq_inatomic()
165 return -EWOULDBLOCK; in kvm_arch_set_irq_inatomic()
190 r = 1; in kvm_vm_ioctl_check_extension()
214 return -EINVAL; in kvm_arch_vm_ioctl()