Lines Matching refs:handle

83 static struct acpi_power_resource *acpi_power_get_context(acpi_handle handle)  in acpi_power_get_context()  argument
85 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_power_get_context()
93 static int acpi_power_resources_list_add(acpi_handle handle, in acpi_power_resources_list_add() argument
96 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add()
137 rhandle = package->package.elements[i].reference.handle; in acpi_power_resource_is_dup()
139 dup = package->package.elements[j].reference.handle; in acpi_power_resource_is_dup()
162 rhandle = element->reference.handle; in acpi_extract_power_resources()
187 static int __get_state(acpi_handle handle, u8 *state) in __get_state() argument
193 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in __get_state()
199 acpi_handle_debug(handle, "Power resource is %s\n", in __get_state()
211 ret = __get_state(resource->device.handle, &resource->state); in acpi_power_get_state()
364 acpi_handle handle = resource->device.handle; in __acpi_power_on() local
368 status = acpi_evaluate_object(handle, "_ON", NULL, NULL); in __acpi_power_on()
376 acpi_handle_debug(handle, "Power resource turned on\n"); in __acpi_power_on()
401 acpi_handle_debug(resource->device.handle, in acpi_power_on_unlocked()
423 acpi_handle handle = resource->device.handle; in __acpi_power_off() local
426 status = acpi_evaluate_object(handle, "_OFF", NULL, NULL); in __acpi_power_off()
434 acpi_handle_debug(handle, "Power resource turned off\n"); in __acpi_power_off()
444 acpi_handle_debug(resource->device.handle, in acpi_power_off_unlocked()
450 acpi_handle_debug(resource->device.handle, in acpi_power_off_unlocked()
685 status = acpi_evaluate_object(dev->handle, "_DSW", &arg_list, NULL); in acpi_device_sleep_wake()
689 acpi_handle_info(dev->handle, "_DSW execution failed\n"); in acpi_device_sleep_wake()
695 status = acpi_execute_simple_method(dev->handle, "_PSW", enable); in acpi_device_sleep_wake()
697 acpi_handle_info(dev->handle, "_PSW execution failed\n"); in acpi_device_sleep_wake()
930 struct acpi_device *acpi_add_power_resource(acpi_handle handle) in acpi_add_power_resource() argument
932 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_add_power_resource()
948 acpi_init_device_object(device, handle, ACPI_BUS_TYPE_POWER, in acpi_add_power_resource()
959 status = acpi_evaluate_object(handle, NULL, NULL, &buffer); in acpi_add_power_resource()
971 acpi_handle_info(handle, "New power resource\n"); in acpi_add_power_resource()
1015 acpi_handle_debug(resource->device.handle, "Turning ON\n"); in acpi_resume_power_resources()
1058 acpi_handle_debug(resource->device.handle, "Turning OFF\n"); in acpi_turn_off_unused_power_resources()