Lines Matching refs:REC_FAILED_NUM
310 #define REC_FAILED_NUM 2 macro
317 char failed_devs[REC_FAILED_NUM][40];
319 int errno[REC_FAILED_NUM];
324 enum suspend_stat_step failed_steps[REC_FAILED_NUM];
337 suspend_stats.last_failed_dev %= REC_FAILED_NUM; in dpm_save_failed_dev()
347 suspend_stats.last_failed_step %= REC_FAILED_NUM; in dpm_save_failed_step()
361 suspend_stats.last_failed_errno %= REC_FAILED_NUM; in dpm_save_errno()
427 index = suspend_stats.last_failed_dev + REC_FAILED_NUM - 1; in last_failed_dev_show()
428 index %= REC_FAILED_NUM; in last_failed_dev_show()
441 index = suspend_stats.last_failed_errno + REC_FAILED_NUM - 1; in last_failed_errno_show()
442 index %= REC_FAILED_NUM; in last_failed_errno_show()
455 index = suspend_stats.last_failed_step + REC_FAILED_NUM - 1; in last_failed_step_show()
456 index %= REC_FAILED_NUM; in last_failed_step_show()
509 last_dev = suspend_stats.last_failed_dev + REC_FAILED_NUM - 1; in suspend_stats_show()
510 last_dev %= REC_FAILED_NUM; in suspend_stats_show()
511 last_errno = suspend_stats.last_failed_errno + REC_FAILED_NUM - 1; in suspend_stats_show()
512 last_errno %= REC_FAILED_NUM; in suspend_stats_show()
513 last_step = suspend_stats.last_failed_step + REC_FAILED_NUM - 1; in suspend_stats_show()
514 last_step %= REC_FAILED_NUM; in suspend_stats_show()
525 for (i = 1; i < REC_FAILED_NUM; i++) { in suspend_stats_show()
526 index = last_dev + REC_FAILED_NUM - i; in suspend_stats_show()
527 index %= REC_FAILED_NUM; in suspend_stats_show()
532 for (i = 1; i < REC_FAILED_NUM; i++) { in suspend_stats_show()
533 index = last_errno + REC_FAILED_NUM - i; in suspend_stats_show()
534 index %= REC_FAILED_NUM; in suspend_stats_show()
539 for (i = 1; i < REC_FAILED_NUM; i++) { in suspend_stats_show()
540 index = last_step + REC_FAILED_NUM - i; in suspend_stats_show()
541 index %= REC_FAILED_NUM; in suspend_stats_show()