Lines Matching refs:selection
370 static bool is_active_pcr(struct tpms_pcr_selection *selection) in is_active_pcr() argument
377 for (i = 0; i < selection->size_of_select; i++) { in is_active_pcr()
378 if (selection->pcr_select[i]) in is_active_pcr()
430 u32 hash_offset = offsetof(struct tpml_pcr_selection, selection) + in tpm2_get_pcr_info()
440 pcrs.selection[i].hash = in tpm2_get_pcr_info()
442 pcrs.selection[i].size_of_select = in tpm2_get_pcr_info()
444 if (pcrs.selection[i].size_of_select > TPM2_PCR_SELECT_MAX) in tpm2_get_pcr_info()
447 memcpy(pcrs.selection[i].pcr_select, response + pcr_select_offset, in tpm2_get_pcr_info()
448 pcrs.selection[i].size_of_select); in tpm2_get_pcr_info()
452 u32 hash_mask = alg_to_mask(pcrs.selection[i].hash); in tpm2_get_pcr_info()
456 if (is_active_pcr(&pcrs.selection[i])) in tpm2_get_pcr_info()
459 EFI_PRINT("Unknown algorithm %x\n", pcrs.selection[i].hash); in tpm2_get_pcr_info()