Lines Matching refs:cause
68 static inline const char *cause_to_string(uint32_t cause) in cause_to_string() argument
70 switch (cause) { in cause_to_string()
121 static void print_all_reset_causes(const struct shell *sh, uint32_t cause) in print_all_reset_causes() argument
124 if (cause & cause_mask) { in print_all_reset_causes()
126 cause_to_string(cause & cause_mask)); in print_all_reset_causes()
135 uint32_t cause; in cmd_show_reset_cause() local
140 res = hwinfo_get_reset_cause(&cause); in cmd_show_reset_cause()
149 if (cause != 0) { in cmd_show_reset_cause()
151 print_all_reset_causes(sh, cause); in cmd_show_reset_cause()
181 uint32_t cause; in cmd_supported_reset_cause() local
187 res = hwinfo_get_supported_reset_cause(&cause); in cmd_supported_reset_cause()
195 if (cause != 0) { in cmd_supported_reset_cause()
197 print_all_reset_causes(sh, cause); in cmd_supported_reset_cause()