Home
last modified time | relevance | path

Searched refs:tpm_cmd (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/char/tpm/
Dtpm-interface.c436 struct tpm_cmd_t tpm_cmd; in tpm_getcap() local
440 tpm_cmd.header.in = tpm_getcap_header; in tpm_getcap()
442 tpm_cmd.params.getcap_in.cap = subcap_id; in tpm_getcap()
444 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(0); in tpm_getcap()
445 tpm_cmd.header.in.length -= cpu_to_be32(sizeof(__be32)); in tpm_getcap()
449 tpm_cmd.params.getcap_in.cap = TPM_CAP_FLAG; in tpm_getcap()
451 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; in tpm_getcap()
452 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); in tpm_getcap()
453 tpm_cmd.params.getcap_in.subcap = subcap_id; in tpm_getcap()
455 rc = tpm_transmit_cmd(chip, &tpm_cmd, TPM_INTERNAL_RESULT_SIZE, desc); in tpm_getcap()
[all …]
Dtpm-sysfs.c34 struct tpm_cmd_t tpm_cmd; in pubek_show() local
41 tpm_cmd.header.in = tpm_readpubek_header; in pubek_show()
42 err = tpm_transmit_cmd(chip, &tpm_cmd, READ_PUBEK_RESULT_SIZE, in pubek_show()
57 data = tpm_cmd.params.readpubek_out_buffer; in pubek_show()