Lines Matching refs:capability
578 struct efi_tcg2_boot_service_capability *capability) in efi_tcg2_get_capability() argument
584 EFI_ENTRY("%p, %p", this, capability); in efi_tcg2_get_capability()
586 if (!this || !capability) { in efi_tcg2_get_capability()
591 if (capability->size < boot_service_capability_min) { in efi_tcg2_get_capability()
592 capability->size = boot_service_capability_min; in efi_tcg2_get_capability()
597 if (capability->size < sizeof(*capability)) { in efi_tcg2_get_capability()
598 capability->size = sizeof(*capability); in efi_tcg2_get_capability()
603 capability->structure_version.major = 1; in efi_tcg2_get_capability()
604 capability->structure_version.minor = 1; in efi_tcg2_get_capability()
605 capability->protocol_version.major = 1; in efi_tcg2_get_capability()
606 capability->protocol_version.minor = 1; in efi_tcg2_get_capability()
610 capability->supported_event_logs = 0; in efi_tcg2_get_capability()
611 capability->hash_algorithm_bitmap = 0; in efi_tcg2_get_capability()
612 capability->tpm_present_flag = false; in efi_tcg2_get_capability()
613 capability->max_command_size = 0; in efi_tcg2_get_capability()
614 capability->max_response_size = 0; in efi_tcg2_get_capability()
615 capability->manufacturer_id = 0; in efi_tcg2_get_capability()
616 capability->number_of_pcr_banks = 0; in efi_tcg2_get_capability()
617 capability->active_pcr_banks = 0; in efi_tcg2_get_capability()
624 capability->supported_event_logs = TCG2_EVENT_LOG_FORMAT_TCG_2; in efi_tcg2_get_capability()
626 capability->tpm_present_flag = true; in efi_tcg2_get_capability()
629 capability->hash_algorithm_bitmap = 0; in efi_tcg2_get_capability()
630 capability->active_pcr_banks = 0; in efi_tcg2_get_capability()
631 ret = tpm2_get_pcr_info(dev, &capability->hash_algorithm_bitmap, in efi_tcg2_get_capability()
632 &capability->active_pcr_banks, in efi_tcg2_get_capability()
633 &capability->number_of_pcr_banks); in efi_tcg2_get_capability()
640 ret = tpm2_get_max_command_size(dev, &capability->max_command_size); in efi_tcg2_get_capability()
647 ret = tpm2_get_max_response_size(dev, &capability->max_response_size); in efi_tcg2_get_capability()
654 ret = tpm2_get_manufacturer_id(dev, &capability->manufacturer_id); in efi_tcg2_get_capability()