Lines Matching refs:sc_stat
549 while (((sc->sc_stat = tpm_status(sc)) & mask) != mask && tmo--) { in tpm_waitfor_poll()
570 sc->sc_stat = tpm_status(sc); in tpm_waitfor_int()
571 if ((sc->sc_stat & mask) == mask) in tpm_waitfor_int()
590 sc->sc_stat = tpm_status(sc); in tpm_waitfor_int()
591 if ((sc->sc_stat & mask) == mask) { in tpm_waitfor_int()
608 sc->sc_stat = tpm_status(sc); in tpm_waitfor_int()
611 sc->sc_stat, TPM_STS_BITS); in tpm_waitfor_int()
613 if ((sc->sc_stat & mask) == mask) in tpm_waitfor_int()
699 if ((b & sc->sc_stat) == TPM_STS_VALID) { in tpm_waitfor()
706 if ((sc->sc_stat & b) != b) { in tpm_waitfor()
709 sc->sc_stat, TPM_STS_BITS, b, TPM_STS_BITS); in tpm_waitfor()
738 sc->sc_stat = tpm_status(sc); in tpm_tis12_start()
739 if (sc->sc_stat & TPM_STS_CMD_READY) { in tpm_tis12_start()
741 printf("tpm_tis12_start: UIO_WRITE status %b\n", sc->sc_stat, in tpm_tis12_start()
834 sc->sc_stat = tpm_status(sc); in tpm_tis12_write()
835 if (!(sc->sc_stat & TPM_STS_DATA_EXPECT)) { in tpm_tis12_write()
838 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_write()
853 if ((sc->sc_stat & TPM_STS_DATA_EXPECT) != 0) { in tpm_tis12_write()
856 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_write()
880 sc->sc_stat = tpm_status(sc); in tpm_tis12_end()
881 if (!err && ((sc->sc_stat & TPM_STS_DATA_AVAIL) == TPM_STS_DATA_AVAIL)) { in tpm_tis12_end()
884 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_end()
897 sc->sc_stat = tpm_status(sc); in tpm_tis12_end()
898 if (!err && (sc->sc_stat & TPM_STS_DATA_EXPECT)) { in tpm_tis12_end()
901 sc->sc_stat, TPM_STS_BITS); in tpm_tis12_end()