Lines Matching refs:ioapics
75 for ((pin) = 0; (pin) < ioapics[(idx)].nr_registers; (pin)++)
122 } ioapics[MAX_IO_APICS]; variable
124 #define mpc_ioapic_ver(ioapic_idx) ioapics[ioapic_idx].mp_config.apicver
128 return ioapics[ioapic_idx].mp_config.apicid; in mpc_ioapic_id()
133 return ioapics[ioapic_idx].mp_config.apicaddr; in mpc_ioapic_addr()
138 return &ioapics[ioapic_idx].gsi_config; in mp_ioapic_gsi_routing()
160 return ioapics[ioapic].irqdomain; in mp_ioapic_irqdomain()
226 if (ioapics[idx].saved_registers) in alloc_ioapic_saved_registers()
229 size = sizeof(struct IO_APIC_route_entry) * ioapics[idx].nr_registers; in alloc_ioapic_saved_registers()
230 ioapics[idx].saved_registers = kzalloc(size, GFP_KERNEL); in alloc_ioapic_saved_registers()
231 if (!ioapics[idx].saved_registers) in alloc_ioapic_saved_registers()
237 kfree(ioapics[idx].saved_registers); in free_ioapic_saved_registers()
238 ioapics[idx].saved_registers = NULL; in free_ioapic_saved_registers()
622 if (!ioapics[apic].saved_registers) { in save_ioapic_entries()
628 ioapics[apic].saved_registers[pin] = in save_ioapic_entries()
643 if (!ioapics[apic].saved_registers) in mask_ioapic_entries()
649 entry = ioapics[apic].saved_registers[pin]; in mask_ioapic_entries()
666 if (!ioapics[apic].saved_registers) in restore_ioapic_entries()
671 ioapics[apic].saved_registers[pin]); in restore_ioapic_entries()
951 int type = ioapics[ioapic].irqdomain_cfg.type; in alloc_irq_from_domain()
1325 ioapics[ioapic_idx].nr_registers); in print_IO_APICs()
1491 ioapics[ioapic_idx].mp_config.apicid = reg_00.bits.ID; in setup_ioapic_ids_from_mpc_nocheck()
1511 ioapics[ioapic_idx].mp_config.apicid = i; in setup_ioapic_ids_from_mpc_nocheck()
2338 struct ioapic *ip = &ioapics[ioapic]; in mp_irqdomain_create()
2389 struct ioapic_domain_cfg *cfg = &ioapics[idx].irqdomain_cfg; in ioapic_destroy_irqdomain()
2390 struct fwnode_handle *fn = ioapics[idx].irqdomain->fwnode; in ioapic_destroy_irqdomain()
2392 if (ioapics[idx].irqdomain) { in ioapic_destroy_irqdomain()
2393 irq_domain_remove(ioapics[idx].irqdomain); in ioapic_destroy_irqdomain()
2396 ioapics[idx].irqdomain = NULL; in ioapic_destroy_irqdomain()
2673 ioapics[i].iomem_res = &res[i]; in ioapic_setup_resources()
2812 if (ioapics[idx].nr_registers == 0) in find_free_ioapic_entry()
2838 if (ioapics[ioapic].mp_config.apicaddr == address) { in mp_register_ioapic()
2851 ioapics[idx].mp_config.type = MP_IOAPIC; in mp_register_ioapic()
2852 ioapics[idx].mp_config.flags = MPC_APIC_USABLE; in mp_register_ioapic()
2853 ioapics[idx].mp_config.apicaddr = address; in mp_register_ioapic()
2861 ioapics[idx].mp_config.apicid = io_apic_unique_id(idx, id); in mp_register_ioapic()
2862 ioapics[idx].mp_config.apicver = io_apic_get_version(idx); in mp_register_ioapic()
2887 ioapics[idx].irqdomain = NULL; in mp_register_ioapic()
2888 ioapics[idx].irqdomain_cfg = *cfg; in mp_register_ioapic()
2909 ioapics[idx].nr_registers = entries; in mp_register_ioapic()
2925 if (ioapics[ioapic].gsi_config.gsi_base == gsi_base) { in mp_unregister_ioapic()
2950 ioapics[ioapic].nr_registers = 0; in mp_unregister_ioapic()
2953 if (ioapics[ioapic].iomem_res) in mp_unregister_ioapic()
2954 release_resource(ioapics[ioapic].iomem_res); in mp_unregister_ioapic()
2956 memset(&ioapics[ioapic], 0, sizeof(ioapics[ioapic])); in mp_unregister_ioapic()
2966 if (ioapics[ioapic].gsi_config.gsi_base == gsi_base) in mp_ioapic_registered()