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
289 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev)
411 static inline bool tpm_is_firmware_upgrade(struct tpm_chip *chip) in tpm_is_firmware_upgrade()
423 extern int tpm_is_tpm2(struct tpm_chip *chip);
424 extern __must_check int tpm_try_get_ops(struct tpm_chip *chip);
425 extern void tpm_put_ops(struct tpm_chip *chip);
426 extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
428 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
430 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
432 extern int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen);
433 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
434 extern struct tpm_chip *tpm_default_chip(void);
435 void tpm2_flush_context(struct tpm_chip *chip, u32 handle);
437 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2()
441 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read()
447 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend()
453 static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send()
457 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random()
462 static inline struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()