Lines Matching defs:bat
36 struct power_supply *bat;
48 bp->bat = dev_get_drvdata(dev);
50 if (bp->bat->use_for_apm) {
52 bp->main = bp->bat;
56 if (!PSY_PROP(bp->bat, CHARGE_FULL_DESIGN, &bp->full) ||
57 !PSY_PROP(bp->bat, CHARGE_FULL, &bp->full)) {
59 bp->max_charge_bat = bp->bat;
62 } else if (!PSY_PROP(bp->bat, ENERGY_FULL_DESIGN, &bp->full) ||
63 !PSY_PROP(bp->bat, ENERGY_FULL, &bp->full)) {
65 bp->max_energy_bat = bp->bat;
113 main_battery = bp.bat;