Lines Matching full:tpm
2 * passthrough TPM driver
33 #include "qapi/qapi-visit-tpm.h"
37 #define TYPE_TPM_PASSTHROUGH "tpm-passthrough"
95 "transmitting data to TPM"); in tpm_passthrough_unix_tx_bufs()
106 "reading data from TPM"); in tpm_passthrough_unix_tx_bufs()
112 "response packet from TPM"); in tpm_passthrough_unix_tx_bufs()
154 /* only a TPM 2.0 will support this */ in tpm_passthrough_reset_tpm_established_flag()
165 * commands on all TPM manufacturers' TPMs. in tpm_passthrough_cancel_cmd()
174 error_report("Canceling TPM command failed: %s", in tpm_passthrough_cancel_cmd()
178 error_report("Cannot cancel TPM command due to missing " in tpm_passthrough_cancel_cmd()
179 "TPM sysfs cancel entry"); in tpm_passthrough_cancel_cmd()
207 * in Documentation/ABI/stable/sysfs-class-tpm.
208 * From /dev/tpm0 create /sys/class/tpm/tpm0/device/cancel
220 error_report("tpm_passthrough: Could not open TPM cancel path: %s", in tpm_passthrough_open_sysfs_cancel()
228 error_report("tpm_passthrough: Bad TPM device path %s", in tpm_passthrough_open_sysfs_cancel()
234 if (snprintf(path, sizeof(path), "/sys/class/tpm/%s/device/cancel", in tpm_passthrough_open_sysfs_cancel()
246 error_report("tpm_passthrough: Could not guess TPM cancel path"); in tpm_passthrough_open_sysfs_cancel()
272 error_report("Cannot access TPM device using '%s': %s", in tpm_passthrough_handle_device_opts()
278 error_report("'%s' is not a TPM device.", in tpm_passthrough_handle_device_opts()
308 error_report("Requested buffer size of %zu is smaller than host TPM's " in tpm_passthrough_startup_tpm()
333 .help = "Sysfs file entry for canceling TPM commands",
338 .help = "Path to TPM device on the host",
373 tbc->desc = "Passthrough TPM backend driver"; in tpm_passthrough_class_init()