Lines Matching refs:tpm_chip

167 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev)
380 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz);
381 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
383 int tpm_get_timeouts(struct tpm_chip *);
384 int tpm_auto_startup(struct tpm_chip *chip);
386 int tpm1_pm_suspend(struct tpm_chip *chip, u32 tpm_suspend_pcr);
387 int tpm1_auto_startup(struct tpm_chip *chip);
388 int tpm1_do_selftest(struct tpm_chip *chip);
389 int tpm1_get_timeouts(struct tpm_chip *chip);
390 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
391 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash,
393 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf);
394 ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
396 int tpm1_get_random(struct tpm_chip *chip, u8 *out, size_t max);
397 int tpm1_get_pcr_allocation(struct tpm_chip *chip);
398 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
408 int tpm_chip_start(struct tpm_chip *chip);
409 void tpm_chip_stop(struct tpm_chip *chip);
410 struct tpm_chip *tpm_find_get_ops(struct tpm_chip *chip);
411 __must_check int tpm_try_get_ops(struct tpm_chip *chip);
412 void tpm_put_ops(struct tpm_chip *chip);
414 struct tpm_chip *tpm_chip_alloc(struct device *dev,
416 struct tpm_chip *tpmm_chip_alloc(struct device *pdev,
418 int tpm_chip_register(struct tpm_chip *chip);
419 void tpm_chip_unregister(struct tpm_chip *chip);
421 void tpm_sysfs_add_device(struct tpm_chip *chip);
425 extern void tpm_add_ppi(struct tpm_chip *chip);
427 static inline void tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
437 int tpm2_get_timeouts(struct tpm_chip *chip);
438 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
440 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
442 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max);
443 void tpm2_flush_context(struct tpm_chip *chip, u32 handle);
444 int tpm2_seal_trusted(struct tpm_chip *chip,
447 int tpm2_unseal_trusted(struct tpm_chip *chip,
450 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id,
453 ssize_t tpm2_get_pcr_allocation(struct tpm_chip *chip);
454 int tpm2_auto_startup(struct tpm_chip *chip);
455 void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type);
456 unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
457 int tpm2_probe(struct tpm_chip *chip);
458 int tpm2_find_cc(struct tpm_chip *chip, u32 cc);
460 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space);
461 void tpm2_flush_space(struct tpm_chip *chip);
462 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd,
464 int tpm2_commit_space(struct tpm_chip *chip, struct tpm_space *space, void *buf,
467 int tpm_bios_log_setup(struct tpm_chip *chip);
468 void tpm_bios_log_teardown(struct tpm_chip *chip);