Lines Matching refs:handle
95 acpi_status acpi_bus_get_status_handle(acpi_handle handle, in acpi_bus_get_status_handle() argument
100 status = acpi_evaluate_integer(handle, "_STA", NULL, sta); in acpi_bus_get_status_handle()
117 status = acpi_bus_get_status_handle(device->handle, &sta); in acpi_bus_get_status()
135 void acpi_bus_private_data_handler(acpi_handle handle, in acpi_bus_private_data_handler() argument
142 int acpi_bus_attach_private_data(acpi_handle handle, void *data) in acpi_bus_attach_private_data() argument
146 status = acpi_attach_data(handle, in acpi_bus_attach_private_data()
149 acpi_handle_debug(handle, "Error attaching device data\n"); in acpi_bus_attach_private_data()
157 int acpi_bus_get_private_data(acpi_handle handle, void **data) in acpi_bus_get_private_data() argument
164 status = acpi_get_data(handle, acpi_bus_private_data_handler, data); in acpi_bus_get_private_data()
166 acpi_handle_debug(handle, "No context for object\n"); in acpi_bus_get_private_data()
174 void acpi_bus_detach_private_data(acpi_handle handle) in acpi_bus_detach_private_data() argument
176 acpi_detach_data(handle, acpi_bus_private_data_handler); in acpi_bus_detach_private_data()
180 static void acpi_print_osc_error(acpi_handle handle, in acpi_print_osc_error() argument
186 if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer))) in acpi_print_osc_error()
221 acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context) in acpi_run_osc() argument
252 status = acpi_evaluate_object(handle, "_OSC", &input, &output); in acpi_run_osc()
262 acpi_print_osc_error(handle, context, in acpi_run_osc()
271 acpi_print_osc_error(handle, context, in acpi_run_osc()
274 acpi_print_osc_error(handle, context, in acpi_run_osc()
277 acpi_print_osc_error(handle, context, in acpi_run_osc()
318 acpi_handle handle; in acpi_bus_osc_support() local
335 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle))) in acpi_bus_osc_support()
337 if (ACPI_SUCCESS(acpi_run_osc(handle, &context))) { in acpi_bus_osc_support()
356 static void acpi_bus_notify(acpi_handle handle, u32 type, void *data) in acpi_bus_notify() argument
365 acpi_handle_debug(handle, "ACPI_NOTIFY_BUS_CHECK event\n"); in acpi_bus_notify()
370 acpi_handle_debug(handle, "ACPI_NOTIFY_DEVICE_CHECK event\n"); in acpi_bus_notify()
375 acpi_handle_debug(handle, "ACPI_NOTIFY_DEVICE_WAKE event\n"); in acpi_bus_notify()
379 acpi_handle_debug(handle, "ACPI_NOTIFY_EJECT_REQUEST event\n"); in acpi_bus_notify()
384 acpi_handle_debug(handle, "ACPI_NOTIFY_DEVICE_CHECK_LIGHT event\n"); in acpi_bus_notify()
389 acpi_handle_err(handle, "Device cannot be configured due " in acpi_bus_notify()
394 acpi_handle_err(handle, "Device cannot be configured due " in acpi_bus_notify()
399 acpi_handle_err(handle, "Device has suffered a power fault\n"); in acpi_bus_notify()
403 acpi_handle_debug(handle, "Unknown event type 0x%x\n", type); in acpi_bus_notify()
407 adev = acpi_bus_get_acpi_device(handle); in acpi_bus_notify()
423 acpi_evaluate_ost(handle, type, ost_code, NULL); in acpi_bus_notify()