Lines Matching refs:bat
37 struct power_supply *bat; member
49 bp->bat = dev_get_drvdata(dev); in __find_main_battery()
51 if (bp->bat->desc->use_for_apm) { in __find_main_battery()
53 bp->main = bp->bat; in __find_main_battery()
57 if (!PSY_PROP(bp->bat, CHARGE_FULL_DESIGN, &bp->full) || in __find_main_battery()
58 !PSY_PROP(bp->bat, CHARGE_FULL, &bp->full)) { in __find_main_battery()
60 bp->max_charge_bat = bp->bat; in __find_main_battery()
63 } else if (!PSY_PROP(bp->bat, ENERGY_FULL_DESIGN, &bp->full) || in __find_main_battery()
64 !PSY_PROP(bp->bat, ENERGY_FULL, &bp->full)) { in __find_main_battery()
66 bp->max_energy_bat = bp->bat; in __find_main_battery()
114 main_battery = bp.bat; in find_main_battery()