/xen/xen/include/xen/ |
A D | irq.h | 50 struct irq_desc; 58 unsigned int (*startup)(struct irq_desc *); 59 void (*shutdown)(struct irq_desc *); 60 void (*enable)(struct irq_desc *); 61 void (*disable)(struct irq_desc *); 62 void (*ack)(struct irq_desc *); 64 void (*end)(struct irq_desc *, u8 vector); 66 void (*end)(struct irq_desc *); 86 typedef struct irq_desc { struct 103 #define irq_to_desc(irq) (&irq_desc[irq]) argument [all …]
|
/xen/xen/include/asm-arm/ |
A D | gic.h | 240 void gic_set_irq_type(struct irq_desc *desc, unsigned int type); 245 struct irq_desc *desc, 250 struct irq_desc *desc); 341 void (*eoi_irq)(struct irq_desc *irqd); 343 void (*deactivate_irq)(struct irq_desc *irqd); 347 void (*set_active_state)(struct irq_desc *irqd, bool state); 349 void (*set_pending_state)(struct irq_desc *irqd, bool state); 351 void (*set_irq_type)(struct irq_desc *desc, unsigned int type); 375 bool (*read_pending_state)(struct irq_desc *irqd); 409 static inline void gic_set_active_state(struct irq_desc *irqd, bool state) in gic_set_active_state() [all …]
|
A D | irq.h | 57 struct irq_desc; 60 struct irq_desc *__irq_to_desc(int irq); 93 void irq_set_affinity(struct irq_desc *desc, const cpumask_t *cpu_mask);
|
A D | vgic.h | 80 struct irq_desc *desc; /* only set if the irq corresponds to a physical irq */ 331 struct irq_desc *vgic_get_hw_irq_desc(struct domain *d, struct vcpu *v, 334 struct irq_desc *desc, bool connect);
|
/xen/xen/include/asm-x86/ |
A D | irq.h | 29 struct irq_desc; 114 void disable_8259A_irq(struct irq_desc *); 115 void enable_8259A_irq(struct irq_desc *); 176 extern void irq_complete_move(struct irq_desc *); 178 extern struct irq_desc *irq_desc; 185 void move_native_irq(struct irq_desc *); 186 void move_masked_irq(struct irq_desc *); 190 void end_nonmaskable_irq(struct irq_desc *, uint8_t vector); 191 void irq_set_affinity(struct irq_desc *, const cpumask_t *mask);
|
A D | msi.h | 81 struct irq_desc; 89 extern int setup_msi_irq(struct irq_desc *, struct msi_desc *); 90 extern int __setup_msi_irq(struct irq_desc *, struct msi_desc *, 249 void mask_msi_irq(struct irq_desc *); 250 void unmask_msi_irq(struct irq_desc *); 251 void guest_mask_msi_irq(struct irq_desc *, bool mask); 252 void ack_nonmaskable_msi_irq(struct irq_desc *); 253 void set_msi_affinity(struct irq_desc *, const cpumask_t *);
|
/xen/xen/arch/arm/ |
A D | irq.c | 42 static void ack_none(struct irq_desc *irq) in ack_none() 47 static void end_none(struct irq_desc *irq) in end_none() 66 static irq_desc_t irq_desc[NR_IRQS]; variable 74 return &irq_desc[irq-NR_LOCAL_IRQS]; in __irq_to_desc() 77 int arch_init_one_irq_desc(struct irq_desc *desc) in arch_init_one_irq_desc() 201 struct irq_desc *desc = irq_to_desc(irq); in do_IRQ() 274 struct irq_desc *desc; in release_irq() 349 struct irq_desc *desc; in setup_irq() 419 struct irq_desc *desc; in route_irq_to_guest() 535 struct irq_desc *desc; in release_guest_irq() [all …]
|
A D | gic.c | 99 void gic_set_irq_type(struct irq_desc *desc, unsigned int type) in gic_set_irq_type() 112 static void gic_set_irq_priority(struct irq_desc *desc, unsigned int priority) in gic_set_irq_priority() 120 void gic_route_irq_to_xen(struct irq_desc *desc, unsigned int priority) in gic_route_irq_to_xen() 137 struct irq_desc *desc, unsigned int priority) in gic_route_irq_to_guest() 171 struct irq_desc *desc) in gic_remove_irq_from_guest() 344 struct irq_desc *desc = irq_to_desc(sgi); in do_sgi()
|
A D | gic-v2.c | 223 static void gicv2_eoi_irq(struct irq_desc *irqd) in gicv2_eoi_irq() 230 static void gicv2_dir_irq(struct irq_desc *irqd) in gicv2_dir_irq() 326 static void gicv2_set_irq_priority(struct irq_desc *desc, in gicv2_set_irq_priority() 608 static bool gicv2_read_pending_state(struct irq_desc *irqd) in gicv2_read_pending_state() 613 static void gicv2_irq_enable(struct irq_desc *desc) in gicv2_irq_enable() 627 static void gicv2_irq_disable(struct irq_desc *desc) in gicv2_irq_disable() 640 static unsigned int gicv2_irq_startup(struct irq_desc *desc) in gicv2_irq_startup() 647 static void gicv2_irq_shutdown(struct irq_desc *desc) in gicv2_irq_shutdown() 652 static void gicv2_irq_ack(struct irq_desc *desc) in gicv2_irq_ack() 657 static void gicv2_host_irq_end(struct irq_desc *desc) in gicv2_host_irq_end() [all …]
|
A D | gic-v3.c | 458 static void gicv3_unmask_irq(struct irq_desc *irqd) in gicv3_unmask_irq() 463 static void gicv3_mask_irq(struct irq_desc *irqd) in gicv3_mask_irq() 468 static void gicv3_eoi_irq(struct irq_desc *irqd) in gicv3_eoi_irq() 475 static void gicv3_dir_irq(struct irq_desc *irqd) in gicv3_dir_irq() 577 static void gicv3_set_irq_priority(struct irq_desc *desc, in gicv3_set_irq_priority() 1183 static void gicv3_irq_enable(struct irq_desc *desc) in gicv3_irq_enable() 1197 static void gicv3_irq_disable(struct irq_desc *desc) in gicv3_irq_disable() 1217 static void gicv3_irq_shutdown(struct irq_desc *desc) in gicv3_irq_shutdown() 1222 static void gicv3_irq_ack(struct irq_desc *desc) in gicv3_irq_ack() 1227 static void gicv3_host_irq_end(struct irq_desc *desc) in gicv3_host_irq_end() [all …]
|
A D | gic-vgic.c | 416 struct irq_desc *vgic_get_hw_irq_desc(struct domain *d, struct vcpu *v, in vgic_get_hw_irq_desc() 434 struct irq_desc *desc, bool connect) in vgic_connect_hw_irq()
|
A D | time.c | 281 struct irq_desc *desc = irq_to_desc(irq); in check_timer_irq_cfg()
|
/xen/xen/common/ |
A D | irq.c | 4 int init_one_irq_desc(struct irq_desc *desc) in init_one_irq_desc() 34 void irq_actor_none(struct irq_desc *desc) in irq_actor_none() 38 unsigned int irq_startup_none(struct irq_desc *desc) in irq_startup_none()
|
/xen/xen/arch/x86/ |
A D | irq.c | 47 struct irq_desc __read_mostly *irq_desc = NULL; variable 263 struct irq_desc *desc; in create_irq() 418 struct irq_desc *desc; in init_irq_data() 424 irq_desc = xzalloc_array(struct irq_desc, nr_irqs); in init_irq_data() 426 if ( !irq_desc ) in init_irq_data() 987 struct irq_desc *desc; in release_irq() 1010 struct irq_desc *desc; in setup_irq() 1193 struct irq_desc *desc; in pirq_spin_lock_irq_desc() 1368 irq = desc - irq_desc; in __set_eoi_ready() 1401 struct irq_desc *desc; in pirq_guest_eoi() [all …]
|
A D | i8259.c | 43 static void mask_and_ack_8259A_irq(struct irq_desc *desc) in mask_and_ack_8259A_irq() 48 static unsigned int startup_8259A_irq(struct irq_desc *desc) in startup_8259A_irq() 54 static void end_8259A_irq(struct irq_desc *desc, u8 vector) in end_8259A_irq() 111 void disable_8259A_irq(struct irq_desc *desc) in disable_8259A_irq() 116 void enable_8259A_irq(struct irq_desc *desc) in enable_8259A_irq() 346 struct irq_desc *desc = irq_to_desc(irq); in init_IRQ()
|
A D | io_apic.c | 84 struct irq_desc *desc; in share_vector_maps() 460 static void mask_IO_APIC_irq(struct irq_desc *desc) in mask_IO_APIC_irq() 494 static void eoi_IO_APIC_irq(struct irq_desc *desc) in eoi_IO_APIC_irq() 680 struct irq_desc *desc; in setup_ioapic_dest() 981 irq_desc[irq].handler = &ioapic_edge_type; in ioapic_register_intr() 1087 irq_desc[0].handler = &ioapic_edge_type; in setup_ExtINT_IRQ0_pin() 1810 static void ack_lapic_irq(struct irq_desc *desc) in ack_lapic_irq() 1901 irq_desc[0].status &= ~IRQ_DISABLED; in check_timer() 1969 irq_desc[0].handler = &lapic_irq_type; in check_timer() 2202 struct irq_desc *desc = irq_to_desc(irq); in io_apic_set_pci_routing() [all …]
|
A D | msi.c | 422 void mask_msi_irq(struct irq_desc *desc) in mask_msi_irq() 429 void unmask_msi_irq(struct irq_desc *desc) in unmask_msi_irq() 436 void guest_mask_msi_irq(struct irq_desc *desc, bool mask) in guest_mask_msi_irq() 441 static unsigned int startup_msi_irq(struct irq_desc *desc) in startup_msi_irq() 448 static void shutdown_msi_irq(struct irq_desc *desc) in shutdown_msi_irq() 454 void ack_nonmaskable_msi_irq(struct irq_desc *desc) in ack_nonmaskable_msi_irq() 460 static void ack_maskable_msi_irq(struct irq_desc *desc) in ack_maskable_msi_irq() 1313 struct irq_desc *desc; in pci_restore_msi_state() 1335 desc = &irq_desc[irq]; in pci_restore_msi_state() 1391 desc = &irq_desc[entry[++i].irq]; in pci_restore_msi_state() [all …]
|
A D | hpet.c | 231 static void hpet_msi_unmask(struct irq_desc *desc) in hpet_msi_unmask() 242 static void hpet_msi_mask(struct irq_desc *desc) in hpet_msi_mask() 281 static unsigned int hpet_msi_startup(struct irq_desc *desc) in hpet_msi_startup() 289 static void hpet_msi_ack(struct irq_desc *desc) in hpet_msi_ack() 296 static void hpet_msi_set_affinity(struct irq_desc *desc, const cpumask_t *mask) in hpet_msi_set_affinity() 326 static int __hpet_setup_msi_irq(struct irq_desc *desc) in __hpet_setup_msi_irq() 472 struct irq_desc *desc = irq_to_desc(ch->msi.irq); in set_channel_irq_affinity()
|
/xen/xen/arch/x86/hvm/ |
A D | vmsi.c | 281 struct irq_desc *desc; in msixtbl_write() 461 struct irq_desc *irq_desc; in msixtbl_pt_register() local 481 irq_desc = pirq_spin_lock_irq_desc(pirq, NULL); in msixtbl_pt_register() 482 if ( !irq_desc ) in msixtbl_pt_register() 488 msi_desc = irq_desc->msi_desc; in msixtbl_pt_register() 507 spin_unlock_irq(&irq_desc->lock); in msixtbl_pt_register() 532 struct irq_desc *irq_desc; in msixtbl_pt_unregister() local 544 if ( !irq_desc ) in msixtbl_pt_unregister() 547 msi_desc = irq_desc->msi_desc; in msixtbl_pt_unregister() 558 spin_unlock_irq(&irq_desc->lock); in msixtbl_pt_unregister() [all …]
|
/xen/xen/drivers/passthrough/amd/ |
A D | iommu_init.c | 412 static void iommu_msi_unmask(struct irq_desc *desc) in iommu_msi_unmask() 423 static void iommu_msi_mask(struct irq_desc *desc) in iommu_msi_mask() 436 static unsigned int iommu_msi_startup(struct irq_desc *desc) in iommu_msi_startup() 442 static void iommu_msi_end(struct irq_desc *desc, u8 vector) in iommu_msi_end() 460 static unsigned int iommu_maskable_msi_startup(struct irq_desc *desc) in iommu_maskable_msi_startup() 467 static void iommu_maskable_msi_shutdown(struct irq_desc *desc) in iommu_maskable_msi_shutdown() 491 static void set_x2apic_affinity(struct irq_desc *desc, const cpumask_t *mask) in set_x2apic_affinity() 764 struct irq_desc *desc = irq_to_desc(irq); in set_iommu_interrupt_handler() 820 struct irq_desc *desc = irq_to_desc(iommu->msi.irq); in iov_adjust_irq_affinities() 892 struct irq_desc *desc = irq_to_desc(iommu->msi.irq); in enable_iommu() [all …]
|
/xen/xen/arch/arm/vgic/ |
A D | vgic.c | 829 struct irq_desc *vgic_get_hw_irq_desc(struct domain *d, struct vcpu *v, in vgic_get_hw_irq_desc() 832 struct irq_desc *desc = NULL; in vgic_get_hw_irq_desc() 865 unsigned int virt_irq, struct irq_desc *desc, in vgic_connect_hw_irq()
|
A D | vgic-v2.c | 74 struct irq_desc *desc = NULL; in vgic_v2_fold_lr_state()
|
A D | vgic-mmio-v2.c | 171 struct irq_desc *desc = irq_to_desc(irq->hwintid); in vgic_mmio_write_target()
|
/xen/xen/drivers/passthrough/vtd/ |
A D | iommu.c | 1031 static void dma_msi_unmask(struct irq_desc *desc) in dma_msi_unmask() 1046 static void dma_msi_mask(struct irq_desc *desc) in dma_msi_mask() 1061 static unsigned int dma_msi_startup(struct irq_desc *desc) in dma_msi_startup() 1067 static void dma_msi_ack(struct irq_desc *desc) in dma_msi_ack() 1074 static void dma_msi_end(struct irq_desc *desc, u8 vector) in dma_msi_end() 1080 static void dma_msi_set_affinity(struct irq_desc *desc, const cpumask_t *mask) in dma_msi_set_affinity() 1129 struct irq_desc *desc; in iommu_set_interrupt() 2088 struct irq_desc *desc; in adjust_irq_affinity()
|
/xen/xen/drivers/passthrough/ |
A D | io.c | 449 struct irq_desc *desc = pirq_spin_lock_irq_desc(info, &flags); in pt_irq_create_bind() 657 struct irq_desc *desc = domain_spin_lock_irq_desc(d, machine_gsi, in pt_irq_destroy_bind()
|