Home
last modified time | relevance | path

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

/drivers/char/tpm/
Dtpm-interface.c283 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_read() argument
293 rc = tpm2_pcr_read(chip, pcr_idx, digest, NULL); in tpm_pcr_read()
295 rc = tpm1_pcr_read(chip, pcr_idx, digest->digest); in tpm_pcr_read()
313 int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend() argument
331 rc = tpm2_pcr_extend(chip, pcr_idx, digests); in tpm_pcr_extend()
335 rc = tpm1_pcr_extend(chip, pcr_idx, digests[0].digest, in tpm_pcr_extend()
Dtpm.h391 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash,
393 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf);
438 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
440 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
Dtpm2-cmd.c175 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_read() argument
186 if (pcr_idx >= TPM2_PLATFORM_PCR) in tpm2_pcr_read()
204 pcr_select[pcr_idx >> 3] = 1 << (pcr_idx & 0x7); in tpm2_pcr_read()
249 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_extend() argument
261 tpm_buf_append_u32(&buf, pcr_idx); in tpm2_pcr_extend()
Dtpm1-cmd.c448 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, in tpm1_pcr_extend() argument
458 tpm_buf_append_u32(&buf, pcr_idx); in tpm1_pcr_extend()
569 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf) in tpm1_pcr_read() argument
578 tpm_buf_append_u32(&buf, pcr_idx); in tpm1_pcr_read()