Lines Matching refs:ioapics

76 	for ((pin) = 0; (pin) < ioapics[(idx)].nr_registers; (pin)++)
119 } ioapics[MAX_IO_APICS]; variable
121 #define mpc_ioapic_ver(ioapic_idx) ioapics[ioapic_idx].mp_config.apicver
125 return ioapics[ioapic_idx].mp_config.apicid; in mpc_ioapic_id()
130 return ioapics[ioapic_idx].mp_config.apicaddr; in mpc_ioapic_addr()
135 return &ioapics[ioapic_idx].gsi_config; in mp_ioapic_gsi_routing()
157 return ioapics[ioapic].irqdomain; in mp_ioapic_irqdomain()
222 if (ioapics[idx].saved_registers) in alloc_ioapic_saved_registers()
225 size = sizeof(struct IO_APIC_route_entry) * ioapics[idx].nr_registers; in alloc_ioapic_saved_registers()
226 ioapics[idx].saved_registers = kzalloc(size, GFP_KERNEL); in alloc_ioapic_saved_registers()
227 if (!ioapics[idx].saved_registers) in alloc_ioapic_saved_registers()
233 kfree(ioapics[idx].saved_registers); in free_ioapic_saved_registers()
234 ioapics[idx].saved_registers = NULL; in free_ioapic_saved_registers()
562 if (!ioapics[apic].saved_registers) { in save_ioapic_entries()
568 ioapics[apic].saved_registers[pin] = ioapic_read_entry(apic, pin); in save_ioapic_entries()
582 if (!ioapics[apic].saved_registers) in mask_ioapic_entries()
588 entry = ioapics[apic].saved_registers[pin]; in mask_ioapic_entries()
605 if (!ioapics[apic].saved_registers) in restore_ioapic_entries()
609 ioapic_write_entry(apic, pin, ioapics[apic].saved_registers[pin]); in restore_ioapic_entries()
885 int type = ioapics[ioapic].irqdomain_cfg.type; in alloc_irq_from_domain()
1233 mpc_ioapic_id(ioapic_idx), ioapics[ioapic_idx].nr_registers); in print_IO_APICs()
1391 ioapics[ioapic_idx].mp_config.apicid = reg_00.bits.ID; in setup_ioapic_ids_from_mpc_nocheck()
1409 ioapics[ioapic_idx].mp_config.apicid = i; in setup_ioapic_ids_from_mpc_nocheck()
2217 struct ioapic *ip = &ioapics[ioapic]; in mp_irqdomain_create()
2263 struct ioapic_domain_cfg *cfg = &ioapics[idx].irqdomain_cfg; in ioapic_destroy_irqdomain()
2264 struct fwnode_handle *fn = ioapics[idx].irqdomain->fwnode; in ioapic_destroy_irqdomain()
2266 if (ioapics[idx].irqdomain) { in ioapic_destroy_irqdomain()
2267 irq_domain_remove(ioapics[idx].irqdomain); in ioapic_destroy_irqdomain()
2270 ioapics[idx].irqdomain = NULL; in ioapic_destroy_irqdomain()
2518 ioapics[i].iomem_res = &res[i]; in ioapic_setup_resources()
2657 if (ioapics[idx].nr_registers == 0) in find_free_ioapic_entry()
2683 if (ioapics[ioapic].mp_config.apicaddr == address) { in mp_register_ioapic()
2696 ioapics[idx].mp_config.type = MP_IOAPIC; in mp_register_ioapic()
2697 ioapics[idx].mp_config.flags = MPC_APIC_USABLE; in mp_register_ioapic()
2698 ioapics[idx].mp_config.apicaddr = address; in mp_register_ioapic()
2706 ioapics[idx].mp_config.apicid = io_apic_unique_id(idx, id); in mp_register_ioapic()
2707 ioapics[idx].mp_config.apicver = io_apic_get_version(idx); in mp_register_ioapic()
2731 ioapics[idx].irqdomain = NULL; in mp_register_ioapic()
2732 ioapics[idx].irqdomain_cfg = *cfg; in mp_register_ioapic()
2753 ioapics[idx].nr_registers = entries; in mp_register_ioapic()
2768 if (ioapics[ioapic].gsi_config.gsi_base == gsi_base) { in mp_unregister_ioapic()
2794 ioapics[ioapic].nr_registers = 0; in mp_unregister_ioapic()
2797 if (ioapics[ioapic].iomem_res) in mp_unregister_ioapic()
2798 release_resource(ioapics[ioapic].iomem_res); in mp_unregister_ioapic()
2800 memset(&ioapics[ioapic], 0, sizeof(ioapics[ioapic])); in mp_unregister_ioapic()
2810 if (ioapics[ioapic].gsi_config.gsi_base == gsi_base) in mp_ioapic_registered()