Lines Matching refs:handle
87 static struct acpi_power_resource *acpi_power_get_context(acpi_handle handle) in acpi_power_get_context() argument
91 if (acpi_bus_get_device(handle, &device)) in acpi_power_get_context()
97 static int acpi_power_resources_list_add(acpi_handle handle, in acpi_power_resources_list_add() argument
100 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add()
148 rhandle = element->reference.handle; in acpi_extract_power_resources()
167 static int acpi_power_get_state(acpi_handle handle, int *state) in acpi_power_get_state() argument
175 if (!handle || !state) in acpi_power_get_state()
178 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in acpi_power_get_state()
185 acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer); in acpi_power_get_state()
205 acpi_handle handle = resource->device.handle; in acpi_power_get_list_state() local
209 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
229 status = acpi_evaluate_object(resource->device.handle, "_ON", NULL, NULL); in __acpi_power_on()
269 status = acpi_evaluate_object(resource->device.handle, "_OFF", in __acpi_power_off()
460 acpi_handle handle = resource->device.handle; in acpi_power_wakeup_list_init() local
466 result = acpi_power_get_state(handle, &state); in acpi_power_wakeup_list_init()
529 status = acpi_evaluate_object(dev->handle, "_DSW", &arg_list, NULL); in acpi_device_sleep_wake()
539 status = acpi_execute_simple_method(dev->handle, "_PSW", enable); in acpi_device_sleep_wake()
781 int acpi_add_power_resource(acpi_handle handle) in acpi_add_power_resource() argument
790 acpi_bus_get_device(handle, &device); in acpi_add_power_resource()
799 acpi_init_device_object(device, handle, ACPI_BUS_TYPE_POWER, in acpi_add_power_resource()
809 status = acpi_evaluate_object(handle, NULL, NULL, &buffer); in acpi_add_power_resource()
816 result = acpi_power_get_state(handle, &state); in acpi_add_power_resource()
852 result = acpi_power_get_state(resource->device.handle, &state); in acpi_resume_power_resources()
871 result = acpi_power_get_state(resource->device.handle, &state); in acpi_resume_power_resources()