Lines Matching refs:tpm_chip
134 struct tpm_chip;
173 struct tpm_chip { struct
202 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev) argument
204 static inline void tpm_chip_put(struct tpm_chip *chip) in tpm_chip_put()
502 ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
504 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, void *cmd, int len,
506 extern int tpm_get_timeouts(struct tpm_chip *);
507 extern void tpm_gen_interrupt(struct tpm_chip *);
508 extern int tpm_do_selftest(struct tpm_chip *);
509 extern unsigned long tpm_calc_ordinal_duration(struct tpm_chip *, u32);
512 extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long,
515 struct tpm_chip *tpm_chip_find_get(int chip_num);
516 extern struct tpm_chip *tpmm_chip_alloc(struct device *dev,
518 extern int tpm_chip_register(struct tpm_chip *chip);
519 extern void tpm_chip_unregister(struct tpm_chip *chip);
521 int tpm_sysfs_add_device(struct tpm_chip *chip);
522 void tpm_sysfs_del_device(struct tpm_chip *chip);
524 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
527 extern void tpm_add_ppi(struct tpm_chip *chip);
529 static inline void tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
534 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
535 int tpm2_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash);
536 int tpm2_get_random(struct tpm_chip *chip, u8 *out, size_t max);
537 int tpm2_seal_trusted(struct tpm_chip *chip,
540 int tpm2_unseal_trusted(struct tpm_chip *chip,
543 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id,
546 extern int tpm2_startup(struct tpm_chip *chip, u16 startup_type);
547 extern void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type);
548 extern unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *, u32);
549 extern int tpm2_do_selftest(struct tpm_chip *chip);
550 extern int tpm2_gen_interrupt(struct tpm_chip *chip);
551 extern int tpm2_probe(struct tpm_chip *chip);