Home
last modified time | relevance | path

Searched refs:ioapic (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.4/arch/x86/kvm/
Dioapic.c51 static unsigned long ioapic_read_indirect(struct kvm_ioapic *ioapic, in ioapic_read_indirect() argument
57 switch (ioapic->ioregsel) { in ioapic_read_indirect()
65 result = ((ioapic->id & 0xf) << 24); in ioapic_read_indirect()
70 u32 redir_index = (ioapic->ioregsel - 0x10) >> 1; in ioapic_read_indirect()
75 ioapic->redirtbl[redir_index].bits; in ioapic_read_indirect()
79 result = (ioapic->ioregsel & 0x1) ? in ioapic_read_indirect()
89 static void rtc_irq_eoi_tracking_reset(struct kvm_ioapic *ioapic) in rtc_irq_eoi_tracking_reset() argument
91 ioapic->rtc_status.pending_eoi = 0; in rtc_irq_eoi_tracking_reset()
92 bitmap_zero(ioapic->rtc_status.dest_map.map, KVM_MAX_VCPU_ID); in rtc_irq_eoi_tracking_reset()
95 static void kvm_rtc_eoi_tracking_restore_all(struct kvm_ioapic *ioapic);
[all …]
Dioapic.h126 int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int irq_source_id,
128 void kvm_ioapic_clear_all(struct kvm_ioapic *ioapic, int irq_source_id);
DMakefile12 i8254.o ioapic.o irq_comm.o cpuid.o pmu.o mtrr.o \
Dirq_comm.c42 struct kvm_ioapic *ioapic = kvm->arch.vioapic; in kvm_set_ioapic_irq() local
43 return kvm_ioapic_set_irq(ioapic, e->irqchip.pin, irq_source_id, level, in kvm_set_ioapic_irq()
Dx86.c4536 kvm_get_ioapic(kvm, &chip->chip.ioapic); in kvm_vm_ioctl_get_irqchip()
4565 kvm_set_ioapic(kvm, &chip->chip.ioapic); in kvm_vm_ioctl_set_irqchip()
/Linux-v5.4/drivers/acpi/
Dioapic.c101 struct acpi_pci_ioapic *ioapic; in handle_ioapic_add() local
110 list_for_each_entry(ioapic, &ioapic_list, list) in handle_ioapic_add()
111 if (ioapic->handle == handle) { in handle_ioapic_add()
122 ioapic = kzalloc(sizeof(*ioapic), GFP_KERNEL); in handle_ioapic_add()
123 if (!ioapic) { in handle_ioapic_add()
127 ioapic->root_handle = (acpi_handle)context; in handle_ioapic_add()
128 ioapic->handle = handle; in handle_ioapic_add()
129 ioapic->gsi_base = (u32)gsi_base; in handle_ioapic_add()
130 INIT_LIST_HEAD(&ioapic->list); in handle_ioapic_add()
144 ioapic->pdev = dev; in handle_ioapic_add()
[all …]
Dprocessor_core.c271 struct acpi_madt_io_apic *ioapic = (struct acpi_madt_io_apic *)entry; in get_ioapic_id() local
273 if (ioapic->global_irq_base != gsi_base) in get_ioapic_id()
276 *phys_addr = ioapic->address; in get_ioapic_id()
277 *ioapic_id = ioapic->id; in get_ioapic_id()
DMakefile85 obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
/Linux-v5.4/arch/x86/kernel/apic/
Dio_apic.c105 static struct ioapic { struct
140 static inline int mp_ioapic_pin_count(int ioapic) in mp_ioapic_pin_count() argument
142 struct mp_ioapic_gsi *gsi_cfg = mp_ioapic_gsi_routing(ioapic); in mp_ioapic_pin_count()
147 static inline u32 mp_pin_to_gsi(int ioapic, int pin) in mp_pin_to_gsi() argument
149 return mp_ioapic_gsi_routing(ioapic)->gsi_base + pin; in mp_pin_to_gsi()
162 static inline int mp_init_irq_at_boot(int ioapic, int irq) in mp_init_irq_at_boot() argument
167 return ioapic == 0 || mp_is_legacy_irq(irq); in mp_init_irq_at_boot()
170 static inline struct irq_domain *mp_ioapic_irqdomain(int ioapic) in mp_ioapic_irqdomain() argument
172 return ioapics[ioapic].irqdomain; in mp_ioapic_irqdomain()
959 static int alloc_irq_from_domain(struct irq_domain *domain, int ioapic, u32 gsi, in alloc_irq_from_domain() argument
[all …]
/Linux-v5.4/arch/x86/kernel/acpi/
Dboot.c378 int ioapic; in mp_config_acpi_gsi() local
397 ioapic = mp_find_ioapic(gsi); in mp_config_acpi_gsi()
398 mp_irq.dstapic = mpc_ioapic_id(ioapic); in mp_config_acpi_gsi()
399 mp_irq.dstirq = mp_find_ioapic_pin(ioapic, gsi); in mp_config_acpi_gsi()
410 int ioapic, pin; in mp_register_ioapic_irq() local
413 ioapic = mp_find_ioapic(gsi); in mp_register_ioapic_irq()
414 if (ioapic < 0) { in mp_register_ioapic_irq()
416 return ioapic; in mp_register_ioapic_irq()
419 pin = mp_find_ioapic_pin(ioapic, gsi); in mp_register_ioapic_irq()
426 mp_irq.dstapic = mpc_ioapic_id(ioapic); in mp_register_ioapic_irq()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dio_apic.h125 extern int mpc_ioapic_id(int ioapic);
126 extern unsigned int mpc_ioapic_addr(int ioapic);
168 extern int mp_find_ioapic_pin(int ioapic, u32 gsi);
/Linux-v5.4/arch/x86/kernel/
Dmpparse.c349 struct mpc_ioapic ioapic; in construct_ioapic_table() local
376 ioapic.type = MP_IOAPIC; in construct_ioapic_table()
377 ioapic.apicid = 2; in construct_ioapic_table()
378 ioapic.apicver = mpc_default_type > 4 ? 0x10 : 0x01; in construct_ioapic_table()
379 ioapic.flags = MPC_APIC_USABLE; in construct_ioapic_table()
380 ioapic.apicaddr = IO_APIC_DEFAULT_PHYS_BASE; in construct_ioapic_table()
381 MP_ioapic_info(&ioapic); in construct_ioapic_table()
/Linux-v5.4/Documentation/devicetree/bindings/interrupt-controller/
Dintel,ce4100-ioapic.txt8 compatible = "intel,ce4100-ioapic";
/Linux-v5.4/arch/x86/platform/ce4100/
Dfalconfalls.dts34 compatible = "intel,ce4100-ioapic";
62 compatible = "intel,ce4100-ioapic";
/Linux-v5.4/tools/include/uapi/linux/
Dkvm.h138 struct kvm_ioapic_state ioapic; member
/Linux-v5.4/include/uapi/linux/
Dkvm.h138 struct kvm_ioapic_state ioapic; member
/Linux-v5.4/Documentation/virt/kvm/
Dapi.txt717 On x86, creates a virtual ioapic, a virtual PIC (two PICs, nested), and sets up
808 struct kvm_ioapic_state ioapic;
830 struct kvm_ioapic_state ioapic;