Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c425 int ret, cur_clbcnt, delta_clbcnt, delta_cap, temp; in sc27xx_fgu_get_capacity() local
432 delta_clbcnt = cur_clbcnt - data->init_clbcnt; in sc27xx_fgu_get_capacity()
438 temp = DIV_ROUND_CLOSEST(delta_clbcnt * 10, 36 * SC27XX_FGU_SAMPLE_HZ); in sc27xx_fgu_get_capacity()
996 int ret, delta_clbcnt, alarm_adc; in sc27xx_fgu_hw_init() local
1092 delta_clbcnt = sc27xx_fgu_cap_to_clbcnt(data, 1); in sc27xx_fgu_hw_init()
1095 SC27XX_FGU_CLBCNT_MASK, delta_clbcnt); in sc27xx_fgu_hw_init()
1103 delta_clbcnt >> SC27XX_FGU_CLBCNT_SHIFT); in sc27xx_fgu_hw_init()