Home
last modified time | relevance | path

Searched refs:TPMBackend (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/include/sysemu/
H A Dtpm_backend.h24 OBJECT_DECLARE_TYPE(TPMBackend, TPMBackendClass,
37 struct TPMBackend { struct
49 QLIST_ENTRY(TPMBackend) list; argument
60 TPMBackend *(*create)(QemuOpts *opts);
63 int (*startup_tpm)(TPMBackend *t, size_t buffersize);
66 void (*reset)(TPMBackend *t);
68 void (*cancel_cmd)(TPMBackend *t);
71 bool (*get_tpm_established_flag)(TPMBackend *t);
74 int (*reset_tpm_established_flag)(TPMBackend *t, uint8_t locty);
76 TPMVersion (*get_tpm_version)(TPMBackend *t);
[all …]
/openbmc/qemu/backends/tpm/
H A Dtpm_backend.c27 TPMBackend *s = TPM_BACKEND(opaque); in tpm_backend_request_completed()
39 TPMBackend *s = TPM_BACKEND(data); in tpm_backend_worker_thread()
52 void tpm_backend_finish_sync(TPMBackend *s) in tpm_backend_finish_sync()
59 enum TpmType tpm_backend_get_type(TPMBackend *s) in tpm_backend_get_type()
66 int tpm_backend_init(TPMBackend *s, TPMIf *tpmif, Error **errp) in tpm_backend_init()
81 int tpm_backend_startup_tpm(TPMBackend *s, size_t buffersize) in tpm_backend_startup_tpm()
96 bool tpm_backend_had_startup_error(TPMBackend *s) in tpm_backend_had_startup_error()
101 void tpm_backend_deliver_request(TPMBackend *s, TPMBackendCmd *cmd) in tpm_backend_deliver_request()
114 void tpm_backend_reset(TPMBackend *s) in tpm_backend_reset()
127 void tpm_backend_cancel_cmd(TPMBackend *s) in tpm_backend_cancel_cmd()
[all …]
H A Dtpm_passthrough.c42 TPMBackend parent;
60 static void tpm_passthrough_cancel_cmd(TPMBackend *tb);
127 static void tpm_passthrough_handle_request(TPMBackend *tb, TPMBackendCmd *cmd, in tpm_passthrough_handle_request()
139 static void tpm_passthrough_reset(TPMBackend *tb) in tpm_passthrough_reset()
146 static bool tpm_passthrough_get_tpm_established_flag(TPMBackend *tb) in tpm_passthrough_get_tpm_established_flag()
151 static int tpm_passthrough_reset_tpm_established_flag(TPMBackend *tb, in tpm_passthrough_reset_tpm_established_flag()
158 static void tpm_passthrough_cancel_cmd(TPMBackend *tb) in tpm_passthrough_cancel_cmd()
184 static TPMVersion tpm_passthrough_get_tpm_version(TPMBackend *tb) in tpm_passthrough_get_tpm_version()
191 static size_t tpm_passthrough_get_buffer_size(TPMBackend *tb) in tpm_passthrough_get_buffer_size()
291 static TPMBackend *tpm_passthrough_create(QemuOpts *opts) in tpm_passthrough_create()
[all …]
H A Dtpm_emulator.c69 TPMBackend parent;
245 static void tpm_emulator_handle_request(TPMBackend *tb, TPMBackendCmd *cmd, in tpm_emulator_handle_request()
311 static int tpm_emulator_stop_tpm(TPMBackend *tb) in tpm_emulator_stop_tpm()
363 static int tpm_emulator_set_buffer_size(TPMBackend *tb, in tpm_emulator_set_buffer_size()
404 static int tpm_emulator_startup_tpm_resume(TPMBackend *tb, size_t buffersize, in tpm_emulator_startup_tpm_resume()
444 static int tpm_emulator_startup_tpm(TPMBackend *tb, size_t buffersize) in tpm_emulator_startup_tpm()
458 static bool tpm_emulator_get_tpm_established_flag(TPMBackend *tb) in tpm_emulator_get_tpm_established_flag()
482 static int tpm_emulator_reset_tpm_established_flag(TPMBackend *tb, in tpm_emulator_reset_tpm_established_flag()
517 static void tpm_emulator_cancel_cmd(TPMBackend *tb) in tpm_emulator_cancel_cmd()
538 static TPMVersion tpm_emulator_get_tpm_version(TPMBackend *tb) in tpm_emulator_get_tpm_version()
[all …]
H A Dtpm_util.c38 TPMBackend **be = object_field_prop_ptr(obj, opaque); in get_tpm()
50 TPMBackend *s, **be = object_field_prop_ptr(obj, prop); in set_tpm()
70 TPMBackend **be = object_field_prop_ptr(obj, prop); in release_tpm()
/openbmc/qemu/system/
H A Dtpm.c25 static QLIST_HEAD(, TPMBackend) tpm_backends =
72 TPMBackend *qemu_find_tpm_be(const char *id) in qemu_find_tpm_be()
74 TPMBackend *drv; in qemu_find_tpm_be()
98 TPMBackend *drv; in tpm_init_tpmdev()
152 TPMBackend *drv, *next; in tpm_cleanup()
198 TPMBackend *drv; in qmp_query_tpm()
/openbmc/qemu/hw/tpm/
H A Dtpm_prop.h31 DEFINE_PROP(_n, _s, _f, qdev_prop_tpm, TPMBackend *)
H A Dtpm_tis.h73 TPMBackend *be_driver;
H A Dtpm_crb.c38 TPMBackend *tpmbe;
H A Dtpm_spapr.c85 TPMBackend *be_driver;
/openbmc/qemu/hw/xen/
H A Dxen-pvh-common.c109 TPMBackend *be = qemu_find_tpm_be("tpm0"); in xen_enable_tpm()