Searched refs:ocv (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | sc27xx_fuel_gauge.c | 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() [all …]
|
D | 88pm860x_battery.c | 327 static int calc_ocv(struct pm860x_battery_info *info, int *ocv) in calc_ocv() argument 337 if (!ocv) in calc_ocv() 355 *ocv = vbatt_avg - ibatt_avg * info->resistor / 1000; in calc_ocv() 357 *ocv = vbatt_avg; in calc_ocv() 359 dev_dbg(info->dev, "VBAT average:%d, OCV:%d\n", vbatt_avg, *ocv); in calc_ocv() 369 int ocv; in calc_soc() local 378 ret = calc_ocv(info, &ocv); in calc_soc() 381 ret = measure_vbatt(info, OCV_MODE_SLEEP, &ocv); in calc_soc() 388 if (ocv < array_soc[count - 1][0]) { in calc_soc() 394 if (ocv >= array_soc[i][0]) { in calc_soc()
|
D | power_supply_core.c | 702 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info() 803 int table_len, int ocv) in power_supply_ocv2cap_simple() argument 808 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple() 813 (ocv - table[i].ocv); in power_supply_ocv2cap_simple() 814 tmp /= table[i - 1].ocv - table[i].ocv; in power_supply_ocv2cap_simple() 855 int ocv, int temp) in power_supply_batinfo_ocv2cap() argument 864 return power_supply_ocv2cap_simple(table, table_len, ocv); in power_supply_batinfo_ocv2cap()
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/sprd/ |
D | sp9860g-1h10.dts | 49 ocv-capacity-celsius = <20>; 50 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
D | sc27xx-fg.txt | 27 ocv-capacity-celsius = <20>; 28 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
/kernel/linux/linux-5.10/include/linux/ |
D | power_supply.h | 334 int ocv; /* microVolts */ member 405 int table_len, int ocv); 410 int ocv, int temp);
|