Lines Matching refs:acpi_power_resource
48 struct acpi_power_resource { struct
61 struct acpi_power_resource *resource; argument
71 static inline const char *resource_dev_name(struct acpi_power_resource *pr) in resource_dev_name()
77 struct acpi_power_resource *to_power_resource(struct acpi_device *device) in to_power_resource()
79 return container_of(device, struct acpi_power_resource, device); in to_power_resource()
82 static struct acpi_power_resource *acpi_power_get_context(acpi_handle handle) in acpi_power_get_context()
95 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add()
205 static int acpi_power_get_state(struct acpi_power_resource *resource, u8 *state) in acpi_power_get_state()
229 struct acpi_power_resource *resource = entry->resource; in acpi_power_get_list_state()
249 acpi_power_resource_add_dependent(struct acpi_power_resource *resource, in acpi_power_resource_add_dependent()
279 acpi_power_resource_remove_dependent(struct acpi_power_resource *resource, in acpi_power_resource_remove_dependent()
361 static int __acpi_power_on(struct acpi_power_resource *resource) in __acpi_power_on()
395 static int acpi_power_on_unlocked(struct acpi_power_resource *resource) in acpi_power_on_unlocked()
410 static int acpi_power_on(struct acpi_power_resource *resource) in acpi_power_on()
420 static int __acpi_power_off(struct acpi_power_resource *resource) in __acpi_power_off()
438 static int acpi_power_off_unlocked(struct acpi_power_resource *resource) in acpi_power_off_unlocked()
459 static int acpi_power_off(struct acpi_power_resource *resource) in acpi_power_off()
616 struct acpi_power_resource *resource = entry->resource; in acpi_power_wakeup_list_init()
882 struct acpi_power_resource *resource; in acpi_release_power_resource()
884 resource = container_of(device, struct acpi_power_resource, device); in acpi_release_power_resource()
898 struct acpi_power_resource *resource; in resource_in_use_show()
910 static void acpi_power_add_resource_to_list(struct acpi_power_resource *resource) in acpi_power_add_resource_to_list()
915 struct acpi_power_resource *r; in acpi_power_add_resource_to_list()
932 struct acpi_power_resource *resource; in acpi_add_power_resource()
995 struct acpi_power_resource *resource; in acpi_resume_power_resources()
1030 struct acpi_power_resource *resource; in acpi_turn_off_unused_power_resources()