Lines Matching defs:list
94 struct list_head *list)
99 if (!resource || !list)
107 if (!list_empty(list)) {
110 list_for_each_entry(e, list, node)
116 list_add_tail(&entry->node, list);
120 void acpi_power_resources_list_free(struct list_head *list)
124 list_for_each_entry_safe(entry, e, list, node) {
148 struct list_head *list)
177 err = acpi_power_resources_list_add(rhandle, list);
182 acpi_power_resources_list_free(list);
220 static int acpi_power_get_list_state(struct list_head *list, u8 *state)
225 if (!list || !state)
228 /* The state of the list is 'on' IFF all resources are 'on'. */
229 list_for_each_entry(entry, list, node) {
243 pr_debug("Power resource list is %s\n", cur_state ? "on" : "off");
470 static int acpi_power_off_list(struct list_head *list)
475 list_for_each_entry_reverse(entry, list, node) {
483 list_for_each_entry_continue(entry, list, node)
489 static int acpi_power_on_list(struct list_head *list)
494 list_for_each_entry(entry, list, node) {
502 list_for_each_entry_continue_reverse(entry, list, node)
611 int acpi_power_wakeup_list_init(struct list_head *list, int *system_level_p)
616 list_for_each_entry(entry, list, node) {
782 * All of the power resources in the list need to be turned off even if
819 struct list_head *list = &device->power.states[i].resources;
821 if (list_empty(list))
824 result = acpi_power_get_list_state(list, &list_state);
862 * First we reference all power resources required in the target list
864 * we dereference all power resources used in the current list.