Lines Matching refs:cpu_to_be32
230 .length = cpu_to_be32(TPM2_PCR_READ_IN_SIZE),
231 .ordinal = cpu_to_be32(TPM2_CC_PCR_READ)
254 cmd.params.pcrread_in.pcr_selects_cnt = cpu_to_be32(1); in tpm2_pcr_read()
278 .length = cpu_to_be32(TPM2_GET_PCREXTEND_IN_SIZE),
279 .ordinal = cpu_to_be32(TPM2_CC_PCR_EXTEND)
298 cmd.params.pcrextend_in.pcr_idx = cpu_to_be32(pcr_idx); in tpm2_pcr_extend()
300 cpu_to_be32(sizeof(struct tpm2_null_auth_area)); in tpm2_pcr_extend()
302 cpu_to_be32(TPM2_RS_PW); in tpm2_pcr_extend()
306 cmd.params.pcrextend_in.digest_cnt = cpu_to_be32(1); in tpm2_pcr_extend()
322 .length = cpu_to_be32(TPM2_GETRANDOM_IN_SIZE),
323 .ordinal = cpu_to_be32(TPM2_CC_GET_RANDOM)
379 .length = cpu_to_be32(TPM2_GET_TPM_PT_IN_SIZE),
380 .ordinal = cpu_to_be32(TPM2_CC_GET_CAPABILITY)
401 cmd.params.get_tpm_pt_in.cap_id = cpu_to_be32(TPM2_CAP_TPM_PROPERTIES); in tpm2_get_tpm_pt()
402 cmd.params.get_tpm_pt_in.property_id = cpu_to_be32(property_id); in tpm2_get_tpm_pt()
403 cmd.params.get_tpm_pt_in.property_cnt = cpu_to_be32(1); in tpm2_get_tpm_pt()
418 .length = cpu_to_be32(TPM2_STARTUP_IN_SIZE),
419 .ordinal = cpu_to_be32(TPM2_CC_STARTUP)
450 .length = cpu_to_be32(TPM2_SHUTDOWN_IN_SIZE),
451 .ordinal = cpu_to_be32(TPM2_CC_SHUTDOWN)
512 .length = cpu_to_be32(TPM2_SELF_TEST_IN_SIZE),
513 .ordinal = cpu_to_be32(TPM2_CC_SELF_TEST)
579 cmd.params.pcrread_in.pcr_selects_cnt = cpu_to_be32(1); in tpm2_do_selftest()
631 cmd.params.get_tpm_pt_in.cap_id = cpu_to_be32(TPM2_CAP_TPM_PROPERTIES); in tpm2_probe()
632 cmd.params.get_tpm_pt_in.property_id = cpu_to_be32(0x100); in tpm2_probe()
633 cmd.params.get_tpm_pt_in.property_cnt = cpu_to_be32(1); in tpm2_probe()