Lines Matching refs:handle
53 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument
58 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp()
61 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp()
87 acpi_handle chandle, handle; in acpi_get_hp_hw_control_from_firmware() local
105 handle = acpi_find_root_bridge_handle(pdev); in acpi_get_hp_hw_control_from_firmware()
106 if (handle) { in acpi_get_hp_hw_control_from_firmware()
107 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_get_hp_hw_control_from_firmware()
110 status = acpi_pci_osc_control_set(handle, &flags, flags); in acpi_get_hp_hw_control_from_firmware()
119 handle = ACPI_HANDLE(&pdev->dev); in acpi_get_hp_hw_control_from_firmware()
120 if (!handle) { in acpi_get_hp_hw_control_from_firmware()
127 handle = acpi_pci_get_bridge_handle(pbus); in acpi_get_hp_hw_control_from_firmware()
128 if (handle) in acpi_get_hp_hw_control_from_firmware()
133 while (handle) { in acpi_get_hp_hw_control_from_firmware()
134 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_get_hp_hw_control_from_firmware()
137 status = acpi_run_oshp(handle); in acpi_get_hp_hw_control_from_firmware()
140 if (acpi_is_root_bridge(handle)) in acpi_get_hp_hw_control_from_firmware()
142 chandle = handle; in acpi_get_hp_hw_control_from_firmware()
143 status = acpi_get_parent(chandle, &handle); in acpi_get_hp_hw_control_from_firmware()
160 static int pcihp_is_ejectable(acpi_handle handle) in pcihp_is_ejectable() argument
164 if (!acpi_has_method(handle, "_ADR")) in pcihp_is_ejectable()
166 if (acpi_has_method(handle, "_EJ0")) in pcihp_is_ejectable()
168 status = acpi_evaluate_integer(handle, "_RMV", NULL, &removable); in pcihp_is_ejectable()
181 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle) in acpi_pci_check_ejectable() argument
188 if ((ACPI_FAILURE(acpi_get_parent(handle, &parent_handle)))) in acpi_pci_check_ejectable()
192 return pcihp_is_ejectable(handle); in acpi_pci_check_ejectable()
197 check_hotplug(acpi_handle handle, u32 lvl, void *context, void **rv) in check_hotplug() argument
200 if (pcihp_is_ejectable(handle)) { in check_hotplug()
213 int acpi_pci_detect_ejectable(acpi_handle handle) in acpi_pci_detect_ejectable() argument
217 if (!handle) in acpi_pci_detect_ejectable()
220 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1, in acpi_pci_detect_ejectable()