Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 5 of 5) sorted by relevance

/bootable/libbootloader/gbl/libabr/src/
Dlib.rs138 pub priority: u8, field
150 priority: bytes[0],
159 [self.priority, self.tries_remaining, self.successful_boot, self.reserved]
164 self.priority > 0 && (self.successful_boot == 1 || self.tries_remaining > 0) in is_slot_bootable()
175 true => self.priority, in get_normalized_priority()
183 if self.priority > 0 { in slot_normalize()
193 self.priority = min(self.priority, ABR_MAX_PRIORITY); in slot_normalize()
346 priority: ABR_MAX_PRIORITY, in default()
352 priority: ABR_MAX_PRIORITY - 1, in default()
495 abr_data.slot_data_mut(slot_index).priority = ABR_MAX_PRIORITY; in mark_slot_active()
[all …]
/bootable/libbootloader/gbl/libgbl/src/slots/
Dfuchsia.rs37 priority: u8, field
46 priority: DEFAULT_PRIORITY, in default()
174 Ok(Slot { suffix, priority: abr_slot.priority.into(), bootability }) in get_slot_by_number()
182 .max_by_key(|slot| (slot.priority, slot.suffix.rank())) in get_boot_target()
253 slot.priority = DEFAULT_PRIORITY - 1; in set_active_slot()
313 priority: DEFAULT_PRIORITY.into(), in test_slot_block_defaults()
318 priority: DEFAULT_PRIORITY.into(), in test_slot_block_defaults()
377 priority: DEFAULT_PRIORITY.into(), in test_slot_mark_boot_attempt()
396 priority: DEFAULT_PRIORITY.into(), in test_slot_mark_boot_attempt_tracks_active()
411 priority: DEFAULT_PRIORITY.into(), in test_slot_mark_boot_attempt_no_more_tries()
[all …]
Dandroid.rs86 fn priority(&self) -> u8 { in priority() method
89 fn set_priority(&mut self, priority: u8) { in set_priority()
90 self.0 = set_field(self.0, priority, Self::PRIORITY_OFFSET, Self::PRIORITY_MASK) in set_priority()
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()
396 priority: DEFAULT_PRIORITY.into(), in test_slot_block_defaults()
416 priority: DEFAULT_PRIORITY.into(), in test_slot_block_fewer_slots()
527 priority: DEFAULT_PRIORITY.into(), in test_slot_mark_boot_attempt()
546 priority: DEFAULT_PRIORITY.into(), in test_slot_mark_boot_attempt_no_more_tries()
565 priority: DEFAULT_PRIORITY.into(), in test_slot_mark_boot_attempt_successful()
/bootable/recovery/update_verifier/
Dupdate_verifier.rc4 priority -20
/bootable/libbootloader/gbl/libgbl/src/
Dslots.rs194 pub priority: Priority, field
339 self.slots_iter().max_by_key(|slot| (slot.priority, slot.suffix.rank())).unwrap() in get_slot_last_set_active()