Lines Matching refs:lasttime_soc
49 static int lasttime_soc; variable
174 lasttime_soc = BATTERY_FULL - 1; in flounder_soc_adjust()
176 lasttime_soc = props->batteryLevel; in flounder_soc_adjust()
185 lasttime_soc < BATTERY_FULL) in flounder_soc_adjust()
201 soc_decrease = lasttime_soc - soc; in flounder_soc_adjust()
203 soc = lasttime_soc; in flounder_soc_adjust()
209 soc = lasttime_soc; in flounder_soc_adjust()
218 soc = lasttime_soc - soc_decrease; in flounder_soc_adjust()
225 soc = lasttime_soc; in flounder_soc_adjust()
230 if (lasttime_soc <= soc_decrease) in flounder_soc_adjust()
233 soc = lasttime_soc - soc_decrease; in flounder_soc_adjust()
238 if (soc > lasttime_soc) in flounder_soc_adjust()
239 soc = lasttime_soc + 1; in flounder_soc_adjust()
243 props->batteryLevel = lasttime_soc = soc; in flounder_soc_adjust()