Home
last modified time | relevance | path

Searched refs:tpm (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/uts/common/io/tpm/
H A Dtpm.c126 static int itpm_command(tpm_state_t *tpm, uint8_t *buf, size_t bufsiz);
127 static int tpm_get_timeouts(tpm_state_t *tpm);
128 static int tpm_get_duration(tpm_state_t *tpm);
129 static int tpm_get_version(tpm_state_t *tpm);
130 static int tpm_continue_selftest(tpm_state_t *tpm);
303 #define TPM_EXCLUSIVE_LOCK(tpm) { \ argument
304 mutex_enter(&tpm->pm_mutex); \
305 while (tpm->suspended) \
306 cv_wait(&tpm->suspend_cv, &tpm->pm_mutex); \
307 mutex_exit(&tpm->pm_mutex); }
[all …]
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dtpm_emul_passthru.c45 struct tpm_passthru *tpm; in tpm_passthru_init()
48 tpm = calloc(1, sizeof(struct tpm_passthru)); in tpm_passthru_init()
49 if (tpm == NULL) { in tpm_passthru_init()
55 tpm->fd = open(path, O_RDWR); in tpm_passthru_init()
56 if (tpm->fd < 0) { in tpm_passthru_init()
61 *sc = tpm; in tpm_passthru_init()
71 struct tpm_passthru *tpm; in tpm_passthru_execute_cmd() local
79 tpm = sc; in tpm_passthru_execute_cmd()
81 len = write(tpm->fd, cmd, cmd_size); in tpm_passthru_execute_cmd()
88 len = read(tpm->fd, rsp, rsp_size); in tpm_passthru_execute_cmd()
[all …]
H A Dtpm_emul_swtpm.c42 struct tpm_swtpm *tpm; in tpm_swtpm_init() local
46 tpm = calloc(1, sizeof (struct tpm_swtpm)); in tpm_swtpm_init()
47 if (tpm == NULL) { in tpm_swtpm_init()
58 tpm->fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in tpm_swtpm_init()
59 if (tpm->fd < 0) { in tpm_swtpm_init()
68 if (connect(tpm->fd, (struct sockaddr *)&tpm_addr, sizeof (tpm_addr)) == in tpm_swtpm_init()
75 *sc = tpm; in tpm_swtpm_init()
84 struct tpm_swtpm *tpm; in tpm_swtpm_execute_cmd() local
92 tpm = sc; in tpm_swtpm_execute_cmd()
95 len = send(tpm->fd, cmd, cmd_size, MSG_NOSIGNAL|MSG_DONTWAIT); in tpm_swtpm_execute_cmd()
[all …]
H A Dtpm_device.c50 const struct tpm_device *const tpm = acpi_device_get_softc(dev); in tpm_build_acpi_table() local
52 if (tpm->intf->build_acpi_table == NULL) { in tpm_build_acpi_table()
56 return (tpm->intf->build_acpi_table(tpm->intf_sc, tpm->vm_ctx)); in tpm_build_acpi_table()
64 const struct tpm_device *const tpm = acpi_device_get_softc(dev); in tpm_write_dsdt() local
65 const struct tpm_ppi *const ppi = tpm->ppi; in tpm_write_dsdt()
74 error = ppi->write_dsdt_regions(tpm->ppi_sc); in tpm_write_dsdt()
93 error = ppi->write_dsdt_dsm(tpm->ppi_sc); in tpm_write_dsdt()
/illumos-gate/usr/src/pkg/manifests/
H A Ddriver-crypto-tpm.p5m32 set name=pkg.fmri value=pkg:/driver/crypto/tpm@$(PKGVERS)
41 $(i386_ONLY)file path=kernel/drv/$(ARCH64)/tpm group=sys
42 $(i386_ONLY)driver name=tpm perms="* 0600 root sys" \
43 devlink=type=ddi_pseudo;name=tpm\t\D
/illumos-gate/usr/src/uts/intel/tpm/
H A DMakefile32 MODULE = tpm
/illumos-gate/usr/src/test/crypto-tests/runfiles/
H A Ddefault.run23 # Unfortunately, if the tpm based PKCS11 library is present, libtspi will make
/illumos-gate/usr/src/uts/intel/
H A DMakefile.intel338 DRV_KMODS += tpm
/illumos-gate/usr/src/uts/common/
H A DMakefile.rules1719 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/tpm/%.c
1723 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/tpm/%.S
H A DMakefile.files2231 TPM_OBJS = tpm.o tpm_hcall.o