• Home
  • Raw
  • Download

Lines Matching refs:ioapic

102 	struct acpi_pci_ioapic *ioapic;  in handle_ioapic_add()  local
111 list_for_each_entry(ioapic, &ioapic_list, list) in handle_ioapic_add()
112 if (ioapic->handle == handle) { in handle_ioapic_add()
123 ioapic = kzalloc(sizeof(*ioapic), GFP_KERNEL); in handle_ioapic_add()
124 if (!ioapic) { in handle_ioapic_add()
128 ioapic->root_handle = (acpi_handle)context; in handle_ioapic_add()
129 ioapic->handle = handle; in handle_ioapic_add()
130 ioapic->gsi_base = (u32)gsi_base; in handle_ioapic_add()
131 INIT_LIST_HEAD(&ioapic->list); in handle_ioapic_add()
145 ioapic->pdev = dev; in handle_ioapic_add()
151 crs_res = &ioapic->res; in handle_ioapic_add()
173 list_add(&ioapic->list, &ioapic_list); in handle_ioapic_add()
188 if (ioapic->res.flags && ioapic->res.parent) in handle_ioapic_add()
189 release_resource(&ioapic->res); in handle_ioapic_add()
195 kfree(ioapic); in handle_ioapic_add()
215 struct acpi_pci_ioapic *ioapic, *tmp; in pci_ioapic_remove() local
218 list_for_each_entry_safe(ioapic, tmp, &ioapic_list, list) { in pci_ioapic_remove()
219 if (root->device->handle != ioapic->root_handle) in pci_ioapic_remove()
221 if (ioapic->pdev) { in pci_ioapic_remove()
222 pci_release_region(ioapic->pdev, 0); in pci_ioapic_remove()
223 pci_disable_device(ioapic->pdev); in pci_ioapic_remove()
224 pci_dev_put(ioapic->pdev); in pci_ioapic_remove()
233 struct acpi_pci_ioapic *ioapic, *tmp; in acpi_ioapic_remove() local
236 list_for_each_entry_safe(ioapic, tmp, &ioapic_list, list) { in acpi_ioapic_remove()
237 if (root->device->handle != ioapic->root_handle) in acpi_ioapic_remove()
239 if (acpi_unregister_ioapic(ioapic->handle, ioapic->gsi_base)) in acpi_ioapic_remove()
241 if (ioapic->res.flags && ioapic->res.parent) in acpi_ioapic_remove()
242 release_resource(&ioapic->res); in acpi_ioapic_remove()
243 list_del(&ioapic->list); in acpi_ioapic_remove()
244 kfree(ioapic); in acpi_ioapic_remove()