Lines Matching refs:tpm_chip

30 struct tpm_chip;
71 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
72 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
73 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
74 void (*cancel) (struct tpm_chip *chip);
75 u8 (*status) (struct tpm_chip *chip);
76 void (*update_timeouts)(struct tpm_chip *chip,
78 void (*update_durations)(struct tpm_chip *chip,
80 int (*go_idle)(struct tpm_chip *chip);
81 int (*cmd_ready)(struct tpm_chip *chip);
82 int (*request_locality)(struct tpm_chip *chip, int loc);
83 int (*relinquish_locality)(struct tpm_chip *chip, int loc);
84 void (*clk_enable)(struct tpm_chip *chip, bool value);
115 struct tpm_chip *chip;
119 struct tpm_chip { struct
282 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev)
408 extern int tpm_is_tpm2(struct tpm_chip *chip);
409 extern __must_check int tpm_try_get_ops(struct tpm_chip *chip);
410 extern void tpm_put_ops(struct tpm_chip *chip);
411 extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
413 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
415 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
417 extern int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen);
418 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
419 extern struct tpm_chip *tpm_default_chip(void);
420 void tpm2_flush_context(struct tpm_chip *chip, u32 handle);
422 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2()
426 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read()
432 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend()
438 static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send()
442 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random()
447 static inline struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()