Home
last modified time | relevance | path

Searched refs:AbrData (Results 1 – 3 of 3) sorted by relevance

/bootable/libbootloader/gbl/libgbl/src/slots/
Dfuchsia.rs99 struct AbrData { struct
110 impl AbrData { argument
120 impl MetadataBytes for AbrData { implementation
121 fn validate<B: ByteSlice>(buffer: B) -> Result<Ref<B, AbrData>, MetadataParseError> { in validate() argument
123 Ref::<B, AbrData>::new_from_prefix(buffer).ok_or(MetadataParseError::BufferTooSmall)?.0; in validate()
144 impl Default for AbrData { implementation
161 impl super::private::SlotGet for SlotBlock<'_, AbrData> {
178 impl Manager for SlotBlock<'_, AbrData> {
291 impl<'a> SlotBlock<'a, AbrData> {
309 let sb: SlotBlock<AbrData> = Default::default(); in test_slot_block_defaults()
[all …]
/bootable/libbootloader/gbl/libabr/src/
Dutils.rs15 use abr::{AbrData, ONE_SHOT_BOOTLOADER, ONE_SHOT_RECOVERY};
45 pub unsafe extern "C" fn AbrIsOneShotRecoveryBoot(abr_data: *const AbrData) -> bool { in AbrIsOneShotRecoveryBoot()
63 pub unsafe extern "C" fn AbrIsOneShotBootloaderBoot(abr_data: *const AbrData) -> bool { in AbrIsOneShotBootloaderBoot()
74 pub unsafe extern "C" fn AbrSetOneShotRecoveryBoot(abr_data: *mut AbrData, enable: bool) { in AbrSetOneShotRecoveryBoot() argument
85 pub unsafe extern "C" fn AbrSetOneShotBootloaderBoot(abr_data: *mut AbrData, enable: bool) { in AbrSetOneShotBootloaderBoot() argument
Dlib.rs204 pub struct AbrData { struct
215 const ABR_DATA_SIZE: usize = size_of::<AbrData>(); argument
217 impl AbrData { impl
337 impl Default for AbrData { implementation
371 fn load_metadata(abr_ops: &mut dyn Ops) -> AbrResult<(AbrData, AbrData)> { in load_metadata() argument
372 let mut abr_data_orig = AbrData::null(); in load_metadata()
373 let mut abr_data = match AbrData::deserialize(abr_ops) { in load_metadata()
396 fn save_metadata(abr_ops: &mut dyn Ops, abr_data: &mut AbrData) -> AbrResult<()> { in save_metadata()
405 abr_data: &mut AbrData, in save_metadata_if_changed() argument
406 abr_data_orig: &AbrData, in save_metadata_if_changed() argument