Lines Matching refs:tpm_chip
27 struct tpm_chip;
39 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
40 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
41 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
42 void (*cancel) (struct tpm_chip *chip);
43 u8 (*status) (struct tpm_chip *chip);
44 bool (*update_timeouts)(struct tpm_chip *chip,
46 int (*go_idle)(struct tpm_chip *chip);
47 int (*cmd_ready)(struct tpm_chip *chip);
48 int (*request_locality)(struct tpm_chip *chip, int loc);
49 int (*relinquish_locality)(struct tpm_chip *chip, int loc);
50 void (*clk_enable)(struct tpm_chip *chip, bool value);
55 extern int tpm_is_tpm2(struct tpm_chip *chip);
56 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);
58 extern int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen);
59 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
60 extern int tpm_seal_trusted(struct tpm_chip *chip,
63 extern int tpm_unseal_trusted(struct tpm_chip *chip,
66 extern struct tpm_chip *tpm_default_chip(void);
68 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2()
72 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm_pcr_read()
76 static inline int tpm_pcr_extend(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_extend()
81 static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send()
85 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random()
90 static inline int tpm_seal_trusted(struct tpm_chip *chip, in tpm_seal_trusted()
96 static inline int tpm_unseal_trusted(struct tpm_chip *chip, in tpm_unseal_trusted()
102 static inline struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()