Lines Matching refs:index
339 int index; in last_failed_dev_show() local
342 index = suspend_stats.last_failed_dev + REC_FAILED_NUM - 1; in last_failed_dev_show()
343 index %= REC_FAILED_NUM; in last_failed_dev_show()
344 last_failed_dev = suspend_stats.failed_devs[index]; in last_failed_dev_show()
353 int index; in last_failed_errno_show() local
356 index = suspend_stats.last_failed_errno + REC_FAILED_NUM - 1; in last_failed_errno_show()
357 index %= REC_FAILED_NUM; in last_failed_errno_show()
358 last_failed_errno = suspend_stats.errno[index]; in last_failed_errno_show()
367 int index; in last_failed_step_show() local
371 index = suspend_stats.last_failed_step + REC_FAILED_NUM - 1; in last_failed_step_show()
372 index %= REC_FAILED_NUM; in last_failed_step_show()
373 step = suspend_stats.failed_steps[index]; in last_failed_step_show()
405 int i, index, last_dev, last_errno, last_step; in suspend_stats_show() local
432 index = last_dev + REC_FAILED_NUM - i; in suspend_stats_show()
433 index %= REC_FAILED_NUM; in suspend_stats_show()
435 suspend_stats.failed_devs[index]); in suspend_stats_show()
440 index = last_errno + REC_FAILED_NUM - i; in suspend_stats_show()
441 index %= REC_FAILED_NUM; in suspend_stats_show()
443 suspend_stats.errno[index]); in suspend_stats_show()
449 index = last_step + REC_FAILED_NUM - i; in suspend_stats_show()
450 index %= REC_FAILED_NUM; in suspend_stats_show()
453 suspend_stats.failed_steps[index])); in suspend_stats_show()