Home
last modified time | relevance | path

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

/Linux-v4.19/include/linux/
Dtpm.h56 extern int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
57 extern int tpm_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash);
72 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm_pcr_read() argument
76 static inline int tpm_pcr_extend(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_extend() argument
Dtpm_eventlog.h99 u32 pcr_idx; member
117 u32 pcr_idx; member
/Linux-v4.19/drivers/char/tpm/
Dtpm-interface.c933 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm_pcr_read_dev() argument
939 cmd.params.pcrread_in.pcr_idx = cpu_to_be32(pcr_idx); in tpm_pcr_read_dev()
983 int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm_pcr_read() argument
991 rc = tpm2_pcr_read(chip, pcr_idx, res_buf); in tpm_pcr_read()
993 rc = tpm_pcr_read_dev(chip, pcr_idx, res_buf); in tpm_pcr_read()
1008 static int tpm1_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash, in tpm1_pcr_extend() argument
1018 tpm_buf_append_u32(&buf, pcr_idx); in tpm1_pcr_extend()
1039 int tpm_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash) in tpm_pcr_extend() argument
1060 rc = tpm2_pcr_extend(chip, pcr_idx, count, digest_list); in tpm_pcr_extend()
1065 rc = tpm1_pcr_extend(chip, pcr_idx, hash, in tpm_pcr_extend()
Dtpm.h381 __be32 pcr_idx; member
563 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
578 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
579 int tpm2_pcr_extend(struct tpm_chip *chip, int pcr_idx, u32 count,
Dtpm2-cmd.c186 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm2_pcr_read() argument
193 if (pcr_idx >= TPM2_PLATFORM_PCR) in tpm2_pcr_read()
200 pcr_select[pcr_idx >> 3] = 1 << (pcr_idx & 0x7); in tpm2_pcr_read()
236 int tpm2_pcr_extend(struct tpm_chip *chip, int pcr_idx, u32 count, in tpm2_pcr_extend() argument
252 tpm_buf_append_u32(&buf, pcr_idx); in tpm2_pcr_extend()
/Linux-v4.19/drivers/char/tpm/eventlog/
Dtpm2.c55 marker = marker + sizeof(event->pcr_idx) + sizeof(event->event_type) in calc_tpm2_event_size()