Home
last modified time | relevance | path

Searched refs:OperationProhibited (Results 1 – 6 of 6) sorted by relevance

/bootable/libbootloader/gbl/libgbl/src/slots/
Dfuchsia.rs217 BootTarget::Recovery(RecoveryTarget::Slotted(_)) => Err(Error::OperationProhibited)?, in mark_boot_attempt()
221 return self.take_boot_token().ok_or(Error::OperationProhibited); in mark_boot_attempt()
228 Bootability::Unbootable(_) => Err(Error::OperationProhibited), in mark_boot_attempt()
235 let token = self.take_boot_token().ok_or(Error::OperationProhibited)?; in mark_boot_attempt()
239 let token = self.take_boot_token().ok_or(Error::OperationProhibited)?; in mark_boot_attempt()
271 OneShot::Continue(RecoveryTarget::Slotted(_)) => Error::OperationProhibited, in set_oneshot_status()
383 assert_eq!(sb.mark_boot_attempt(), Err(Error::OperationProhibited)); in test_slot_mark_boot_attempt()
439 assert_eq!(sb.mark_boot_attempt(), Err(Error::OperationProhibited)); in test_slot_mark_tried_recovery()
567 Err(Error::OperationProhibited) in test_set_oneshot_mistaken_recovery_slotted()
Dandroid.rs322 BootTarget::Recovery(RecoveryTarget::Dedicated) => Err(Error::OperationProhibited)?, in mark_boot_attempt()
327 return self.take_boot_token().ok_or(Error::OperationProhibited); in mark_boot_attempt()
337 Bootability::Unbootable(_) => Err(Error::OperationProhibited), in mark_boot_attempt()
341 let token = self.take_boot_token().ok_or(Error::OperationProhibited)?; in mark_boot_attempt()
345 let token = self.take_boot_token().ok_or(Error::OperationProhibited)?; in mark_boot_attempt()
375 Err(Error::OperationProhibited) in set_oneshot_status()
533 assert_eq!(sb.mark_boot_attempt(), Err(Error::OperationProhibited)); in test_slot_mark_boot_attempt()
591 assert_eq!(sb.set_oneshot_status(oneshot), Err(Error::OperationProhibited)); in test_set_oneshot_status_unsupported()
/bootable/libbootloader/gbl/libgbl/src/
Derror.rs39 OperationProhibited, enumerator
57 Error::OperationProhibited => write!(f, "Operation is prohibited"), in fmt()
Dslots.rs275 OperationProhibited, enumerator
395 Err(Error::OperationProhibited) in set_oneshot_status()
Dlib.rs255 let boot_token = BOOT_TOKEN.lock().take().ok_or(Error::OperationProhibited)?; in load_slot_interface()
258 .map_err(|_| Error::OperationProhibited.into()) in load_slot_interface()
532 let token = slot_cursor.ctx.mark_boot_attempt().map_err(|_| Error::OperationProhibited)?; in lvb_inner()
Dops.rs123 Err(Error::OperationProhibited.into()) in load_slot_interface()