Searched refs:tpm_cmd (Results 1 – 2 of 2) sorted by relevance
/drivers/char/tpm/ |
D | tpm-interface.c | 443 struct tpm_cmd_t tpm_cmd; in tpm_getcap() local 446 tpm_cmd.header.in = tpm_getcap_header; in tpm_getcap() 448 tpm_cmd.params.getcap_in.cap = subcap_id; in tpm_getcap() 450 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(0); in tpm_getcap() 451 tpm_cmd.header.in.length -= cpu_to_be32(sizeof(__be32)); in tpm_getcap() 455 tpm_cmd.params.getcap_in.cap = TPM_CAP_FLAG; in tpm_getcap() 457 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; in tpm_getcap() 458 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); in tpm_getcap() 459 tpm_cmd.params.getcap_in.subcap = subcap_id; in tpm_getcap() 461 rc = tpm_transmit_cmd(chip, &tpm_cmd, TPM_INTERNAL_RESULT_SIZE, 0, in tpm_getcap() [all …]
|
D | tpm-sysfs.c | 34 struct tpm_cmd_t tpm_cmd; in pubek_show() local 40 memset(&tpm_cmd, 0, sizeof(tpm_cmd)); in pubek_show() 42 tpm_cmd.header.in = tpm_readpubek_header; in pubek_show() 43 err = tpm_transmit_cmd(chip, &tpm_cmd, READ_PUBEK_RESULT_SIZE, 0, in pubek_show() 58 data = tpm_cmd.params.readpubek_out_buffer; in pubek_show()
|