Lines Matching defs:handle
36 * @handle - the handle of the hotplug controller.
38 static acpi_status acpi_run_oshp(acpi_handle handle)
43 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string);
46 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL);
73 acpi_handle chandle, handle;
105 handle = ACPI_HANDLE(&pdev->dev);
106 if (!handle) {
109 * space at all. Try to get ACPI handle of parent PCI bus.
113 handle = acpi_pci_get_bridge_handle(pbus);
114 if (handle)
119 while (handle) {
120 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string);
123 status = acpi_run_oshp(handle);
126 if (acpi_is_root_bridge(handle))
128 chandle = handle;
129 status = acpi_get_parent(chandle, &handle);
145 static int pcihp_is_ejectable(acpi_handle handle)
149 if (!acpi_has_method(handle, "_ADR"))
151 if (acpi_has_method(handle, "_EJ0"))
153 status = acpi_evaluate_integer(handle, "_RMV", NULL, &removable);
160 * acpi_pci_check_ejectable - check if handle is ejectable ACPI PCI slot
161 * @pbus: the PCI bus of the PCI slot corresponding to 'handle'
162 * @handle: ACPI handle to check
164 * Return 1 if handle is ejectable PCI slot, 0 otherwise.
166 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle)
173 if ((ACPI_FAILURE(acpi_get_parent(handle, &parent_handle))))
177 return pcihp_is_ejectable(handle);
182 check_hotplug(acpi_handle handle, u32 lvl, void *context, void **rv)
185 if (pcihp_is_ejectable(handle)) {
194 * @handle: handle of the PCI bus to scan
198 int acpi_pci_detect_ejectable(acpi_handle handle)
202 if (!handle)
205 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1,