Lines Matching refs:handle
88 static struct acpi_power_resource *acpi_power_get_context(acpi_handle handle) in acpi_power_get_context() argument
92 if (acpi_bus_get_device(handle, &device)) in acpi_power_get_context()
98 static int acpi_power_resources_list_add(acpi_handle handle, in acpi_power_resources_list_add() argument
101 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add()
149 rhandle = element->reference.handle; in acpi_extract_power_resources()
168 static int acpi_power_get_state(acpi_handle handle, int *state) in acpi_power_get_state() argument
176 if (!handle || !state) in acpi_power_get_state()
179 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in acpi_power_get_state()
186 acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer); in acpi_power_get_state()
206 acpi_handle handle = resource->device.handle; in acpi_power_get_list_state() local
210 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
230 status = acpi_evaluate_object(resource->device.handle, "_ON", NULL, NULL); in __acpi_power_on()
270 status = acpi_evaluate_object(resource->device.handle, "_OFF", in __acpi_power_off()
461 acpi_handle handle = resource->device.handle; in acpi_power_wakeup_list_init() local
467 result = acpi_power_get_state(handle, &state); in acpi_power_wakeup_list_init()
530 status = acpi_evaluate_object(dev->handle, "_DSW", &arg_list, NULL); in acpi_device_sleep_wake()
540 status = acpi_execute_simple_method(dev->handle, "_PSW", enable); in acpi_device_sleep_wake()
764 int acpi_add_power_resource(acpi_handle handle) in acpi_add_power_resource() argument
773 acpi_bus_get_device(handle, &device); in acpi_add_power_resource()
782 acpi_init_device_object(device, handle, ACPI_BUS_TYPE_POWER, in acpi_add_power_resource()
792 status = acpi_evaluate_object(handle, NULL, NULL, &buffer); in acpi_add_power_resource()
799 result = acpi_power_get_state(handle, &state); in acpi_add_power_resource()
837 result = acpi_power_get_state(resource->device.handle, &state); in acpi_resume_power_resources()