Home
last modified time | relevance | path

Searched refs:pcr_idx (Results 1 – 4 of 4) sorted by relevance

/drivers/char/tpm/
Dtpm-interface.c284 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_read() argument
294 rc = tpm2_pcr_read(chip, pcr_idx, digest, NULL); in tpm_pcr_read()
296 rc = tpm1_pcr_read(chip, pcr_idx, digest->digest); in tpm_pcr_read()
314 int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend() argument
332 rc = tpm2_pcr_extend(chip, pcr_idx, digests); in tpm_pcr_extend()
336 rc = tpm1_pcr_extend(chip, pcr_idx, digests[0].digest, in tpm_pcr_extend()
Dtpm.h175 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash,
177 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf);
215 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
217 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
Dtpm2-cmd.c161 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_read() argument
172 if (pcr_idx >= TPM2_PLATFORM_PCR) in tpm2_pcr_read()
190 pcr_select[pcr_idx >> 3] = 1 << (pcr_idx & 0x7); in tpm2_pcr_read()
235 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_extend() argument
247 tpm_buf_append_u32(&buf, pcr_idx); in tpm2_pcr_extend()
Dtpm1-cmd.c463 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, in tpm1_pcr_extend() argument
473 tpm_buf_append_u32(&buf, pcr_idx); in tpm1_pcr_extend()
584 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf) in tpm1_pcr_read() argument
593 tpm_buf_append_u32(&buf, pcr_idx); in tpm1_pcr_read()