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
276 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev)
400 extern int tpm_is_tpm2(struct tpm_chip *chip);
401 extern __must_check int tpm_try_get_ops(struct tpm_chip *chip);
402 extern void tpm_put_ops(struct tpm_chip *chip);
403 extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
405 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
407 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
409 extern int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen);
410 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
411 extern struct tpm_chip *tpm_default_chip(void);
412 void tpm2_flush_context(struct tpm_chip *chip, u32 handle);
414 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2()
418 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read()
424 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend()
430 static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send()
434 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random()
439 static inline struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()