Lines Matching refs:Caps
43 use crate::caps::Caps;
105 let num_images = Caps::get_num_images(); in new()
283 …e(device: DeviceName, align: usize, erased_val: u8) -> (SimMultiFlash, AreaDesc, &'static [Caps]) { in make_device() argument
300 (flash, areadesc, &[Caps::SwapUsingMove]) in make_device()
331 (flash, areadesc, &[Caps::SwapUsingMove]) in make_device()
360 (flash, areadesc, &[Caps::SwapUsingScratch, Caps::OverwriteUpgrade]) in make_device()
379 (flash, areadesc, &[Caps::SwapUsingMove]) in make_device()
428 if Caps::Bootstrap.present() { in run_bootstrap()
466 Caps::SwapUsingScratch.present() || Caps::SwapUsingMove.present() in is_swap_upgrade()
470 if Caps::OverwriteUpgrade.present() { in run_basic_revert()
571 if Caps::OverwriteUpgrade.present() { in run_revert_with_fails()
591 if Caps::OverwriteUpgrade.present() { in run_norevert()
661 if !Caps::DowngradePrevention.present() { in run_nodowngrade()
831 if !Caps::ValidatePrimarySlot.present() { in run_with_status_fails_complete()
886 if Caps::OverwriteUpgrade.present() { in run_with_status_fails_with_reset()
888 } else if Caps::ValidatePrimarySlot.present() { in run_with_status_fails_with_reset()
951 if Caps::OverwriteUpgrade.present() { in mark_bad_status_with_rate()
970 if !Caps::ValidatePrimarySlot.present() { in reset_bad_status()
1418 if Caps::EcdsaP224.present() { in make_tlv()
1422 if Caps::Aes256.present() { in make_tlv()
1426 if Caps::EncKw.present() { in make_tlv()
1427 if Caps::RSA2048.present() { in make_tlv()
1429 } else if Caps::EcdsaP256.present() { in make_tlv()
1434 } else if Caps::EncRsa.present() { in make_tlv()
1435 if Caps::RSA2048.present() { in make_tlv()
1440 } else if Caps::EncEc256.present() { in make_tlv()
1441 if Caps::EcdsaP256.present() { in make_tlv()
1446 } else if Caps::EncX25519.present() { in make_tlv()
1447 if Caps::Ed25519.present() { in make_tlv()
1454 if Caps::RSA2048.present() { in make_tlv()
1456 } else if Caps::RSA3072.present() { in make_tlv()
1458 } else if Caps::EcdsaP256.present() { in make_tlv()
1460 } else if Caps::Ed25519.present() { in make_tlv()
1472 let encrypted = Caps::EncRsa.present() || Caps::EncKw.present() || in find()
1473 Caps::EncEc256.present() || Caps::EncX25519.present(); in find()
1511 if Caps::OverwriteUpgrade.present() { in verify_trailer()
1695 if Caps::OverwriteUpgrade.present() { in mark_permanent_upgrade()