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

/linux-master/drivers/char/tpm/
H A Dtpm-interface.c279 * @pcr_idx: the PCR to be retrieved
284 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx, argument
294 rc = tpm2_pcr_read(chip, pcr_idx, digest, NULL);
296 rc = tpm1_pcr_read(chip, pcr_idx, digest->digest);
306 * @pcr_idx: the PCR to be retrieved
314 int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, argument
332 rc = tpm2_pcr_extend(chip, pcr_idx, digests);
336 rc = tpm1_pcr_extend(chip, pcr_idx, digests[0].digest,
H A Dtpm.h249 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash,
251 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf);
291 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
293 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
H A Dtpm2-cmd.c155 * @pcr_idx: index of the PCR to read.
161 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx, argument
172 if (pcr_idx >= TPM2_PLATFORM_PCR)
190 pcr_select[pcr_idx >> 3] = 1 << (pcr_idx & 0x7);
230 * @pcr_idx: index of the PCR.
235 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, argument
247 tpm_buf_append_u32(&buf, pcr_idx);
H A Dtpm1-cmd.c463 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, argument
473 tpm_buf_append_u32(&buf, pcr_idx);
584 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf) argument
593 tpm_buf_append_u32(&buf, pcr_idx);
/linux-master/include/linux/
H A Dtpm_eventlog.h98 u32 pcr_idx; member in struct:tcg_pcr_event
111 u32 pcr_idx; member in struct:tcg_pcr_event2_head
180 marker = marker + sizeof(event->pcr_idx) + sizeof(event->event_type)
205 if (event_header->pcr_idx != 0 ||
H A Dtpm.h428 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
430 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
441 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, argument
447 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, argument

Completed in 134 milliseconds