Lines Matching refs:time_to_empty
74 int time_to_empty; member
408 int time_to_empty; in cw_update_time_to_empty() local
410 time_to_empty = cw_get_time_to_empty(cw_bat); in cw_update_time_to_empty()
411 if (time_to_empty < 0) in cw_update_time_to_empty()
413 time_to_empty); in cw_update_time_to_empty()
414 else if (cw_bat->time_to_empty != time_to_empty) { in cw_update_time_to_empty()
415 cw_bat->time_to_empty = time_to_empty; in cw_update_time_to_empty()
463 return cw_bat->time_to_empty > 0 && in cw_battery_valid_time_to_empty()
464 cw_bat->time_to_empty < CW2015_MASK_SOC && in cw_battery_valid_time_to_empty()
494 val->intval = cw_bat->time_to_empty; in cw_battery_get_property()
528 val->intval = 60 * val->intval / cw_bat->time_to_empty; in cw_battery_get_property()