Searched refs:TPMBackend (Results 1 – 11 of 11) sorted by relevance
/openbmc/qemu/include/sysemu/ |
H A D | tpm_backend.h | 24 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 D | tpm_backend.c | 27 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 D | tpm_passthrough.c | 42 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 D | tpm_emulator.c | 69 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 D | tpm_util.c | 38 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 D | tpm.c | 25 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 D | tpm_prop.h | 31 DEFINE_PROP(_n, _s, _f, qdev_prop_tpm, TPMBackend *)
|
H A D | tpm_tis.h | 73 TPMBackend *be_driver;
|
H A D | tpm_crb.c | 38 TPMBackend *tpmbe;
|
H A D | tpm_spapr.c | 85 TPMBackend *be_driver;
|
/openbmc/qemu/hw/xen/ |
H A D | xen-pvh-common.c | 109 TPMBackend *be = qemu_find_tpm_be("tpm0"); in xen_enable_tpm()
|