/linux-6.12.1/drivers/power/supply/ |
D | samsung-sdi-battery.c | 451 { .ocv = 4330000, .capacity = 100}, 452 { .ocv = 4320000, .capacity = 99}, 453 { .ocv = 4283000, .capacity = 95}, 454 { .ocv = 4246000, .capacity = 92}, 455 { .ocv = 4211000, .capacity = 89}, 456 { .ocv = 4167000, .capacity = 85}, 457 { .ocv = 4146000, .capacity = 83}, 458 { .ocv = 4124000, .capacity = 81}, 459 { .ocv = 4062000, .capacity = 75}, 460 { .ocv = 4013000, .capacity = 70}, [all …]
|
D | ab8500_bmdata.c | 20 { .ocv = 4186000, .capacity = 100}, 21 { .ocv = 4163000, .capacity = 99}, 22 { .ocv = 4114000, .capacity = 95}, 23 { .ocv = 4068000, .capacity = 90}, 24 { .ocv = 3990000, .capacity = 80}, 25 { .ocv = 3926000, .capacity = 70}, 26 { .ocv = 3898000, .capacity = 65}, 27 { .ocv = 3866000, .capacity = 60}, 28 { .ocv = 3833000, .capacity = 55}, 29 { .ocv = 3812000, .capacity = 50}, [all …]
|
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() 788 int ret, ocv, chg_sts, adc; in sc27xx_fgu_capacity_calibration() local 790 ret = sc27xx_fgu_get_vbat_ocv(data, &ocv); in sc27xx_fgu_capacity_calibration() 809 if ((ocv > data->cap_table[0].ocv && cap < 100) || cap > 100) { in sc27xx_fgu_capacity_calibration() 816 } else if (ocv <= data->cap_table[data->table_len - 1].ocv) { in sc27xx_fgu_capacity_calibration() 822 } else if ((ocv > data->cap_table[data->table_len - 1].ocv && cap <= 0) || in sc27xx_fgu_capacity_calibration() 823 (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 | 789 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info() 1097 int table_len, int ocv) in power_supply_ocv2cap_simple() argument 1102 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple() 1113 return fixp_linear_interpolate(table[low].ocv, in power_supply_ocv2cap_simple() 1115 table[high].ocv, in power_supply_ocv2cap_simple() 1117 ocv); in power_supply_ocv2cap_simple() 1150 int ocv, int temp) in power_supply_batinfo_ocv2cap() argument 1159 return power_supply_ocv2cap_simple(table, table_len, ocv); in power_supply_batinfo_ocv2cap()
|
D | ug3105_battery.c | 75 int ocv[UG3105_MOV_AVG_WINDOW]; /* micro-volt */ member 203 chip->ocv[chip->ocv_avg_index] = in ug3105_work() 229 chip->ocv_avg += chip->ocv[i]; in ug3105_work()
|
D | axp288_fuel_gauge.c | 136 int ocv; member 251 info->ocv = ret; in fuel_gauge_update_registers() 328 int vocv = VOLTAGE_FROM_ADC(info->ocv); in fuel_gauge_battery_health() 365 value = VOLTAGE_FROM_ADC(info->ocv); in fuel_gauge_get_property()
|
/linux-6.12.1/arch/arm64/boot/dts/rockchip/ |
D | rk3326-odroid-go2.dts | 50 ocv-capacity-celsius = <20>; 51 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
D | rk3566-anbernic-rg353vs.dts | 30 ocv-capacity-celsius = <20>; 31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
D | rk3566-anbernic-rg353ps.dts | 30 ocv-capacity-celsius = <20>; 31 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
D | rk3566-anbernic-rg353v.dts | 31 ocv-capacity-celsius = <20>; 32 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
D | rk3326-odroid-go2-v11.dts | 54 ocv-capacity-celsius = <20>; 55 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
D | rk3566-anbernic-rg353p.dts | 31 ocv-capacity-celsius = <20>; 32 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
D | rk3326-odroid-go3.dts | 87 ocv-capacity-celsius = <20>; 88 ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
D | rk3566-anbernic-rg-arc.dtsi | 27 ocv-capacity-celsius = <20>; 28 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
D | rk3566-anbernic-rg503.dts | 85 ocv-capacity-celsius = <20>; 86 ocv-capacity-table-0 = <4172000 100>, <4054000 95>, <3984000 90>, <3926000 85>,
|
D | rk3326-gameforce-chi.dts | 85 ocv-capacity-celsius = <20>; 86 ocv-capacity-table-0 = <4106000 100>, <4071000 95>, <4018000 90>, <3975000 85>,
|
D | rk3566-powkiddy-rk2023.dtsi | 92 ocv-capacity-celsius = <20>; 93 ocv-capacity-table-0 = <4172000 100>, <4092000 95>, <4035000 90>, <3990000 85>,
|
D | rk3566-powkiddy-x55.dts | 85 ocv-capacity-celsius = <20>; 86 ocv-capacity-table-0 = <4138000 100>, <4083000 95>, <4059000 90>, <4044000 85>,
|
/linux-6.12.1/arch/arm64/boot/dts/sprd/ |
D | sp9860g-1h10.dts | 76 ocv-capacity-celsius = <20>; 77 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | msm8916-wingtech-wt865x8.dtsi | 46 ocv-capacity-celsius = <25>; 47 ocv-capacity-table-0 = <4328000 100>, <4266000 95>, <4208000 90>,
|
D | msm8916-lg-m216.dts | 32 ocv-capacity-celsius = <25>; 33 ocv-capacity-table-0 = <4342000 100>, <4266000 95>, <4206000 90>,
|
D | msm8916-gplus-fl8005a.dts | 35 ocv-capacity-celsius = <25>; 36 ocv-capacity-table-0 =
|
D | msm8916-longcheer-l8150.dts | 59 ocv-capacity-celsius = <25>; 60 ocv-capacity-table-0 = <4330000 100>, <4265000 95>,
|
/linux-6.12.1/include/linux/ |
D | power_supply.h | 339 int ocv; /* microVolts */ member 801 int table_len, int ocv); 806 int ocv, int temp);
|