Lines Matching refs:params
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()
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()
457 *cap = tpm_cmd.params.getcap_out.cap; in tpm_getcap()
467 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; in tpm_gen_interrupt()
468 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); in tpm_gen_interrupt()
469 tpm_cmd.params.getcap_in.subcap = TPM_CAP_PROP_TIS_TIMEOUT; in tpm_gen_interrupt()
491 start_cmd.params.startup_in.startup_type = startup_type; in tpm_startup()
505 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; in tpm_get_timeouts()
506 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); in tpm_get_timeouts()
507 tpm_cmd.params.getcap_in.subcap = TPM_CAP_PROP_TIS_TIMEOUT; in tpm_get_timeouts()
518 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; in tpm_get_timeouts()
519 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); in tpm_get_timeouts()
520 tpm_cmd.params.getcap_in.subcap = TPM_CAP_PROP_TIS_TIMEOUT; in tpm_get_timeouts()
536 old_timeout[0] = be32_to_cpu(tpm_cmd.params.getcap_out.cap.timeout.a); in tpm_get_timeouts()
537 old_timeout[1] = be32_to_cpu(tpm_cmd.params.getcap_out.cap.timeout.b); in tpm_get_timeouts()
538 old_timeout[2] = be32_to_cpu(tpm_cmd.params.getcap_out.cap.timeout.c); in tpm_get_timeouts()
539 old_timeout[3] = be32_to_cpu(tpm_cmd.params.getcap_out.cap.timeout.d); in tpm_get_timeouts()
579 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP; in tpm_get_timeouts()
580 tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4); in tpm_get_timeouts()
581 tpm_cmd.params.getcap_in.subcap = TPM_CAP_PROP_TIS_DURATION; in tpm_get_timeouts()
593 duration_cap = &tpm_cmd.params.getcap_out.cap.duration; in tpm_get_timeouts()
658 cmd.params.pcrread_in.pcr_idx = cpu_to_be32(pcr_idx); in tpm_pcr_read_dev()
663 memcpy(res_buf, cmd.params.pcrread_out.pcr_result, in tpm_pcr_read_dev()
755 cmd.params.pcrextend_in.pcr_idx = cpu_to_be32(pcr_idx); in tpm_pcr_extend()
756 memcpy(cmd.params.pcrextend_in.hash, hash, TPM_DIGEST_SIZE); in tpm_pcr_extend()
795 cmd.params.pcrread_in.pcr_idx = cpu_to_be32(0); in tpm_do_selftest()
936 cmd.params.pcrextend_in.pcr_idx = cpu_to_be32(tpm_suspend_pcr); in tpm_pm_suspend()
937 memcpy(cmd.params.pcrextend_in.hash, dummy_hash, in tpm_pm_suspend()
1027 tpm_cmd.params.getrandom_in.num_bytes = cpu_to_be32(num_bytes); in tpm_get_random()
1035 recd = be32_to_cpu(tpm_cmd.params.getrandom_out.rng_data_len); in tpm_get_random()
1036 memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd); in tpm_get_random()