Lines Matching full:capacity

174  * @init_capacity:	Indicate if initial capacity measuring should be done
182 * @bat_cap: Structure for battery capacity specific parameters
183 * @avg_cap: Average capacity filter
373 * ab8500_fg_add_cap_sample() - Add capacity to average filter
375 * @sample: the capacity in mAh to add to the filter
377 * A capacity is added to the filter and a new mean capacity is calculated and
412 * The capacity filter is is reset to zero.
433 * @sample: the capacity in mAh to fill the filter with
435 * The capacity filter is filled with a capacity in mAh
848 * ab8500_fg_volt_to_capacity() - Voltage based capacity
850 * @voltage: The voltage to convert to a capacity
852 * Returns battery capacity in per mille based on voltage
871 tbl[i].capacity * 10, in ab8500_fg_volt_to_capacity()
873 tbl[i-1].capacity * 10); in ab8500_fg_volt_to_capacity()
887 * ab8500_fg_uncomp_volt_to_capacity() - Uncompensated voltage based capacity
890 * Returns battery capacity based on battery voltage that is not compensated
944 * ab8500_fg_load_comp_volt_to_capacity() - Load compensated voltage based capacity
947 * Returns battery capacity based on battery voltage that is load compensated
980 * ab8500_fg_convert_mah_to_permille() - Capacity in mAh to permille
982 * @cap_mah: capacity in mAh
984 * Converts capacity in mAh to capacity in permille
992 * ab8500_fg_convert_permille_to_mah() - Capacity in permille to mAh
994 * @cap_pm: capacity in permille
996 * Converts capacity in permille to capacity in mAh
1004 * ab8500_fg_convert_mah_to_uwh() - Capacity in mAh to uWh
1006 * @cap_mah: capacity in mAh
1008 * Converts capacity in mAh to capacity in uWh
1026 * ab8500_fg_calc_cap_charging() - Calculate remaining capacity while charging
1029 * Return the capacity in mAh based on previous calculated capcity and the FG
1030 * accumulator register value. The filter is filled with this capacity
1039 /* Capacity should not be less than 0 */ in ab8500_fg_calc_cap_charging()
1045 * We force capacity to 100% once when the algorithm in ab8500_fg_calc_cap_charging()
1065 * ab8500_fg_calc_cap_discharge_voltage() - Capacity in discharge with voltage
1067 * @comp: if voltage should be load compensated before capacity calc
1069 * Return the capacity in mAh based on the battery voltage. The voltage can
1092 * ab8500_fg_calc_cap_discharge_fg() - Capacity in discharge with FG
1095 * Return the capacity in mAh based on previous calculated capcity and the FG
1108 /* Capacity should not be less than 0 */ in ab8500_fg_calc_cap_discharge_fg()
1118 * Check against voltage based capacity. It can not be lower in ab8500_fg_calc_cap_discharge_fg()
1145 * ab8500_fg_capacity_level() - Get the battery capacity level
1148 * Get the battery capacity level based on the capacity in percent
1172 * ab8500_fg_calculate_scaled_capacity() - Capacity scaling
1175 * Calculates the capacity to be shown to upper layers. Scales the capacity
1176 * to have 100% as a reference from the actual capacity upon removal of charger
1182 int capacity = di->bat_cap.prev_percent; in ab8500_fg_calculate_scaled_capacity() local
1185 return capacity; in ab8500_fg_calculate_scaled_capacity()
1188 * As long as we are in fully charge mode scale the capacity in ab8500_fg_calculate_scaled_capacity()
1194 max(capacity, di->bm->fg_params->maint_thres); in ab8500_fg_calculate_scaled_capacity()
1199 /* Calculates the scaled capacity. */ in ab8500_fg_calculate_scaled_capacity()
1202 capacity = min(100, in ab8500_fg_calculate_scaled_capacity()
1208 if (capacity < cs->disable_cap_level) { in ab8500_fg_calculate_scaled_capacity()
1209 cs->disable_cap_level = capacity; in ab8500_fg_calculate_scaled_capacity()
1215 dev_dbg(di->dev, "Disabling scaled capacity\n"); in ab8500_fg_calculate_scaled_capacity()
1217 capacity = di->bat_cap.prev_percent; in ab8500_fg_calculate_scaled_capacity()
1222 capacity = cs->disable_cap_level; in ab8500_fg_calculate_scaled_capacity()
1227 return capacity; in ab8500_fg_calculate_scaled_capacity()
1231 * ab8500_fg_update_cap_scalers() - Capacity scaling
1235 * the capacity scalers.
1265 * ab8500_fg_check_capacity_limits() - Check if capacity has changed
1267 * @init: capacity is allowed to go up in init mode
1269 * Check if capacity or capacity limit has changed and notify the system
1281 * We do not allow reported capacity level to go up in ab8500_fg_check_capacity_limits()
1300 * If we have received the LOW_BAT IRQ, set capacity to 0 to initiate in ab8500_fg_check_capacity_limits()
1304 dev_dbg(di->dev, "Battery low, set capacity to 0\n"); in ab8500_fg_check_capacity_limits()
1333 "but capacity dropping: %d\n", in ab8500_fg_check_capacity_limits()
1354 * We do not allow reported capacity to go up in ab8500_fg_check_capacity_limits()
1358 "capacity changed from %d to %d (%d)\n", in ab8500_fg_check_capacity_limits()
1367 dev_dbg(di->dev, "capacity not allowed to go up since " in ab8500_fg_check_capacity_limits()
1380 dev_info(di->dev, "capacity=%d (%d)\n", in ab8500_fg_check_capacity_limits()
1422 * Battery capacity calculation state machine for when we're charging
1446 * Read the FG and calculate the new capacity in ab8500_fg_algorithm_charging()
1468 /* Check capacity limits */ in ab8500_fg_algorithm_charging()
1508 dev_dbg(di->dev, "Capacity limits:" in check_sysfs_capacity()
1512 /* If within limits, use the saved capacity and exit estimation...*/ in check_sysfs_capacity()
1518 dev_dbg(di->dev, "Capacity from user out of limits, ignoring"); in check_sysfs_capacity()
1526 * Battery capacity calculation state machine for when we're discharging
1550 * samples to get an initial capacity. in ab8500_fg_algorithm_discharging()
1745 * Entry point for the battery capacity calculation state machine
1791 /* Get an initial capacity calculation */ in ab8500_fg_periodic_work()
2078 * charge_full_design: capacity where battery is considered full
2079 * charge_now: battery capacity in nAh
2080 * capacity: capacity in percent
2081 * capacity_level: capacity level
2093 * batteries is disabled, we always report 100% capacity and in ab8500_fg_get_property()
2094 * capacity level UNKNOWN, since we can't calculate in ab8500_fg_get_property()
2095 * remaining capacity in ab8500_fg_get_property()
2210 /* Save current capacity as maximum */ in ab8500_fg_get_ext_psy_data()
2393 * Used to reset the current battery capacity to be able to
2394 * retrigger a new voltage base capacity calculation. For