• Home
  • Raw
  • Download

Lines Matching refs:chip

88 	bool (*req_canceled)(struct tpm_chip *chip, u8 status);
89 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
90 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
91 void (*cancel) (struct tpm_chip *chip);
92 u8 (*status) (struct tpm_chip *chip);
93 void (*update_timeouts)(struct tpm_chip *chip,
95 void (*update_durations)(struct tpm_chip *chip,
97 int (*go_idle)(struct tpm_chip *chip);
98 int (*cmd_ready)(struct tpm_chip *chip);
99 int (*request_locality)(struct tpm_chip *chip, int loc);
100 int (*relinquish_locality)(struct tpm_chip *chip, int loc);
101 void (*clk_enable)(struct tpm_chip *chip, bool value);
132 struct tpm_chip *chip; member
426 void tpm_buf_append_handle(struct tpm_chip *chip, struct tpm_buf *buf, u32 handle);
431 static inline bool tpm_is_firmware_upgrade(struct tpm_chip *chip) in tpm_is_firmware_upgrade() argument
433 return chip->flags & TPM_CHIP_FLAG_FIRMWARE_UPGRADE; in tpm_is_firmware_upgrade()
461 extern int tpm_is_tpm2(struct tpm_chip *chip);
462 extern __must_check int tpm_try_get_ops(struct tpm_chip *chip);
463 extern void tpm_put_ops(struct tpm_chip *chip);
464 extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
466 extern int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
468 extern int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
470 extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
472 void tpm2_flush_context(struct tpm_chip *chip, u32 handle);
484 static inline int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2() argument
488 static inline int tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, in tpm_pcr_read() argument
494 static inline int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend() argument
500 static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max) in tpm_get_random() argument
515 static inline struct tpm2_auth *tpm2_chip_auth(struct tpm_chip *chip) in tpm2_chip_auth() argument
518 return chip->auth; in tpm2_chip_auth()
524 void tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
526 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
529 void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf,
531 static inline void tpm_buf_append_hmac_session_opt(struct tpm_chip *chip, in tpm_buf_append_hmac_session_opt() argument
540 if (tpm2_chip_auth(chip)) { in tpm_buf_append_hmac_session_opt()
541 tpm_buf_append_hmac_session(chip, buf, attributes, passphrase, passphraselen); in tpm_buf_append_hmac_session_opt()
557 int tpm2_start_auth_session(struct tpm_chip *chip);
558 void tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf);
559 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
561 void tpm2_end_auth_session(struct tpm_chip *chip);
565 static inline int tpm2_start_auth_session(struct tpm_chip *chip) in tpm2_start_auth_session() argument
569 static inline void tpm2_end_auth_session(struct tpm_chip *chip) in tpm2_end_auth_session() argument
572 static inline void tpm_buf_fill_hmac_session(struct tpm_chip *chip, in tpm_buf_fill_hmac_session() argument
576 static inline int tpm_buf_check_hmac_response(struct tpm_chip *chip, in tpm_buf_check_hmac_response() argument