Lines Matching defs:list
18 #include <linux/list.h>
102 struct list_head list;
709 list_for_each_entry(battery, &acpi_battery_list, list) {
713 list_del(&hook->list);
730 INIT_LIST_HEAD(&hook->list);
731 list_add(&hook->list, &battery_hook_list);
738 list_for_each_entry(battery, &acpi_battery_list, list) {
743 * and we will not add it to the list of loaded
769 INIT_LIST_HEAD(&battery->list);
770 list_add(&battery->list, &acpi_battery_list);
772 * Since we added a new battery to the list, we need to
778 list_for_each_entry_safe(hook_node, tmp, &battery_hook_list, list) {
801 list_for_each_entry(hook, &battery_hook_list, list) {
804 /* Then, just remove the battery from the list */
805 list_del(&battery->list);
818 list_for_each_entry_safe(hook, ptr, &battery_hook_list, list) {