Home
last modified time | relevance | path

Searched refs:tpm_fd (Results 1 – 4 of 4) sorted by relevance

/qemu/backends/tpm/
H A Dtpm_passthrough.c46 int tpm_fd; member
91 ret = qemu_write_full(tpm_pt->tpm_fd, in, in_len); in tpm_passthrough_unix_tx_bufs()
102 ret = tpm_passthrough_unix_read(tpm_pt->tpm_fd, out, out_len); in tpm_passthrough_unix_tx_bufs()
196 ret = tpm_util_get_buffer_size(tpm_pt->tpm_fd, tpm_pt->tpm_version, in tpm_passthrough_get_buffer_size()
270 tpm_pt->tpm_fd = qemu_open_old(tpm_pt->tpm_dev, O_RDWR); in tpm_passthrough_handle_device_opts()
271 if (tpm_pt->tpm_fd < 0) { in tpm_passthrough_handle_device_opts()
277 if (tpm_util_test_tpmdev(tpm_pt->tpm_fd, &tpm_pt->tpm_version)) { in tpm_passthrough_handle_device_opts()
348 tpm_pt->tpm_fd = -1; in tpm_passthrough_inst_init()
358 if (tpm_pt->tpm_fd >= 0) { in tpm_passthrough_inst_finalize()
359 qemu_close(tpm_pt->tpm_fd); in tpm_passthrough_inst_finalize()
H A Dtpm_util.c172 int tpm_util_test_tpmdev(int tpm_fd, TPMVersion *tpm_version) in tpm_util_test_tpmdev() argument
198 ret = tpm_util_test(tpm_fd, &test_req_tpm2, in tpm_util_test_tpmdev()
207 ret = tpm_util_test(tpm_fd, &test_req, in tpm_util_test_tpmdev()
220 int tpm_util_get_buffer_size(int tpm_fd, TPMVersion tpm_version, in tpm_util_get_buffer_size() argument
248 ret = tpm_util_request(tpm_fd, &tpm_get_buffer_size, in tpm_util_get_buffer_size()
297 ret = tpm_util_request(tpm_fd, &tpm2_get_buffer_size, in tpm_util_get_buffer_size()
H A Dtpm_int.h78 int tpm_util_get_buffer_size(int tpm_fd, TPMVersion tpm_version,
/qemu/include/sysemu/
H A Dtpm_util.h32 int tpm_util_test_tpmdev(int tpm_fd, TPMVersion *tpm_version);