Lines Matching refs:cpu_to_be32
235 .length = cpu_to_be32(TPM2_PCR_READ_IN_SIZE),
236 .ordinal = cpu_to_be32(TPM2_CC_PCR_READ)
259 cmd.params.pcrread_in.pcr_selects_cnt = cpu_to_be32(1); in tpm2_pcr_read()
283 .length = cpu_to_be32(TPM2_GET_PCREXTEND_IN_SIZE),
284 .ordinal = cpu_to_be32(TPM2_CC_PCR_EXTEND)
303 cmd.params.pcrextend_in.pcr_idx = cpu_to_be32(pcr_idx); in tpm2_pcr_extend()
305 cpu_to_be32(sizeof(struct tpm2_null_auth_area)); in tpm2_pcr_extend()
307 cpu_to_be32(TPM2_RS_PW); in tpm2_pcr_extend()
311 cmd.params.pcrextend_in.digest_cnt = cpu_to_be32(1); in tpm2_pcr_extend()
327 .length = cpu_to_be32(TPM2_GETRANDOM_IN_SIZE),
328 .ordinal = cpu_to_be32(TPM2_CC_GET_RANDOM)
384 .length = cpu_to_be32(TPM2_GET_TPM_PT_IN_SIZE),
385 .ordinal = cpu_to_be32(TPM2_CC_GET_CAPABILITY)
654 cmd.params.get_tpm_pt_in.cap_id = cpu_to_be32(TPM2_CAP_TPM_PROPERTIES); in tpm2_get_tpm_pt()
655 cmd.params.get_tpm_pt_in.property_id = cpu_to_be32(property_id); in tpm2_get_tpm_pt()
656 cmd.params.get_tpm_pt_in.property_cnt = cpu_to_be32(1); in tpm2_get_tpm_pt()
671 .length = cpu_to_be32(TPM2_STARTUP_IN_SIZE),
672 .ordinal = cpu_to_be32(TPM2_CC_STARTUP)
703 .length = cpu_to_be32(TPM2_SHUTDOWN_IN_SIZE),
704 .ordinal = cpu_to_be32(TPM2_CC_SHUTDOWN)
765 .length = cpu_to_be32(TPM2_SELF_TEST_IN_SIZE),
766 .ordinal = cpu_to_be32(TPM2_CC_SELF_TEST)
832 cmd.params.pcrread_in.pcr_selects_cnt = cpu_to_be32(1); in tpm2_do_selftest()
884 cmd.params.get_tpm_pt_in.cap_id = cpu_to_be32(TPM2_CAP_TPM_PROPERTIES); in tpm2_probe()
885 cmd.params.get_tpm_pt_in.property_id = cpu_to_be32(0x100); in tpm2_probe()
886 cmd.params.get_tpm_pt_in.property_cnt = cpu_to_be32(1); in tpm2_probe()