Lines Matching full:resources

3  * drivers/acpi/power.c - ACPI Power Resources management.
15 * The code below deals with ACPI Power Resources control.
20 * A device may rely on multiple power resources, and a power resource
215 /* The state of the list is 'on' IFF all resources are 'on'. */ in acpi_power_get_list_state()
293 * power resources returned by it. This means that whenever these power
294 * resources are turned _ON the dependent devices get runtime resumed. This
306 struct list_head *resources; in acpi_device_power_add_dependent() local
312 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_add_dependent()
313 list_for_each_entry(entry, resources, node) { in acpi_device_power_add_dependent()
322 list_for_each_entry(entry, resources, node) in acpi_device_power_add_dependent()
341 struct list_head *resources; in acpi_device_power_remove_dependent() local
346 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_remove_dependent()
347 list_for_each_entry_reverse(entry, resources, node) in acpi_device_power_remove_dependent()
521 struct list_head *resources, in acpi_power_hide_list() argument
526 if (list_empty(resources)) in acpi_power_hide_list()
529 list_for_each_entry_reverse(entry, resources, node) { in acpi_power_hide_list()
540 struct list_head *resources, in acpi_power_expose_list() argument
546 if (list_empty(resources)) in acpi_power_expose_list()
553 list_for_each_entry(entry, resources, node) { in acpi_power_expose_list()
561 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list()
568 struct list_head *resources, in acpi_power_expose_hide() argument
573 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide()
575 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
583 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
591 &adev->power.states[state].resources, in acpi_power_add_remove_device()
693 * 1. Power on the power resources required for the wakeup device
710 list_for_each_entry(entry, &dev->wakeup.resources, node) { in acpi_enable_wakeup_device_power()
725 "Cannot turn wakeup power resources on\n"); in acpi_enable_wakeup_device_power()
747 * 2. Shutdown down the power resources
773 list_for_each_entry(entry, &dev->wakeup.resources, node) { in acpi_disable_wakeup_device_power()
788 "Cannot turn wakeup power resources off\n"); in acpi_disable_wakeup_device_power()
809 * We know a device's inferred power state when all the resources in acpi_power_get_inferred_state()
813 struct list_head *list = &device->power.states[i].resources; in acpi_power_get_inferred_state()
838 return acpi_power_on_list(&device->power.states[state].resources); in acpi_power_on_resources()
856 * First we reference all power resources required in the target list in acpi_power_transition()
858 * we dereference all power resources used in the current list. in acpi_power_transition()
862 &device->power.states[state].resources); in acpi_power_transition()
866 &device->power.states[device->power.state].resources); in acpi_power_transition()