Lines Matching refs:index
300 int index; in last_failed_dev_show() local
303 index = suspend_stats.last_failed_dev + REC_FAILED_NUM - 1; in last_failed_dev_show()
304 index %= REC_FAILED_NUM; in last_failed_dev_show()
305 last_failed_dev = suspend_stats.failed_devs[index]; in last_failed_dev_show()
314 int index; in last_failed_errno_show() local
317 index = suspend_stats.last_failed_errno + REC_FAILED_NUM - 1; in last_failed_errno_show()
318 index %= REC_FAILED_NUM; in last_failed_errno_show()
319 last_failed_errno = suspend_stats.errno[index]; in last_failed_errno_show()
328 int index; in last_failed_step_show() local
332 index = suspend_stats.last_failed_step + REC_FAILED_NUM - 1; in last_failed_step_show()
333 index %= REC_FAILED_NUM; in last_failed_step_show()
334 step = suspend_stats.failed_steps[index]; in last_failed_step_show()
366 int i, index, last_dev, last_errno, last_step; in suspend_stats_show() local
393 index = last_dev + REC_FAILED_NUM - i; in suspend_stats_show()
394 index %= REC_FAILED_NUM; in suspend_stats_show()
396 suspend_stats.failed_devs[index]); in suspend_stats_show()
401 index = last_errno + REC_FAILED_NUM - i; in suspend_stats_show()
402 index %= REC_FAILED_NUM; in suspend_stats_show()
404 suspend_stats.errno[index]); in suspend_stats_show()
410 index = last_step + REC_FAILED_NUM - i; in suspend_stats_show()
411 index %= REC_FAILED_NUM; in suspend_stats_show()
414 suspend_stats.failed_steps[index])); in suspend_stats_show()