Lines Matching refs:tpm_chip
30 struct tpm_chip;
64 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
65 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
66 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
67 void (*cancel) (struct tpm_chip *chip);
68 u8 (*status) (struct tpm_chip *chip);
69 void (*update_timeouts)(struct tpm_chip *chip,
71 void (*update_durations)(struct tpm_chip *chip,
73 int (*go_idle)(struct tpm_chip *chip);
74 int (*cmd_ready)(struct tpm_chip *chip);
75 int (*request_locality)(struct tpm_chip *chip, int loc);
76 int (*relinquish_locality)(struct tpm_chip *chip, int loc);
77 void (*clk_enable)(struct tpm_chip *chip, bool value);
108 struct tpm_chip *chip;
112 struct tpm_chip { struct
275 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev)
399 extern int tpm_is_tpm2(struct tpm_chip *chip);
400 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
402 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
404 extern int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen);
405 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
406 extern struct tpm_chip *tpm_default_chip(void);
407 void tpm2_flush_context(struct tpm_chip *chip, u32 handle);
409 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2()
414 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read()
420 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend()
426 static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send()
430 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random()
435 static inline struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()