Lines Matching refs:diag0val
3683 u32 diag0val; in mpt_downloadboot() local
3710 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_downloadboot()
3711 CHIPREG_WRITE32(&ioc->chip->Diagnostic, diag0val | MPI_DIAG_RESET_ADAPTER); in mpt_downloadboot()
3714 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_downloadboot()
3715 if (!(diag0val & MPI_DIAG_RESET_ADAPTER)) { in mpt_downloadboot()
3731 ioc->name, diag0val)); in mpt_downloadboot()
3806 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_downloadboot()
3807 CHIPREG_WRITE32(&ioc->chip->Diagnostic, diag0val | in mpt_downloadboot()
3821 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_downloadboot()
3824 ioc->name, diag0val)); in mpt_downloadboot()
3825 diag0val &= ~(MPI_DIAG_PREVENT_IOC_BOOT | MPI_DIAG_DISABLE_ARM | MPI_DIAG_RW_ENABLE); in mpt_downloadboot()
3827 ioc->name, diag0val)); in mpt_downloadboot()
3828 CHIPREG_WRITE32(&ioc->chip->Diagnostic, diag0val); in mpt_downloadboot()
3969 u32 diag0val; in mpt_diag_reset() local
4029 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4035 ioc->name, diag0val, diag1val)); in mpt_diag_reset()
4041 if (ignore || !(diag0val & MPI_DIAG_RESET_HISTORY)) { in mpt_diag_reset()
4042 while ((diag0val & MPI_DIAG_DRWE) == 0) { in mpt_diag_reset()
4063 ioc->name, diag0val); in mpt_diag_reset()
4068 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4071 ioc->name, diag0val)); in mpt_diag_reset()
4078 ioc->name, diag0val, diag1val)); in mpt_diag_reset()
4084 CHIPREG_WRITE32(&ioc->chip->Diagnostic, diag0val | MPI_DIAG_DISABLE_ARM); in mpt_diag_reset()
4091 CHIPREG_WRITE32(&ioc->chip->Diagnostic, diag0val | MPI_DIAG_RESET_ADAPTER); in mpt_diag_reset()
4125 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4126 if (!(diag0val & MPI_DIAG_RESET_ADAPTER)) { in mpt_diag_reset()
4131 ioc->name, diag0val, count)); in mpt_diag_reset()
4178 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4183 ioc->name, diag0val, diag1val)); in mpt_diag_reset()
4189 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4191 while ((diag0val & MPI_DIAG_DRWE) == 0) { in mpt_diag_reset()
4212 ioc->name, diag0val); in mpt_diag_reset()
4215 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4217 diag0val &= ~MPI_DIAG_RESET_HISTORY; in mpt_diag_reset()
4218 CHIPREG_WRITE32(&ioc->chip->Diagnostic, diag0val); in mpt_diag_reset()
4219 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4220 if (diag0val & MPI_DIAG_RESET_HISTORY) { in mpt_diag_reset()
4231 diag0val = CHIPREG_READ32(&ioc->chip->Diagnostic); in mpt_diag_reset()
4232 if (diag0val & (MPI_DIAG_FLASH_BAD_SIG | MPI_DIAG_RESET_ADAPTER | MPI_DIAG_DISABLE_ARM)) { in mpt_diag_reset()
4234 ioc->name, diag0val); in mpt_diag_reset()
4242 ioc->name, diag0val, diag1val)); in mpt_diag_reset()