Lines Matching refs:sc_stat

550 	while (((sc->sc_stat = tpm_status(sc)) & mask) != mask && tmo--) {  in tpm_waitfor_poll()
571 sc->sc_stat = tpm_status(sc); in tpm_waitfor_int()
572 if ((sc->sc_stat & mask) == mask) in tpm_waitfor_int()
591 sc->sc_stat = tpm_status(sc); in tpm_waitfor_int()
592 if ((sc->sc_stat & mask) == mask) { in tpm_waitfor_int()
609 sc->sc_stat = tpm_status(sc); in tpm_waitfor_int()
612 sc->sc_stat, TPM_STS_BITS); in tpm_waitfor_int()
614 if ((sc->sc_stat & mask) == mask) in tpm_waitfor_int()
700 if ((b & sc->sc_stat) == TPM_STS_VALID) { in tpm_waitfor()
707 if ((sc->sc_stat & b) != b) { in tpm_waitfor()
710 sc->sc_stat, TPM_STS_BITS, b, TPM_STS_BITS); in tpm_waitfor()
739 sc->sc_stat = tpm_status(sc); in tpm_tis12_start()
740 if (sc->sc_stat & TPM_STS_CMD_READY) { in tpm_tis12_start()
742 printf("tpm_tis12_start: UIO_WRITE status %b\n", sc->sc_stat, in tpm_tis12_start()
835 sc->sc_stat = tpm_status(sc); in tpm_tis12_write()
836 if (!(sc->sc_stat & TPM_STS_DATA_EXPECT)) { in tpm_tis12_write()
839 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_write()
854 if ((sc->sc_stat & TPM_STS_DATA_EXPECT) != 0) { in tpm_tis12_write()
857 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_write()
881 sc->sc_stat = tpm_status(sc); in tpm_tis12_end()
882 if (!err && ((sc->sc_stat & TPM_STS_DATA_AVAIL) == TPM_STS_DATA_AVAIL)) { in tpm_tis12_end()
885 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_end()
898 sc->sc_stat = tpm_status(sc); in tpm_tis12_end()
899 if (!err && (sc->sc_stat & TPM_STS_DATA_EXPECT)) { in tpm_tis12_end()
902 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_end()