Lines Matching refs:afsr

513 static void spitfire_cee_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned l…  in spitfire_cee_log()  argument
518 smp_processor_id(), afsr, afar, udbl, udbh, tl1); in spitfire_cee_log()
534 static void spitfire_ue_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned lo… in spitfire_ue_log() argument
538 smp_processor_id(), afsr, afar, udbl, udbh, tt, tl1); in spitfire_ue_log()
575 unsigned long afsr, tt, udbh, udbl; in spitfire_access_error() local
578 afsr = (status_encoded & SFSTAT_AFSR_MASK) >> SFSTAT_AFSR_SHIFT; in spitfire_access_error()
596 if (afsr & SFAFSR_UE) in spitfire_access_error()
597 spitfire_ue_log(afsr, afar, udbh, udbl, tt, tl1, regs); in spitfire_access_error()
603 if (afsr & SFAFSR_UE) { in spitfire_access_error()
622 spitfire_cee_log(afsr, afar, udbh, udbl, tl1, regs); in spitfire_access_error()
825 static inline struct cheetah_err_info *cheetah_get_error_log(unsigned long afsr) in cheetah_get_error_log() argument
834 if ((afsr & CHAFSR_TL1) != 0UL) in cheetah_get_error_log()
917 cheetah_error_log[i].afsr = CHAFSR_INVALID; in cheetah_ecache_flush_init()
1145 static inline unsigned long cheetah_get_hipri(unsigned long afsr) in cheetah_get_hipri() argument
1151 if ((tmp = (afsr & cheetah_error_table[i].mask)) != 0UL) in cheetah_get_hipri()
1169 unsigned long afsr, unsigned long afar, int recoverable) in cheetah_log_errors() argument
1176 afsr, afar, in cheetah_log_errors()
1177 (afsr & CHAFSR_TL1) ? 1 : 0); in cheetah_log_errors()
1186 (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT, in cheetah_log_errors()
1187 (afsr & CHAFSR_E_SYNDROME) >> CHAFSR_E_SYNDROME_SHIFT, in cheetah_log_errors()
1188 (afsr & CHAFSR_ME) ? ", Multiple Errors" : "", in cheetah_log_errors()
1189 (afsr & CHAFSR_PRIV) ? ", Privileged" : ""); in cheetah_log_errors()
1190 hipri = cheetah_get_hipri(afsr); in cheetah_log_errors()
1203 if (afsr & ESYND_ERRORS) { in cheetah_log_errors()
1207 syndrome = (afsr & CHAFSR_E_SYNDROME) >> CHAFSR_E_SYNDROME_SHIFT; in cheetah_log_errors()
1214 } else if (afsr & MSYND_ERRORS) { in cheetah_log_errors()
1218 syndrome = (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT; in cheetah_log_errors()
1271 afsr = (afsr & ~hipri) & cheetah_afsr_errors; in cheetah_log_errors()
1272 while (afsr != 0UL) { in cheetah_log_errors()
1273 unsigned long bit = cheetah_get_hipri(afsr); in cheetah_log_errors()
1279 afsr &= ~bit; in cheetah_log_errors()
1288 unsigned long afsr, afar; in cheetah_recheck_errors() local
1292 : "=r" (afsr) in cheetah_recheck_errors()
1294 if ((afsr & cheetah_afsr_errors) != 0) { in cheetah_recheck_errors()
1299 logp->afsr = afsr; in cheetah_recheck_errors()
1306 : : "r" (afsr), "i" (ASI_AFSR)); in cheetah_recheck_errors()
1311 void cheetah_fecc_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_fecc_handler() argument
1319 p = cheetah_get_error_log(afsr); in cheetah_fecc_handler()
1322 afsr, afar); in cheetah_fecc_handler()
1338 if (p->afsr != afsr || p->afar != afar) in cheetah_fecc_handler()
1339 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_fecc_handler()
1341 p->afsr = CHAFSR_INVALID; in cheetah_fecc_handler()
1370 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_fecc_handler()
1377 unsigned long new_afsr = local_snapshot.afsr; in cheetah_fecc_handler()
1388 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_fecc_handler()
1472 void cheetah_cee_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_cee_handler() argument
1477 p = cheetah_get_error_log(afsr); in cheetah_cee_handler()
1480 afsr, afar); in cheetah_cee_handler()
1496 if (p->afsr != afsr || p->afar != afar) in cheetah_cee_handler()
1497 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_cee_handler()
1499 p->afsr = CHAFSR_INVALID; in cheetah_cee_handler()
1503 if (is_memory && (afsr & CHAFSR_CE) != 0UL) { in cheetah_cee_handler()
1514 if ((afsr & CHAFSR_EDC) != 0UL) { in cheetah_cee_handler()
1515 if ((afsr & cheetah_afsr_errors) == CHAFSR_EDC) in cheetah_cee_handler()
1519 } else if ((afsr & CHAFSR_CPC) != 0UL) { in cheetah_cee_handler()
1520 if ((afsr & cheetah_afsr_errors) == CHAFSR_CPC) in cheetah_cee_handler()
1559 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_cee_handler()
1566 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_cee_handler()
1572 void cheetah_deferred_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_deferred_handler() argument
1612 p = cheetah_get_error_log(afsr); in cheetah_deferred_handler()
1615 afsr, afar); in cheetah_deferred_handler()
1631 if (p->afsr != afsr || p->afar != afar) in cheetah_deferred_handler()
1632 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_deferred_handler()
1634 p->afsr = CHAFSR_INVALID; in cheetah_deferred_handler()
1642 if ((afsr & CHAFSR_EDU) != 0UL) { in cheetah_deferred_handler()
1643 if ((afsr & cheetah_afsr_errors) == CHAFSR_EDU) in cheetah_deferred_handler()
1647 } else if ((afsr & CHAFSR_BERR) != 0UL) { in cheetah_deferred_handler()
1648 if ((afsr & cheetah_afsr_errors) == CHAFSR_BERR) in cheetah_deferred_handler()
1687 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_deferred_handler()
1694 unsigned long new_afsr = local_snapshot.afsr; in cheetah_deferred_handler()
1705 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_deferred_handler()