| /bootable/libbootloader/gbl/libefi/src/protocol/ |
| D | simple_network.rs | 40 pub fn start(&self) -> Result<()> { in start() 49 pub fn stop(&self) -> Result<()> { in stop() 55 pub fn initialize(&self, extra_rx_buf_size: usize, extra_tx_buf_size: usize) -> Result<()> { in initialize() 68 pub fn reset(&self, extended_verification: bool) -> Result<()> { in reset() 74 pub fn shutdown(&self) -> Result<()> { in shutdown() 86 ) -> Result<()> { in receive_filters() 110 ) -> Result<()> { in get_status() 143 ) -> Result<()> { in transmit() 172 ) -> Result<()> { in receive() 198 pub fn set_promiscuous_mode(&self) -> Result<()> { in set_promiscuous_mode()
|
| D | block_io.rs | 40 ) -> Result<()> { in read_blocks() 59 pub fn write_blocks(&self, lba: u64, buffer: &mut [u8]) -> Result<()> { in write_blocks() 78 pub fn flush_blocks(&self) -> Result<()> { in flush_blocks() 87 pub fn reset(&self, extended_verification: bool) -> Result<()> { in reset()
|
| D | block_io2.rs | 42 async fn wait_io_completion(&self, event: &Event<'_, '_>) -> Result<()> { in wait_io_completion() 63 ) -> Result<()> { in read_blocks_ex() 99 pub async fn write_blocks_ex(&self, lba: u64, buffer: &mut [u8]) -> Result<()> { in write_blocks_ex() 125 pub async fn flush_blocks_ex(&self) -> Result<()> { in flush_blocks_ex() 141 pub fn reset(&self, extended_verification: bool) -> Result<()> { in reset()
|
| D | gbl_efi_ab_slot.rs | 133 pub fn set_active_slot(&self, idx: u8) -> Result<()> { in set_active_slot() 142 pub fn set_slot_unbootable(&self, idx: u8, reason: GblEfiUnbootableReason) -> Result<()> { in set_slot_unbootable() 152 pub fn reinitialize(&self) -> Result<()> { in reinitialize() 187 pub fn set_boot_reason(&self, reason: GblEfiBootReason, subreason: &[u8]) -> Result<()> { in set_boot_reason() 205 pub fn flush(&self) -> Result<()> { in flush()
|
| D | gbl_efi_fastboot_usb.rs | 58 pub fn fastboot_usb_interface_stop(&self) -> Result<()> { in fastboot_usb_interface_stop() 125 async fn wait_send(&self) -> Result<()> { in wait_send() 134 pub async fn send_packet(&self, data: &[u8], timeout: Duration) -> Result<()> { in send_packet()
|
| D | simple_text_output.rs | 35 pub fn output_string(&self, msg: *mut char16_t) -> Result<()> { in output_string() 52 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
|
| D | gbl_efi_fastboot.rs | 81 pub fn get_var_all(&self, mut cb: impl FnMut(&[&CStr], &CStr)) -> Result<()> { in get_var_all() 178 pub fn set_lock(&self, flags: u64) -> Result<()> { in set_lock() 187 pub fn clear_lock(&self, flags: u64) -> Result<()> { in clear_lock() 246 pub fn close_local_session(&self, ctx: &LocalSessionContext) -> Result<()> { in close_local_session() 255 pub fn wipe_user_data(&self) -> Result<()> { in wipe_user_data()
|
| D | simple_text_input.rs | 34 pub fn reset(&self, extendend_verification: bool) -> Result<()> { in reset()
|
| /bootable/libbootloader/gbl/libstorage/src/ |
| D | algorithm.rs | 28 ) -> Result<()> { in read_aligned_all() 41 ) -> Result<()> { in read_aligned_offset_and_buffer() 75 ) -> Result<()> { in read_aligned_buffer() 142 ) -> Result<()> { in read_async() 183 async fn write_aligned_all(io: &mut impl BlockIo, offset: u64, data: &mut [u8]) -> Result<()> { in write_aligned_all() 196 ) -> Result<()> { in write_aligned_offset_and_buffer() 246 ) -> Result<()> { in write_aligned_buffer() 300 ) -> Result<()> { in write_async()
|
| D | lib.rs | 93 ) -> Result<()>; in read_blocks() 107 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<()>; in write_blocks() 125 ) -> Result<()> { in read_blocks() 129 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<()> { in write_blocks() 148 ) -> Result<()> { in read_blocks() 152 async fn write_blocks(&mut self, _: u64, _: &mut [u8]) -> Result<()> { in write_blocks() 266 ) -> Result<()> { in read() 280 pub async fn write(&mut self, offset: u64, data: &mut [u8]) -> Result<()> { in write() 302 ) -> Result<()> { in fill() 359 ) -> Result<()> { in update_gpt() [all …]
|
| D | ram_block.rs | 87 ) -> Result<(), Error> { in read_blocks() 93 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), Error> { in write_blocks()
|
| /bootable/libbootloader/gbl/libgbl/src/ |
| D | error.rs | 113 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() 119 pub type Result<T> = core::result::Result<T, IntegrationError>; typedef
|
| D | ops.rs | 141 ) -> Result<(), Error> { in read_from_partition() 151 ) -> Result<(), Error> { in read_from_partition_sync() 161 ) -> Result<(), Error> { in write_to_partition() 171 ) -> Result<(), Error> { in write_to_partition_sync() 197 ) -> Result<(), Error>; in zircon_add_device_zbi_items() 228 persist: &'b mut dyn FnMut(&mut [u8]) -> Result<(), Error>, in load_slot_interface() 352 ) -> Result<(), Error>; in select_device_trees() 360 fn fixup_device_tree(&mut self, device_tree: &mut [u8]) -> Result<(), Error>; in fixup_device_tree() 389 ) -> Result<(), Error>; in fastboot_visit_all_variables() 418 fn set_active_slot(&mut self, _slot: u8) -> Result<(), Error>; in set_active_slot() [all …]
|
| D | partition.rs | 238 pub async fn update_gpt(&self, mbr_primary: &mut [u8], resize: bool) -> Result<(), Error> { in update_gpt() 254 pub async fn erase_gpt(&self) -> Result<(), Error> { in erase_gpt() 313 pub async fn write(&mut self, off: u64, data: &mut [u8]) -> Result<(), Error> { in write() 322 ) -> Result<(), Error> { in read() 327 pub async fn zeroize(&mut self, scratch: &mut [u8]) -> Result<(), Error> { in zeroize() 332 pub async fn write_sparse(&mut self, off: u64, img: &mut [u8]) -> Result<(), Error> { in write_sparse() 354 async fn write(&mut self, off: u64, data: &mut [u8]) -> Result<(), Error> { in write() 389 ) -> Result<(), Error> { in read_unique_partition() 402 ) -> Result<(), Error> { in write_unique_partition() 412 ) -> Result<(), Error> { in sync_gpt()
|
| /bootable/libbootloader/gbl/libfastboot/src/ |
| D | lib.rs | 114 async fn send_packet(&mut self, packet: &[u8]) -> Result<()>; in send_packet() 127 async fn read_exact(&mut self, out: &mut [u8]) -> Result<()>; in read_exact() 130 async fn write_exact(&mut self, data: &[u8]) -> Result<()>; in write_exact() 163 async fn send_packet(&mut self, packet: &[u8]) -> Result<()> { in send_packet() 192 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() 469 ) -> Result<()>; in send_var_info() 479 async fn send_formatted_info<F: FnOnce(&mut dyn Write)>(&mut self, cb: F) -> Result<()>; in send_formatted_info() 482 async fn send_info(&mut self, msg: &str) -> Result<()> { in send_info() 494 async fn send_formatted_okay<F: FnOnce(&mut dyn Write)>(self, cb: F) -> Result<()>; in send_formatted_okay() 517 async fn upload(&mut self, data: &[u8]) -> Result<()>; in upload() [all …]
|
| /bootable/libbootloader/gbl/libabr/src/ |
| D | lib.rs | 42 fn read_abr_metadata(&mut self, out: &mut [u8]) -> Result<()>; in read_abr_metadata() 46 fn write_abr_metadata(&mut self, data: &mut [u8]) -> Result<()>; in write_abr_metadata() 53 fn read_abr_metadata(&mut self, out: &mut [u8]) -> Result<()> { in read_abr_metadata() 58 fn write_abr_metadata(&mut self, data: &mut [u8]) -> Result<()> { in write_abr_metadata() 458 fn save_metadata(abr_ops: &mut dyn Ops, abr_data: &mut AbrData) -> Result<()> { in save_metadata() 469 ) -> Result<()> { in save_metadata_if_changed() 550 pub fn mark_slot_active(abr_ops: &mut dyn Ops, slot_index: SlotIndex) -> Result<()> { in mark_slot_active() 588 pub fn mark_slot_unbootable(abr_ops: &mut dyn Ops, slot_index: SlotIndex) -> Result<()> { in mark_slot_unbootable() 602 pub fn mark_slot_successful(abr_ops: &mut dyn Ops, slot_index: SlotIndex) -> Result<()> { in mark_slot_successful() 660 pub fn set_one_shot_recovery(abr_ops: &mut dyn Ops, enable: bool) -> Result<()> { in set_one_shot_recovery() [all …]
|
| /bootable/libbootloader/gbl/libefi/src/ |
| D | utils.rs | 44 pub fn reset(&self, timeout: Duration) -> Result<()> { in reset() 52 pub async fn wait(efi_entry: &EfiEntry, duration: Duration) -> Result<()> { in wait() 101 pub async fn wait(&self) -> Result<()> { in wait()
|
| D | ab_slots.rs | 89 fn set_active_slot(&mut self, slot_suffix: Suffix) -> Result<()> { in set_active_slot() 104 fn set_slot_unbootable(&mut self, slot_suffix: Suffix, reason: UnbootableReason) -> Result<()> { in set_slot_unbootable() 131 fn set_oneshot_status(&mut self, os: OneShot) -> Result<()> { in set_oneshot_status() 152 fn write_back(&mut self, _: &mut dyn FnMut(&mut [u8]) -> Result<()>) { in write_back() 279 fn zircon_add_device_zbi_items(&mut self, _: &mut ZbiContainer<&mut [u8]>) -> Result<()> { in zircon_add_device_zbi_items() 289 persist: &'b mut dyn FnMut(&mut [u8]) -> Result<()>, in load_slot_interface() 391 fn fixup_device_tree(&mut self, _device_tree: &mut [u8]) -> Result<()> { in fixup_device_tree() 398 ) -> Result<()> { in select_device_trees() 411 fn fastboot_visit_all_variables(&mut self, _: impl FnMut(&[&CStr], &CStr)) -> Result<()> { in fastboot_visit_all_variables() 427 fn set_active_slot(&mut self, _: u8) -> Result<()> { in set_active_slot() [all …]
|
| /bootable/libbootloader/gbl/libgbl/src/android_boot/ |
| D | vboot.rs | 46 pub fn try_push(&mut self, name: &'a CStr) -> Result<()> { in try_push() 52 pub fn try_push_preloaded(&mut self, name: &'a CStr, data: &'a [u8]) -> Result<()> { in try_push_preloaded() 60 pub fn try_extend_preloaded(&mut self, partitions: &PartitionsToVerify<'a>) -> Result<()> { in try_extend_preloaded() 102 ) -> Result<()> { in avb_verify_slot() 222 ) -> Result<()> { in test_avb_verify_slot()
|
| /bootable/libbootloader/gbl/libbootparams/src/ |
| D | bootconfig.rs | 87 pub fn add(&mut self, config: &str) -> Result<()> { in add() 100 fn update_trailer(&mut self) -> Result<()> { in update_trailer() 123 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() 133 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
|
| /bootable/libbootloader/gbl/libefi/mocks/ |
| D | protocol.rs | 257 ) -> Result<()> { in write_rollback_index() 267 pub fn write_persistent_value(&self, _name: &CStr, _value: Option<&[u8]>) -> Result<()> { in write_persistent_value() 275 ) -> Result<()> { in handle_verification_result() 309 pub fn get_var_all(&self, _: impl FnMut(&[&CStr], &CStr)) -> Result<()> { in get_var_all()
|
| /bootable/libbootloader/gbl/efi/src/ |
| D | efi_blocks.rs | 67 ) -> Result<(), Error> { in read_blocks() 75 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), Error> { in write_blocks()
|
| D | ops.rs | 252 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str() 312 ) -> Result<()> { in zircon_add_device_zbi_items() 332 _: &'c mut dyn FnMut(&mut [u8]) -> Result<()>, in load_slot_interface() 523 fn fixup_device_tree(&mut self, device_tree: &mut [u8]) -> Result<()> { in fixup_device_tree() 536 ) -> Result<()> { in select_device_trees() 592 fn fastboot_visit_all_variables(&mut self, cb: impl FnMut(&[&CStr], &CStr)) -> Result<()> { in fastboot_visit_all_variables() 634 fn set_active_slot(&mut self, _: u8) -> Result<()> { in set_active_slot() 640 fn set_reboot_reason(&mut self, _: RebootReason) -> Result<()> { in set_reboot_reason() 674 fn set_active_slot(&mut self, slot: u8) -> Result<()> { in set_active_slot() 683 fn set_reboot_reason(&mut self, reason: RebootReason) -> Result<()> { in set_reboot_reason() [all …]
|
| D | fuchsia_boot.rs | 46 pub fn is_fuchsia_gpt(disks: &[EfiGblDisk]) -> Result<()> { in is_fuchsia_gpt() 85 ) -> Result<()> { in efi_fuchsia_boot()
|
| /bootable/libbootloader/gbl/libfdt/src/ |
| D | lib.rs | 59 fn fdt_check_header(header: &[u8]) -> Result<()> { in fdt_check_header() 68 fn fdt_check_buffer(fdt: &[u8]) -> Result<()> { in fdt_check_buffer() 256 pub fn shrink_to_fit(&mut self) -> Result<()> { in shrink_to_fit() 267 pub fn expand_to_buffer(&mut self) -> Result<()> { in expand_to_buffer() 274 pub fn delete_node(&mut self, path: &str) -> Result<()> { in delete_node() 284 pub fn set_property(&mut self, path: &str, name: &CStr, val: &[u8]) -> Result<()> { in set_property() 327 pub fn multioverlay_apply(&mut self, overlays: &[&[u8]]) -> Result<()> { in multioverlay_apply()
|