Home
last modified time | relevance | path

Searched refs:pbat (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dpmu_battery.c87 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() local
165 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 …]
/openbmc/u-boot/drivers/power/battery/
H A Dbat_trats2.c17 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()
H A Dbat_trats.c18 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()
/openbmc/u-boot/drivers/power/
H A Dpower_core.c185 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()
/openbmc/u-boot/drivers/power/mfd/
H A Dfg_max77693.c49 struct power_battery *pb = bat->pbat; in power_update_battery()
68 struct power_battery *pb = bat->pbat; in power_check_battery()
/openbmc/u-boot/board/samsung/trats2/
H A Dtrats2.c171 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()
/openbmc/u-boot/drivers/power/fuel_gauge/
H A Dfg_max17042.c195 struct power_battery *pb = bat->pbat; in power_update_battery()
220 struct power_battery *pb = bat->pbat; in power_check_battery()
/openbmc/u-boot/board/samsung/trats/
H A Dtrats.c161 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()
/openbmc/u-boot/include/power/
H A Dpmic.h78 struct power_battery *pbat; member