Lines Matching refs:errs
1376 static void err_decode(char *msg, size_t len, u64 errs, in err_decode() argument
1382 while (errs && msp && msp->mask) { in err_decode()
1384 while (errs & msp->mask) { in err_decode()
1385 these = (errs & msp->mask); in err_decode()
1402 errs &= ~lmask; in err_decode()
1419 if (len && errs) in err_decode()
1421 (unsigned long long) errs); in err_decode()
1595 static void sdma_7322_p_errors(struct qib_pportdata *ppd, u64 errs) in sdma_7322_p_errors() argument
1600 errs &= QIB_E_P_SDMAERRS; in sdma_7322_p_errors()
1602 errs, qib_7322p_error_msgs); in sdma_7322_p_errors()
1604 if (errs & QIB_E_P_SDMAUNEXPDATA) in sdma_7322_p_errors()
1610 if (errs != QIB_E_P_SDMAHALT) { in sdma_7322_p_errors()
1615 errs, ppd->cpspec->sdmamsgbuf); in sdma_7322_p_errors()
1624 if (errs & QIB_E_P_SDMAHALT) in sdma_7322_p_errors()
1636 if (errs & QIB_E_P_SDMAHALT) in sdma_7322_p_errors()
1642 if (errs & QIB_E_P_SDMAHALT) in sdma_7322_p_errors()
1663 u64 errs; in handle_7322_errors() local
1668 errs = qib_read_kreg64(dd, kr_errstatus); in handle_7322_errors()
1669 if (!errs) { in handle_7322_errors()
1676 errs &= dd->cspec->errormask; in handle_7322_errors()
1680 if (errs & QIB_E_HARDWARE) { in handle_7322_errors()
1685 if (errs & dd->eep_st_masks[log_idx].errs_to_log) in handle_7322_errors()
1688 if (errs & QIB_E_SPKTERRS) { in handle_7322_errors()
1691 } else if (errs & QIB_E_INVALIDADDR) in handle_7322_errors()
1693 else if (errs & QIB_E_ARMLAUNCH) { in handle_7322_errors()
1697 qib_write_kreg(dd, kr_errclear, errs); in handle_7322_errors()
1707 err_decode(msg, sizeof(dd->cspec->emsgbuf), errs & ~mask, in handle_7322_errors()
1714 if (errs & QIB_E_RESET) { in handle_7322_errors()
1737 if (errs & (ERR_MASK(RcvEgrFullErr) | ERR_MASK(RcvHdrFullErr))) { in handle_7322_errors()
1739 if (errs & ERR_MASK(RcvEgrFullErr)) in handle_7322_errors()
1872 u64 ignore_this_time = 0, iserr = 0, errs, fmask; in handle_7322_p_errors() local
1880 errs = qib_read_kreg_port(ppd, krp_errstatus); in handle_7322_p_errors()
1881 if (!errs) in handle_7322_p_errors()
1886 errs &= ~QIB_E_P_IBSTATUSCHANGED; in handle_7322_p_errors()
1887 if (!errs) in handle_7322_p_errors()
1893 if (errs & ~QIB_E_P_BITSEXTANT) { in handle_7322_p_errors()
1895 errs & ~QIB_E_P_BITSEXTANT, qib_7322p_error_msgs); in handle_7322_p_errors()
1901 (errs & ~QIB_E_P_BITSEXTANT), msg); in handle_7322_p_errors()
1905 if (errs & QIB_E_P_SHDR) { in handle_7322_p_errors()
1917 if (errs & QIB_E_P_SPKTERRS) { in handle_7322_p_errors()
1918 if ((errs & QIB_E_P_LINK_PKTERRS) && in handle_7322_p_errors()
1928 (errs & QIB_E_P_LINK_PKTERRS), in handle_7322_p_errors()
1931 ignore_this_time = errs & QIB_E_P_LINK_PKTERRS; in handle_7322_p_errors()
1934 } else if ((errs & QIB_E_P_LINK_PKTERRS) && in handle_7322_p_errors()
1943 err_decode(msg, sizeof(ppd->cpspec->epmsgbuf), errs, in handle_7322_p_errors()
1945 ignore_this_time = errs & QIB_E_P_LINK_PKTERRS; in handle_7322_p_errors()
1949 qib_write_kreg_port(ppd, krp_errclear, errs); in handle_7322_p_errors()
1951 errs &= ~ignore_this_time; in handle_7322_p_errors()
1952 if (!errs) in handle_7322_p_errors()
1955 if (errs & QIB_E_P_RPKTERRS) in handle_7322_p_errors()
1957 if (errs & QIB_E_P_SPKTERRS) in handle_7322_p_errors()
1960 iserr = errs & ~(QIB_E_P_RPKTERRS | QIB_E_P_PKTERRS); in handle_7322_p_errors()
1962 if (errs & QIB_E_P_SDMAERRS) in handle_7322_p_errors()
1963 sdma_7322_p_errors(ppd, errs); in handle_7322_p_errors()
1965 if (errs & QIB_E_P_IBSTATUSCHANGED) { in handle_7322_p_errors()