Lines Matching refs:suffix

266         let (suffix, &slot_data) = zip(lower_ascii_suffixes, control.slot_metadata.iter())  in get_slot_by_number()
278 Ok(Slot { suffix, priority: slot_data.priority().into(), bootability }) in get_slot_by_number()
290 .max_by_key(|slot| (slot.priority, slot.suffix.rank())) in get_boot_target()
306 .find(|(_, slot)| slot.suffix == slot_suffix) in set_slot_unbootable()
325 .find(|s| s.suffix == slot.suffix) in mark_boot_attempt()
326 .ok_or(Error::NoSuchSlot(slot.suffix))?; in mark_boot_attempt()
334 .find(|(_, slot)| slot.suffix == target_slot.suffix) in mark_boot_attempt()
335 .ok_or(Error::NoSuchSlot(target_slot.suffix))?; in mark_boot_attempt()
354 .position(|s| s.suffix == slot_suffix) in set_active_slot()
395 suffix: c.into(), in test_slot_block_defaults()
415 suffix: c.into(), in test_slot_block_fewer_slots()
499 let b_slot = sb.slots_iter().find(|s| s.suffix == b_suffix).unwrap(); in test_get_boot_target_recovery_nondefault_recovery_slot()
508 assert_eq!(sb.set_active_slot(v[1].suffix), Ok(())); in test_get_slot_last_set_active()
511 assert_eq!(sb.set_slot_unbootable(slot.suffix, UnbootableReason::NoMoreTries), Ok(())); in test_get_slot_last_set_active()
521 let slot = Slot { suffix: 'a'.into(), ..Default::default() }; in test_slot_mark_boot_attempt()
526 suffix: slot.suffix, in test_slot_mark_boot_attempt()
540 let slot = Slot { suffix: 'a'.into(), ..Default::default() }; in test_slot_mark_boot_attempt_no_more_tries()
545 suffix: slot.suffix, in test_slot_mark_boot_attempt_no_more_tries()
564 suffix: 'a'.into(), in test_slot_mark_boot_attempt_successful()