Lines Matching refs:afsr

294 static void spitfire_cee_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned l…  in spitfire_cee_log()  argument
299 smp_processor_id(), afsr, afar, udbl, udbh, tl1); in spitfire_cee_log()
309 static void spitfire_ue_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned lo… in spitfire_ue_log() argument
315 smp_processor_id(), afsr, afar, udbl, udbh, tt, tl1); in spitfire_ue_log()
351 unsigned long afsr, tt, udbh, udbl; in spitfire_access_error() local
354 afsr = (status_encoded & SFSTAT_AFSR_MASK) >> SFSTAT_AFSR_SHIFT; in spitfire_access_error()
372 if (afsr & SFAFSR_UE) in spitfire_access_error()
373 spitfire_ue_log(afsr, afar, udbh, udbl, tt, tl1, regs); in spitfire_access_error()
379 if (afsr & SFAFSR_UE) { in spitfire_access_error()
398 spitfire_cee_log(afsr, afar, udbh, udbl, tl1, regs); in spitfire_access_error()
414 /*0x00*/u64 afsr; member
621 static __inline__ struct cheetah_err_info *cheetah_get_error_log(unsigned long afsr) in cheetah_get_error_log() argument
630 if ((afsr & CHAFSR_TL1) != 0UL) in cheetah_get_error_log()
734 cheetah_error_log[i].afsr = CHAFSR_INVALID; in cheetah_ecache_flush_init()
947 static __inline__ unsigned long cheetah_get_hipri(unsigned long afsr) in cheetah_get_hipri() argument
953 if ((tmp = (afsr & cheetah_error_table[i].mask)) != 0UL) in cheetah_get_hipri()
973 unsigned long afsr, unsigned long afar, int recoverable) in cheetah_log_errors() argument
980 afsr, afar, in cheetah_log_errors()
981 (afsr & CHAFSR_TL1) ? 1 : 0); in cheetah_log_errors()
987 (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT, in cheetah_log_errors()
988 (afsr & CHAFSR_E_SYNDROME) >> CHAFSR_E_SYNDROME_SHIFT, in cheetah_log_errors()
989 (afsr & CHAFSR_ME) ? ", Multiple Errors" : "", in cheetah_log_errors()
990 (afsr & CHAFSR_PRIV) ? ", Privileged" : ""); in cheetah_log_errors()
991 hipri = cheetah_get_hipri(afsr); in cheetah_log_errors()
1004 if (afsr & ESYND_ERRORS) { in cheetah_log_errors()
1008 syndrome = (afsr & CHAFSR_E_SYNDROME) >> CHAFSR_E_SYNDROME_SHIFT; in cheetah_log_errors()
1015 } else if (afsr & MSYND_ERRORS) { in cheetah_log_errors()
1019 syndrome = (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT; in cheetah_log_errors()
1072 afsr = (afsr & ~hipri) & cheetah_afsr_errors; in cheetah_log_errors()
1073 while (afsr != 0UL) { in cheetah_log_errors()
1074 unsigned long bit = cheetah_get_hipri(afsr); in cheetah_log_errors()
1080 afsr &= ~bit; in cheetah_log_errors()
1089 unsigned long afsr, afar; in cheetah_recheck_errors() local
1093 : "=r" (afsr) in cheetah_recheck_errors()
1095 if ((afsr & cheetah_afsr_errors) != 0) { in cheetah_recheck_errors()
1100 logp->afsr = afsr; in cheetah_recheck_errors()
1107 : : "r" (afsr), "i" (ASI_AFSR)); in cheetah_recheck_errors()
1112 void cheetah_fecc_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_fecc_handler() argument
1120 p = cheetah_get_error_log(afsr); in cheetah_fecc_handler()
1123 afsr, afar); in cheetah_fecc_handler()
1139 if (p->afsr != afsr || p->afar != afar) in cheetah_fecc_handler()
1140 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_fecc_handler()
1142 p->afsr = CHAFSR_INVALID; in cheetah_fecc_handler()
1171 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_fecc_handler()
1178 unsigned long new_afsr = local_snapshot.afsr; in cheetah_fecc_handler()
1189 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_fecc_handler()
1278 void cheetah_cee_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_cee_handler() argument
1283 p = cheetah_get_error_log(afsr); in cheetah_cee_handler()
1286 afsr, afar); in cheetah_cee_handler()
1302 if (p->afsr != afsr || p->afar != afar) in cheetah_cee_handler()
1303 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_cee_handler()
1305 p->afsr = CHAFSR_INVALID; in cheetah_cee_handler()
1309 if (is_memory && (afsr & CHAFSR_CE) != 0UL) { in cheetah_cee_handler()
1320 if ((afsr & CHAFSR_EDC) != 0UL) { in cheetah_cee_handler()
1321 if ((afsr & cheetah_afsr_errors) == CHAFSR_EDC) in cheetah_cee_handler()
1325 } else if ((afsr & CHAFSR_CPC) != 0UL) { in cheetah_cee_handler()
1326 if ((afsr & cheetah_afsr_errors) == CHAFSR_CPC) in cheetah_cee_handler()
1365 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_cee_handler()
1372 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_cee_handler()
1378 void cheetah_deferred_handler(struct pt_regs *regs, unsigned long afsr, unsigned long afar) in cheetah_deferred_handler() argument
1418 p = cheetah_get_error_log(afsr); in cheetah_deferred_handler()
1421 afsr, afar); in cheetah_deferred_handler()
1437 if (p->afsr != afsr || p->afar != afar) in cheetah_deferred_handler()
1438 local_snapshot.afsr = CHAFSR_INVALID; in cheetah_deferred_handler()
1440 p->afsr = CHAFSR_INVALID; in cheetah_deferred_handler()
1448 if ((afsr & CHAFSR_EDU) != 0UL) { in cheetah_deferred_handler()
1449 if ((afsr & cheetah_afsr_errors) == CHAFSR_EDU) in cheetah_deferred_handler()
1453 } else if ((afsr & CHAFSR_BERR) != 0UL) { in cheetah_deferred_handler()
1454 if ((afsr & cheetah_afsr_errors) == CHAFSR_BERR) in cheetah_deferred_handler()
1493 if (afsr & (CHAFSR_PERR | CHAFSR_IERR | CHAFSR_ISAP)) in cheetah_deferred_handler()
1500 unsigned long new_afsr = local_snapshot.afsr; in cheetah_deferred_handler()
1511 cheetah_log_errors(regs, &local_snapshot, afsr, afar, recoverable); in cheetah_deferred_handler()