Lines Matching refs:e
18 static int vgic_irqfd_set_irq(struct kvm_kernel_irq_routing_entry *e, in vgic_irqfd_set_irq() argument
22 unsigned int spi_id = e->irqchip.pin + VGIC_NR_PRIVATE_IRQS; in vgic_irqfd_set_irq()
39 struct kvm_kernel_irq_routing_entry *e, in kvm_set_routing_entry() argument
46 e->set = vgic_irqfd_set_irq; in kvm_set_routing_entry()
47 e->irqchip.irqchip = ue->u.irqchip.irqchip; in kvm_set_routing_entry()
48 e->irqchip.pin = ue->u.irqchip.pin; in kvm_set_routing_entry()
49 if ((e->irqchip.pin >= KVM_IRQCHIP_NUM_PINS) || in kvm_set_routing_entry()
50 (e->irqchip.irqchip >= KVM_NR_IRQCHIPS)) in kvm_set_routing_entry()
54 e->set = kvm_set_msi; in kvm_set_routing_entry()
55 e->msi.address_lo = ue->u.msi.address_lo; in kvm_set_routing_entry()
56 e->msi.address_hi = ue->u.msi.address_hi; in kvm_set_routing_entry()
57 e->msi.data = ue->u.msi.data; in kvm_set_routing_entry()
58 e->msi.flags = ue->flags; in kvm_set_routing_entry()
59 e->msi.devid = ue->u.msi.devid; in kvm_set_routing_entry()
69 static void kvm_populate_msi(struct kvm_kernel_irq_routing_entry *e, in kvm_populate_msi() argument
72 msi->address_lo = e->msi.address_lo; in kvm_populate_msi()
73 msi->address_hi = e->msi.address_hi; in kvm_populate_msi()
74 msi->data = e->msi.data; in kvm_populate_msi()
75 msi->flags = e->msi.flags; in kvm_populate_msi()
76 msi->devid = e->msi.devid; in kvm_populate_msi()
85 int kvm_set_msi(struct kvm_kernel_irq_routing_entry *e, in kvm_set_msi() argument
97 kvm_populate_msi(e, &msi); in kvm_set_msi()
104 int kvm_arch_set_irq_inatomic(struct kvm_kernel_irq_routing_entry *e, in kvm_arch_set_irq_inatomic() argument
111 switch (e->type) { in kvm_arch_set_irq_inatomic()
118 kvm_populate_msi(e, &msi); in kvm_arch_set_irq_inatomic()
129 return vgic_irqfd_set_irq(e, kvm, irq_source_id, 1, line_status); in kvm_arch_set_irq_inatomic()