Lines Matching refs:tpm_chip
125 struct tpm_chip;
165 struct tpm_chip { struct
192 #define to_tpm_chip(n) container_of(n, struct tpm_chip, vendor) argument
194 static inline void tpm_chip_put(struct tpm_chip *chip) in tpm_chip_put()
397 ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
399 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, void *cmd, int len,
401 extern int tpm_get_timeouts(struct tpm_chip *);
402 extern void tpm_gen_interrupt(struct tpm_chip *);
403 extern int tpm_do_selftest(struct tpm_chip *);
404 extern unsigned long tpm_calc_ordinal_duration(struct tpm_chip *, u32);
407 extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long,
410 struct tpm_chip *tpm_chip_find_get(int chip_num);
411 extern struct tpm_chip *tpmm_chip_alloc(struct device *dev,
413 extern int tpm_chip_register(struct tpm_chip *chip);
414 extern void tpm_chip_unregister(struct tpm_chip *chip);
416 int tpm_sysfs_add_device(struct tpm_chip *chip);
417 void tpm_sysfs_del_device(struct tpm_chip *chip);
419 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
422 extern int tpm_add_ppi(struct tpm_chip *chip);
423 extern void tpm_remove_ppi(struct tpm_chip *chip);
425 static inline int tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
430 static inline void tpm_remove_ppi(struct tpm_chip *chip) in tpm_remove_ppi()
435 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
436 int tpm2_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash);
437 int tpm2_get_random(struct tpm_chip *chip, u8 *out, size_t max);
438 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id,
441 extern int tpm2_startup(struct tpm_chip *chip, u16 startup_type);
442 extern void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type);
443 extern unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *, u32);
444 extern int tpm2_do_selftest(struct tpm_chip *chip);
445 extern int tpm2_gen_interrupt(struct tpm_chip *chip);
446 extern int tpm2_probe(struct tpm_chip *chip);