Lines Matching full:ocv
740 len = of_property_count_u32_elems(battery_np, "ocv-capacity-celsius"); in power_supply_get_battery_info()
749 of_property_read_u32_array(battery_np, "ocv-capacity-celsius", in power_supply_get_battery_info()
758 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index); in power_supply_get_battery_info()
786 table[i].ocv = be32_to_cpu(*list); in power_supply_get_battery_info()
1083 * @table: Pointer to battery OCV lookup table
1084 * @table_len: OCV table length
1085 * @ocv: Current OCV value
1088 * current OCV value from one OCV table, and the OCV table must be ordered
1094 int table_len, int ocv) in power_supply_ocv2cap_simple() argument
1099 if (ocv > table[i].ocv) in power_supply_ocv2cap_simple()
1110 return fixp_linear_interpolate(table[low].ocv, in power_supply_ocv2cap_simple()
1112 table[high].ocv, in power_supply_ocv2cap_simple()
1114 ocv); in power_supply_ocv2cap_simple()
1147 int ocv, int temp) in power_supply_batinfo_ocv2cap() argument
1156 return power_supply_ocv2cap_simple(table, table_len, ocv); in power_supply_batinfo_ocv2cap()