Lines Matching defs:handle

77 acpi_status acpi_bus_get_status_handle(acpi_handle handle,
82 status = acpi_evaluate_integer(handle, "_STA", NULL, sta);
111 status = acpi_bus_get_status_handle(device->handle, &sta);
127 void acpi_bus_private_data_handler(acpi_handle handle,
134 int acpi_bus_attach_private_data(acpi_handle handle, void *data)
138 status = acpi_attach_data(handle,
141 acpi_handle_debug(handle, "Error attaching device data\n");
149 int acpi_bus_get_private_data(acpi_handle handle, void **data)
156 status = acpi_get_data(handle, acpi_bus_private_data_handler, data);
158 acpi_handle_debug(handle, "No context for object\n");
166 void acpi_bus_detach_private_data(acpi_handle handle)
168 acpi_detach_data(handle, acpi_bus_private_data_handler);
172 static void acpi_print_osc_error(acpi_handle handle,
177 acpi_handle_debug(handle, "(%s): %s\n", context->uuid_str, error);
186 acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context)
217 status = acpi_evaluate_object(handle, "_OSC", &input, &output);
227 acpi_print_osc_error(handle, context,
236 acpi_print_osc_error(handle, context,
239 acpi_print_osc_error(handle, context,
242 acpi_print_osc_error(handle, context,
311 acpi_handle handle;
349 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
352 if (ACPI_FAILURE(acpi_run_osc(handle, &context)))
369 if (ACPI_FAILURE(acpi_run_osc(handle, &context)))
418 acpi_handle handle;
425 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
435 status = acpi_run_osc(handle, &context);
461 * @handle: Target ACPI object.
467 static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
473 acpi_handle_debug(handle, "ACPI_NOTIFY_BUS_CHECK event\n");
477 acpi_handle_debug(handle, "ACPI_NOTIFY_DEVICE_CHECK event\n");
481 acpi_handle_debug(handle, "ACPI_NOTIFY_DEVICE_WAKE event\n");
485 acpi_handle_debug(handle, "ACPI_NOTIFY_EJECT_REQUEST event\n");
489 acpi_handle_debug(handle, "ACPI_NOTIFY_DEVICE_CHECK_LIGHT event\n");
494 acpi_handle_err(handle, "Device cannot be configured due "
499 acpi_handle_err(handle, "Device cannot be configured due "
504 acpi_handle_err(handle, "Device has suffered a power fault\n");
508 acpi_handle_debug(handle, "Unknown event type 0x%x\n", type);
512 adev = acpi_get_acpi_dev(handle);
519 acpi_evaluate_ost(handle, type, ACPI_OST_SC_NON_SPECIFIC_FAILURE, NULL);
522 static void acpi_notify_device(acpi_handle handle, u32 event, void *data)
537 status = acpi_install_notify_handler(device->handle, type,
551 acpi_remove_notify_handler(device->handle, type,
563 status = acpi_install_notify_handler(adev->handle, handler_type,
576 acpi_remove_notify_handler(adev->handle, handler_type, handler);
606 static void acpi_sb_notify(acpi_handle handle, u32 event, void *data)
902 * Check if @dev has a valid ACPI handle and if there is a struct acpi_device
903 * object for that handle and use that object to match against a given list of