Lines Matching refs:main_battery
21 #define _MPSY_PROP(prop, val) (power_supply_get_property(main_battery, \
27 static struct power_supply *main_battery; variable
79 main_battery = NULL; in find_main_battery()
80 bp.main = main_battery; in find_main_battery()
85 main_battery = bp.main; in find_main_battery()
95 main_battery = bp.max_energy_bat; in find_main_battery()
97 main_battery = bp.max_charge_bat; in find_main_battery()
101 main_battery = bp.max_charge_bat; in find_main_battery()
103 main_battery = bp.max_energy_bat; in find_main_battery()
106 main_battery = bp.max_energy_bat; in find_main_battery()
109 main_battery = bp.max_charge_bat; in find_main_battery()
111 main_battery = bp.max_energy_bat; in find_main_battery()
114 main_battery = bp.bat; in find_main_battery()
290 if (!main_battery) { in apm_battery_apm_get_power_status()