Lines Matching refs:pcr_index
241 static int sandbox_tpm2_extend(struct udevice *dev, int pcr_index, in sandbox_tpm2_extend() argument
249 if (tpm->pcr[pcr_index][i] || extension[i]) in sandbox_tpm2_extend()
252 memcpy(tpm->pcr[pcr_index], sandbox_extended_once_pcr, in sandbox_tpm2_extend()
254 tpm->pcr_extensions[pcr_index]++; in sandbox_tpm2_extend()
276 int pcr_index = 0; in sandbox_tpm2_xfer() local
495 pcr_index = i; in sandbox_tpm2_xfer()
509 put_unaligned_be32(tpm->pcr_extensions[pcr_index], recv); in sandbox_tpm2_xfer()
513 memcpy(recv, tpm->pcr[pcr_index], TPM2_DIGEST_LEN); in sandbox_tpm2_xfer()
527 pcr_index = get_unaligned_be32(sendbuf + sizeof(tag) + in sandbox_tpm2_xfer()
530 if (pcr_index > SANDBOX_TPM_PCR_NB) { in sandbox_tpm2_xfer()
555 rc = sandbox_tpm2_extend(dev, pcr_index, sent); in sandbox_tpm2_xfer()