Home
last modified time | relevance | path

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

/Linux-v5.15/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()
/Linux-v5.15/include/linux/
Dtpm_eventlog.h98 u32 pcr_idx; member
111 u32 pcr_idx; member
180 marker = marker + sizeof(event->pcr_idx) + sizeof(event->event_type) in __calc_tpm2_event_size()
205 if (event_header->pcr_idx != 0 || in __calc_tpm2_event_size()
Dtpm.h413 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
415 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
426 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read() argument
432 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend() argument