Lines Matching refs:hierarchy
70 enum tpm2_hierarchy *hierarchy) in sandbox_tpm2_check_session() argument
112 *hierarchy = TPM2_HIERARCHY_LOCKOUT; in sandbox_tpm2_check_session()
119 *hierarchy = TPM2_HIERARCHY_ENDORSEMENT; in sandbox_tpm2_check_session()
122 *hierarchy = TPM2_HIERARCHY_PLATFORM; in sandbox_tpm2_check_session()
165 if (!pw_sz && !tpm->pw_sz[*hierarchy]) in sandbox_tpm2_check_session()
179 if (pw_sz != tpm->pw_sz[*hierarchy] || in sandbox_tpm2_check_session()
180 strncmp(pw, tpm->pw[*hierarchy], tpm->pw_sz[*hierarchy])) { in sandbox_tpm2_check_session()
263 enum tpm2_hierarchy hierarchy = 0; in sandbox_tpm2_xfer() local
302 rc = sandbox_tpm2_check_session(dev, command, tag, &sent, &hierarchy); in sandbox_tpm2_xfer()
343 tpm->pw_sz[hierarchy] = 0; in sandbox_tpm2_xfer()
346 if (hierarchy == TPM2_HIERARCHY_PLATFORM) in sandbox_tpm2_xfer()
370 tpm->pw_sz[hierarchy] = new_pw_sz; in sandbox_tpm2_xfer()
371 memcpy(tpm->pw[hierarchy], sent, new_pw_sz); in sandbox_tpm2_xfer()