Lines Matching refs:tpm_chip
29 struct tpm_chip;
63 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
64 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
65 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
66 void (*cancel) (struct tpm_chip *chip);
67 u8 (*status) (struct tpm_chip *chip);
68 void (*update_timeouts)(struct tpm_chip *chip,
70 int (*go_idle)(struct tpm_chip *chip);
71 int (*cmd_ready)(struct tpm_chip *chip);
72 int (*request_locality)(struct tpm_chip *chip, int loc);
73 int (*relinquish_locality)(struct tpm_chip *chip, int loc);
74 void (*clk_enable)(struct tpm_chip *chip, bool value);
104 struct tpm_chip *chip;
108 struct tpm_chip { struct
166 extern int tpm_is_tpm2(struct tpm_chip *chip); argument
167 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
169 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
171 extern int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen);
172 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
173 extern int tpm_seal_trusted(struct tpm_chip *chip,
176 extern int tpm_unseal_trusted(struct tpm_chip *chip,
179 extern struct tpm_chip *tpm_default_chip(void);
181 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2()
186 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read()
192 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend()
198 static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send()
202 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random()
207 static inline int tpm_seal_trusted(struct tpm_chip *chip, in tpm_seal_trusted()
213 static inline int tpm_unseal_trusted(struct tpm_chip *chip, in tpm_unseal_trusted()
219 static inline struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()