Lines Matching +full:device +full:- +full:handle
1 /*-
90 static ACPI_STATUS acpi_pci_save_handle(ACPI_HANDLE handle, UINT32 level,
94 static void acpi_pci_update_device(ACPI_HANDLE handle, device_t pci_child);
99 /* Device interface */
135 return (&dinfo->ap_dinfo); in acpi_pci_alloc_devinfo()
146 *result = (uintptr_t)dinfo->ap_handle; in acpi_pci_read_ivar()
149 *result = (uintptr_t)dinfo->ap_flags; in acpi_pci_read_ivar()
163 dinfo->ap_handle = (ACPI_HANDLE)value; in acpi_pci_write_ivar()
166 dinfo->ap_flags = (int)value; in acpi_pci_write_ivar()
177 if (acpi_get_device(dinfo->ap_handle) == child) in acpi_pci_child_deleted()
178 AcpiDetachData(dinfo->ap_handle, acpi_fake_objhandler); in acpi_pci_child_deleted()
190 if (dinfo->ap_handle) { in acpi_pci_child_location_method()
191 sbuf_printf(sb, " handle=%s", acpi_name(dinfo->ap_handle)); in acpi_pci_child_location_method()
192 if (ACPI_SUCCESS(acpi_GetInteger(dinfo->ap_handle, "_PXM", &pxm))) { in acpi_pci_child_location_method()
211 * Fetch the NUMA domain for the given device 'dev'.
213 * If a device has a _PXM method, map that to a NUMA domain.
228 if (d == -1) in acpi_pci_get_domain()
251 * the ACPI state. This means that when powering down a device, we in acpi_pci_set_powerstate_method()
254 * When powering up a device, we let ACPI set the state first so that in acpi_pci_set_powerstate_method()
284 acpi_pci_update_device(ACPI_HANDLE handle, device_t pci_child) in acpi_pci_update_device() argument
290 * Occasionally a PCI device may show up as an ACPI device in acpi_pci_update_device()
292 * second PCI-ISA bridge that has a _HID for an in acpi_pci_update_device()
293 * acpi_sysresource device.) In that case, leave ACPI-CA's in acpi_pci_update_device()
294 * device data pointing at the ACPI-enumerated device. in acpi_pci_update_device()
296 child = acpi_get_device(handle); in acpi_pci_update_device()
301 acpi_name(handle))); in acpi_pci_update_device()
306 * Update ACPI-CA to use the PCI enumerated device_t for this handle. in acpi_pci_update_device()
308 status = AcpiAttachData(handle, acpi_fake_objhandler, pci_child); in acpi_pci_update_device()
310 printf("WARNING: Unable to attach object data to %s - %s\n", in acpi_pci_update_device()
311 acpi_name(handle), AcpiFormatException(status)); in acpi_pci_update_device()
315 acpi_pci_save_handle(ACPI_HANDLE handle, UINT32 level, void *context, in acpi_pci_save_handle() argument
326 if (ACPI_FAILURE(acpi_GetInteger(handle, "_ADR", &address))) in acpi_pci_save_handle()
331 if (dinfo->ap_dinfo.cfg.func == func && in acpi_pci_save_handle()
332 dinfo->ap_dinfo.cfg.slot == slot) { in acpi_pci_save_handle()
333 dinfo->ap_handle = handle; in acpi_pci_save_handle()
334 acpi_pci_update_device(handle, child); in acpi_pci_save_handle()
346 * bus driver. As each device is added, the in acpi_pci_child_added()
407 device_printf(dev, "no device to eject for %s\n", in acpi_pci_device_notify_handler()
442 acpi_pci_install_device_notify_handler(ACPI_HANDLE handle, UINT32 level, in acpi_pci_install_device_notify_handler() argument
449 if (ACPI_FAILURE(AcpiGetHandle(handle, "_EJ0", &h))) in acpi_pci_install_device_notify_handler()
452 AcpiInstallNotifyHandler(handle, ACPI_SYSTEM_NOTIFY, in acpi_pci_install_device_notify_handler()
474 acpi_pci_remove_notify_handler(ACPI_HANDLE handle, UINT32 level, void *context, in acpi_pci_remove_notify_handler() argument
481 if (ACPI_FAILURE(AcpiGetHandle(handle, "_EJ0", &h))) in acpi_pci_remove_notify_handler()
484 AcpiRemoveNotifyHandler(handle, ACPI_SYSTEM_NOTIFY, in acpi_pci_remove_notify_handler()