Lines Matching refs:ioapic
101 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()
150 crs_res = &ioapic->res; in handle_ioapic_add()
172 list_add(&ioapic->list, &ioapic_list); in handle_ioapic_add()
187 if (ioapic->res.flags && ioapic->res.parent) in handle_ioapic_add()
188 release_resource(&ioapic->res); in handle_ioapic_add()
194 kfree(ioapic); in handle_ioapic_add()
214 struct acpi_pci_ioapic *ioapic, *tmp; in pci_ioapic_remove() local
217 list_for_each_entry_safe(ioapic, tmp, &ioapic_list, list) { in pci_ioapic_remove()
218 if (root->device->handle != ioapic->root_handle) in pci_ioapic_remove()
220 if (ioapic->pdev) { in pci_ioapic_remove()
221 pci_release_region(ioapic->pdev, 0); in pci_ioapic_remove()
222 pci_disable_device(ioapic->pdev); in pci_ioapic_remove()
223 pci_dev_put(ioapic->pdev); in pci_ioapic_remove()
232 struct acpi_pci_ioapic *ioapic, *tmp; in acpi_ioapic_remove() local
235 list_for_each_entry_safe(ioapic, tmp, &ioapic_list, list) { in acpi_ioapic_remove()
236 if (root->device->handle != ioapic->root_handle) in acpi_ioapic_remove()
238 if (acpi_unregister_ioapic(ioapic->handle, ioapic->gsi_base)) in acpi_ioapic_remove()
240 if (ioapic->res.flags && ioapic->res.parent) in acpi_ioapic_remove()
241 release_resource(&ioapic->res); in acpi_ioapic_remove()
242 list_del(&ioapic->list); in acpi_ioapic_remove()
243 kfree(ioapic); in acpi_ioapic_remove()