Searched refs:pbat (Results 1 – 9 of 9) sorted by relevance
87 struct pmu_battery_info *pbi = pbat->pbi; in pmu_bat_get_property()163 struct pmu_battery_dev *pbat = kzalloc(sizeof(*pbat), in pmu_bat_init() local165 if (!pbat) in pmu_bat_init()169 pbat->bat_desc.name = pbat->name; in pmu_bat_init()173 pbat->pbi = &pmu_batteries[i]; in pmu_bat_init()174 psy_cfg.drv_data = pbat; in pmu_bat_init()177 &pbat->bat_desc, in pmu_bat_init()179 if (IS_ERR(pbat->bat)) { in pmu_bat_init()180 ret = PTR_ERR(pbat->bat); in pmu_bat_init()181 kfree(pbat); in pmu_bat_init()[all …]
17 struct power_battery *p_bat = bat->pbat; in power_battery_charge()30 bat_->pbat->fg = fg_; in power_battery_init_trats2()31 bat_->pbat->chrg = chrg_; in power_battery_init_trats2()32 bat_->pbat->muic = muic_; in power_battery_init_trats2()62 p->pbat = &power_bat_trats2; in power_bat_init()
18 struct power_battery *p_bat = bat->pbat; in power_battery_charge()55 bat_->pbat->fg = fg_; in power_battery_init_trats()56 bat_->pbat->chrg = chrg_; in power_battery_init_trats()57 bat_->pbat->muic = muic_; in power_battery_init_trats()87 p->pbat = &power_bat_trats; in power_bat_init()
185 if (!p->pbat) { in do_pmic()191 p->fg->fg_battery_check(p->pbat->fg, p); in do_pmic()198 if (p->pbat->battery_charge) in do_pmic()199 p->pbat->battery_charge(p); in do_pmic()
49 struct power_battery *pb = bat->pbat; in power_update_battery()68 struct power_battery *pb = bat->pbat; in power_check_battery()
171 p_bat->pbat->battery_init(p_bat, p_fg, p_chrg, p_muic); in exynos_power_init()173 pb = p_bat->pbat; in exynos_power_init()
195 struct power_battery *pb = bat->pbat; in power_update_battery()220 struct power_battery *pb = bat->pbat; in power_check_battery()
161 p_bat->pbat->battery_init(p_bat, p_fg, p_chrg, p_muic); in exynos_power_init()163 pb = p_bat->pbat; in exynos_power_init()
78 struct power_battery *pbat; member