Lines Matching full:handle

36  * @handle - the handle of the hotplug controller.
38 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument
43 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp()
46 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp()
73 acpi_handle chandle, handle; in acpi_get_hp_hw_control_from_firmware() local
105 handle = ACPI_HANDLE(&pdev->dev); in acpi_get_hp_hw_control_from_firmware()
106 if (!handle) { in acpi_get_hp_hw_control_from_firmware()
109 * space at all. Try to get ACPI handle of parent PCI bus. in acpi_get_hp_hw_control_from_firmware()
113 handle = acpi_pci_get_bridge_handle(pbus); in acpi_get_hp_hw_control_from_firmware()
114 if (handle) in acpi_get_hp_hw_control_from_firmware()
119 while (handle) { in acpi_get_hp_hw_control_from_firmware()
120 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_get_hp_hw_control_from_firmware()
123 status = acpi_run_oshp(handle); in acpi_get_hp_hw_control_from_firmware()
126 if (acpi_is_root_bridge(handle)) in acpi_get_hp_hw_control_from_firmware()
128 chandle = handle; in acpi_get_hp_hw_control_from_firmware()
129 status = acpi_get_parent(chandle, &handle); in acpi_get_hp_hw_control_from_firmware()
145 static int pcihp_is_ejectable(acpi_handle handle) in pcihp_is_ejectable() argument
149 if (!acpi_has_method(handle, "_ADR")) in pcihp_is_ejectable()
151 if (acpi_has_method(handle, "_EJ0")) in pcihp_is_ejectable()
153 status = acpi_evaluate_integer(handle, "_RMV", NULL, &removable); in pcihp_is_ejectable()
160 * acpi_pcihp_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) in acpi_pci_check_ejectable() argument
173 if ((ACPI_FAILURE(acpi_get_parent(handle, &parent_handle)))) in acpi_pci_check_ejectable()
177 return pcihp_is_ejectable(handle); in acpi_pci_check_ejectable()
182 check_hotplug(acpi_handle handle, u32 lvl, void *context, void **rv) in check_hotplug() argument
185 if (pcihp_is_ejectable(handle)) { in check_hotplug()
194 * @handle - handle of the PCI bus to scan
198 int acpi_pci_detect_ejectable(acpi_handle handle) in acpi_pci_detect_ejectable() argument
202 if (!handle) in acpi_pci_detect_ejectable()
205 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1, in acpi_pci_detect_ejectable()