Lines Matching refs:ocv
288 int volt, cur, oci, ocv, ret; in sc27xx_fgu_get_boot_capacity() local
326 ocv = volt * 1000 - oci * data->internal_resist; in sc27xx_fgu_get_boot_capacity()
327 data->boot_volt = ocv; in sc27xx_fgu_get_boot_capacity()
334 ocv); in sc27xx_fgu_get_boot_capacity()
795 int ret, ocv, chg_sts, adc; in sc27xx_fgu_capacity_calibration() local
797 ret = sc27xx_fgu_get_vbat_ocv(data, &ocv); in sc27xx_fgu_capacity_calibration()
816 if ((ocv > data->cap_table[0].ocv && cap < 100) || cap > 100) { in sc27xx_fgu_capacity_calibration()
823 } else if (ocv <= data->cap_table[data->table_len - 1].ocv) { in sc27xx_fgu_capacity_calibration()
829 } else if ((ocv > data->cap_table[data->table_len - 1].ocv && cap <= 0) || in sc27xx_fgu_capacity_calibration()
830 (ocv > data->min_volt && cap <= data->alarm_cap)) { in sc27xx_fgu_capacity_calibration()
837 data->table_len, ocv); in sc27xx_fgu_capacity_calibration()
840 } else if (ocv <= data->min_volt) { in sc27xx_fgu_capacity_calibration()
859 ocv); in sc27xx_fgu_capacity_calibration()
870 data->min_volt = data->cap_table[data->table_len - 1].ocv; in sc27xx_fgu_capacity_calibration()
1283 int ret, status, ocv; in sc27xx_fgu_suspend() local
1305 ret = sc27xx_fgu_get_vbat_ocv(data, &ocv); in sc27xx_fgu_suspend()
1314 if (ocv < data->min_volt) { in sc27xx_fgu_suspend()