Lines Matching refs:tpm_chip

207 	struct tpm_chip *chip;
211 struct tpm_chip { struct
265 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev) argument
528 ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space,
530 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space,
534 int tpm_startup(struct tpm_chip *chip);
535 ssize_t tpm_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
537 int tpm_get_timeouts(struct tpm_chip *);
538 int tpm1_auto_startup(struct tpm_chip *chip);
539 int tpm_do_selftest(struct tpm_chip *chip);
540 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
550 struct tpm_chip *tpm_find_get_ops(struct tpm_chip *chip);
551 __must_check int tpm_try_get_ops(struct tpm_chip *chip);
552 void tpm_put_ops(struct tpm_chip *chip);
554 struct tpm_chip *tpm_chip_alloc(struct device *dev,
556 struct tpm_chip *tpmm_chip_alloc(struct device *pdev,
558 int tpm_chip_register(struct tpm_chip *chip);
559 void tpm_chip_unregister(struct tpm_chip *chip);
561 void tpm_sysfs_add_device(struct tpm_chip *chip);
563 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
566 extern void tpm_add_ppi(struct tpm_chip *chip);
568 static inline void tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
578 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
579 int tpm2_pcr_extend(struct tpm_chip *chip, int pcr_idx, u32 count,
581 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max);
582 void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle,
584 int tpm2_seal_trusted(struct tpm_chip *chip,
587 int tpm2_unseal_trusted(struct tpm_chip *chip,
590 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id,
593 int tpm2_auto_startup(struct tpm_chip *chip);
594 void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type);
595 unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
596 int tpm2_probe(struct tpm_chip *chip);
597 int tpm2_find_cc(struct tpm_chip *chip, u32 cc);
599 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space);
600 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u32 cc,
602 int tpm2_commit_space(struct tpm_chip *chip, struct tpm_space *space,
605 int tpm_bios_log_setup(struct tpm_chip *chip);
606 void tpm_bios_log_teardown(struct tpm_chip *chip);