Lines Matching refs:list
18 #include <linux/list.h>
112 struct list_head list;
701 list_for_each_entry(battery, &acpi_battery_list, list) {
704 list_del(&hook->list);
721 INIT_LIST_HEAD(&hook->list);
722 list_add(&hook->list, &battery_hook_list);
729 list_for_each_entry(battery, &acpi_battery_list, list) {
734 * and we will not add it to the list of loaded
758 INIT_LIST_HEAD(&battery->list);
759 list_add(&battery->list, &acpi_battery_list);
761 * Since we added a new battery to the list, we need to
767 list_for_each_entry_safe(hook_node, tmp, &battery_hook_list, list) {
790 list_for_each_entry(hook, &battery_hook_list, list) {
793 /* Then, just remove the battery from the list */
794 list_del(&battery->list);
807 list_for_each_entry_safe(hook, ptr, &battery_hook_list, list) {