Home
last modified time | relevance | path

Searched refs:p_bat (Results 1 – 4 of 4) sorted by relevance

/third_party/uboot/u-boot-2020.01/drivers/power/battery/
Dbat_trats.c18 struct power_battery *p_bat = bat->pbat; in power_battery_charge() local
19 struct battery *battery = p_bat->bat; in power_battery_charge()
22 if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450)) in power_battery_charge()
25 for (k = 0; bat->chrg->chrg_bat_present(p_bat->chrg) && in power_battery_charge()
26 bat->chrg->chrg_type(p_bat->muic) && in power_battery_charge()
31 bat->fg->fg_battery_update(p_bat->fg, bat); in power_battery_charge()
45 bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_DISABLE, 0); in power_battery_charge()
Dbat_trats2.c17 struct power_battery *p_bat = bat->pbat; in power_battery_charge() local
19 if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450)) in power_battery_charge()
/third_party/uboot/u-boot-2020.01/board/samsung/trats2/
Dtrats2.c133 struct pmic *p_chrg, *p_muic, *p_fg, *p_bat; in exynos_power_init() local
161 p_bat = pmic_get("BAT_TRATS2"); in exynos_power_init()
162 if (!p_bat) { in exynos_power_init()
167 p_fg->parent = p_bat; in exynos_power_init()
168 p_chrg->parent = p_bat; in exynos_power_init()
169 p_muic->parent = p_bat; in exynos_power_init()
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()
182 p_fg->fg->fg_battery_check(p_fg, p_bat); in exynos_power_init()
/third_party/uboot/u-boot-2020.01/board/samsung/trats/
Dtrats.c118 struct pmic *p_fg, *p_chrg, *p_muic, *p_bat; in exynos_power_init() local
151 p_bat = pmic_get("BAT_TRATS"); in exynos_power_init()
152 if (!p_bat) { in exynos_power_init()
157 p_fg->parent = p_bat; in exynos_power_init()
158 p_chrg->parent = p_bat; in exynos_power_init()
159 p_muic->parent = p_bat; in exynos_power_init()
161 p_bat->low_power_mode = trats_low_power_mode; in exynos_power_init()
162 p_bat->pbat->battery_init(p_bat, p_fg, p_chrg, p_muic); in exynos_power_init()
164 pb = p_bat->pbat; in exynos_power_init()
173 p_fg->fg->fg_battery_check(p_fg, p_bat); in exynos_power_init()