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
228 /* The state of the list is 'on' IFF all resources are 'on'. */ in acpi_power_get_list_state()
304 * power resources returned by it. This means that whenever these power
305 * resources are turned _ON the dependent devices get runtime resumed. This
317 struct list_head *resources; in acpi_device_power_add_dependent() local
323 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_add_dependent()
324 list_for_each_entry(entry, resources, node) { in acpi_device_power_add_dependent()
333 list_for_each_entry(entry, resources, node) in acpi_device_power_add_dependent()
352 struct list_head *resources; in acpi_device_power_remove_dependent() local
357 resources = &adev->power.states[ACPI_STATE_D0].resources; in acpi_device_power_remove_dependent()
358 list_for_each_entry_reverse(entry, resources, node) in acpi_device_power_remove_dependent()
537 struct list_head *resources, in acpi_power_hide_list() argument
542 if (list_empty(resources)) in acpi_power_hide_list()
545 list_for_each_entry_reverse(entry, resources, node) { in acpi_power_hide_list()
556 struct list_head *resources, in acpi_power_expose_list() argument
562 if (list_empty(resources)) in acpi_power_expose_list()
569 list_for_each_entry(entry, resources, node) { in acpi_power_expose_list()
577 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list()
584 struct list_head *resources, in acpi_power_expose_hide() argument
589 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide()
591 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
599 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
607 &adev->power.states[state].resources, in acpi_power_add_remove_device()
707 * 1. Power on the power resources required for the wakeup device
726 err = acpi_power_on_list(&dev->wakeup.resources); in acpi_enable_wakeup_device_power()
728 dev_err(&dev->dev, "Cannot turn on wakeup power resources\n"); in acpi_enable_wakeup_device_power()
739 acpi_power_off_list(&dev->wakeup.resources); in acpi_enable_wakeup_device_power()
755 * 2. Shutdown down the power resources
782 * All of the power resources in the list need to be turned off even if in acpi_disable_wakeup_device_power()
785 list_for_each_entry(entry, &dev->wakeup.resources, node) { in acpi_disable_wakeup_device_power()
793 dev_err(&dev->dev, "Cannot turn off wakeup power resources\n"); in acpi_disable_wakeup_device_power()
815 * We know a device's inferred power state when all the resources in acpi_power_get_inferred_state()
819 struct list_head *list = &device->power.states[i].resources; in acpi_power_get_inferred_state()
844 return acpi_power_on_list(&device->power.states[state].resources); in acpi_power_on_resources()
862 * First we reference all power resources required in the target list in acpi_power_transition()
864 * we dereference all power resources used in the current list. in acpi_power_transition()
868 &device->power.states[state].resources); in acpi_power_transition()
872 &device->power.states[device->power.state].resources); in acpi_power_transition()
1031 * _PR? lists. The other 2 affected power-resources are no-ops.
1042 * acpi_turn_off_unused_power_resources - Turn off power resources not in use.