Lines Matching full:tpm
9 #include <tpm.h>
14 /* TPM NVRAM location indices. */
20 /* Kernel TPM space - KERNEL_NV_INDEX, locked with physical presence */
39 * the TPM commands manual.
56 * Information about our TPM emulation. This is preserved in the sandbox
67 * not this function sets up an empty TPM.
122 SANDBOX_STATE_IO(sandbox_tpm, "google,sandbox-tpm", sandbox_tpm_read_state,
144 struct tpm_state *tpm = dev_get_priv(dev); in sandbox_tpm_xfer() local
151 printf("tpm: %zd bytes, recv_len %zd, cmd = %x\n", send_size, in sandbox_tpm_xfer()
195 printf("tpm: nvwrite index=%#02x, len=%#02x\n", index, length); in sandbox_tpm_xfer()
196 memcpy(&tpm->nvdata[seq], sendbuf + 22, length); in sandbox_tpm_xfer()
206 printf("tpm: nvread index=%#02x, len=%#02x\n", index, length); in sandbox_tpm_xfer()
226 sizeof(uint32_t), &tpm->nvdata[seq], length); in sandbox_tpm_xfer()
229 case 0x14: /* tpm extend */ in sandbox_tpm_xfer()
240 printf("Unknown tpm command %02x\n", code); in sandbox_tpm_xfer()
252 return snprintf(buf, size, "sandbox TPM"); in sandbox_tpm_get_desc()
257 struct tpm_state *tpm = dev_get_priv(dev); in sandbox_tpm_probe() local
259 memcpy(tpm, &g_state, sizeof(*tpm)); in sandbox_tpm_probe()
282 { .compatible = "google,sandbox-tpm" },