Lines Matching refs:empty
121 union power_supply_propval empty; in do_calculate_time() local
176 if (_MPSY_PROP(empty_prop, &empty)) { in do_calculate_time()
178 if (_MPSY_PROP(empty_design_prop, &empty)) in do_calculate_time()
179 empty.intval = 0; in do_calculate_time()
191 return -((cur.intval - empty.intval) * 60L) / I.intval; in do_calculate_time()
218 union power_supply_propval empty, full, cur; in calculate_capacity() local
263 if (_MPSY_PROP(empty_prop, &empty)) { in calculate_capacity()
265 if (_MPSY_PROP(empty_design_prop, &empty)) in calculate_capacity()
266 empty.intval = 0; in calculate_capacity()
269 if (full.intval - empty.intval) in calculate_capacity()
270 ret = ((cur.intval - empty.intval) * 100L) / in calculate_capacity()
271 (full.intval - empty.intval); in calculate_capacity()