| /bootable/libbootloader/gbl/ |
| D | bazel.py | 40 def __init__(self, workspace_dir: pathlib.Path, bazel_args: list[str]): argument 84 def add_startup_option_to_parser(self, parser): argument 90 def _parse_startup_options(self): argument 122 def _parse_command_args(self): argument 149 def _add_build_number_command_args(self): argument 158 def _add_extra_startup_options(self): argument 167 def _build_final_args(self) -> list[str]: argument 183 def run(self) -> int: argument
|
| /bootable/libbootloader/gbl/libgbl/src/ |
| D | ops.rs | 94 fn reboot(&mut self); in reboot() 129 &self, in disks() 137 &mut self, in read_from_partition() 147 &mut self, in read_from_partition_sync() 157 &mut self, in write_to_partition() 167 &mut self, in write_to_partition_sync() 176 fn partition_size(&mut self, part: &str) -> Result<Option<u64>, Error> { in partition_size() 195 &mut self, in zircon_add_device_zbi_items() 227 &'b mut self, in load_slot_interface() 244 fn avb_read_rollback_index(&mut self, rollback_index_location: usize) -> AvbIoResult<u64>; in avb_read_rollback_index() [all …]
|
| /bootable/libbootloader/gbl/libgbl/src/fastboot/ |
| D | pin_fut_container.rs | 28 &mut self, in for_each_remove_if() 39 fn add_with(&mut self, f: impl FnOnce() -> F); in add_with() 43 &mut self, in for_each_remove_if() 71 fn run(&mut self) { in run() 78 fn add_with(&mut self, f: impl FnOnce() -> F) { in add_with() 83 &mut self, in for_each_remove_if() 104 fn add_with(&mut self, f: impl FnOnce() -> F) { in add_with() 112 &mut self, in for_each_remove_if()
|
| D | vars.rs | 46 &mut self, in get_var_internal() 71 &mut self, in get_var_all_internal() 105 &mut self, in get_var_partition_size() 115 &mut self, in get_var_partition_type() 125 &mut self, in get_all_partition_size_type() 163 &mut self, in get_var_block_device() 184 &mut self, in get_all_block_device() 220 fn get_var_default_block<'s>(&mut self, out: &'s mut [u8]) -> CommandResult<&'s str> { in get_var_default_block()
|
| D | buffer_pool.rs | 34 fn deallocate(&mut self, buf: Self::Buffer); in deallocate() 50 fn deallocate(&mut self, mut buf: B) { in deallocate() 79 fn drop(&mut self) { in drop()
|
| /bootable/recovery/updater_sample/tools/ |
| D | gen_update_config.py | 49 def __init__(self, argument 74 def config(self): argument 78 def run(self): argument 88 def _gen_ab_config(self): argument 117 def write(self, out): argument
|
| /bootable/libbootloader/gbl/libfastboot/src/ |
| D | local_session.rs | 22 async fn update(&mut self, buf: &mut [u8]) -> Result<usize>; in update() 25 async fn process_outgoing_packet(&mut self, _: &[u8]) {} in process_outgoing_packet() 29 async fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize> { in receive_packet() 33 async fn send_packet(&mut self, buf: &[u8]) -> Result<()> { in send_packet()
|
| D | lib.rs | 108 async fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize>; in receive_packet() 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() 150 async fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize> { in receive_packet() 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() 239 &mut self, in get_var() 248 &mut self, in get_var_as_str() 290 async fn get_var_all(&mut self, responder: impl VarInfoSender) -> CommandResult<()>; in get_var_all() [all …]
|
| /bootable/libbootloader/gbl/libefi/src/ |
| D | ab_slots.rs | 50 fn get_slot_by_number(&self, number: usize) -> Result<Slot> { in get_slot_by_number() 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() 142 fn clear_oneshot_status(&mut self) { in clear_oneshot_status() 152 fn write_back(&mut self, _: &mut dyn FnMut(&mut [u8]) -> Result<()>) { in write_back() 262 fn reboot(&mut self) { in reboot() 267 &self, in disks() 279 fn zircon_add_device_zbi_items(&mut self, _: &mut ZbiContainer<&mut [u8]>) -> Result<()> { in zircon_add_device_zbi_items() 288 &'b mut self, in load_slot_interface() [all …]
|
| D | allocation.rs | 154 fn allocate(&self, size: usize) -> *mut u8 { in allocate() 168 fn deallocate(&self, ptr: *mut u8) { in deallocate() 188 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() 229 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { in dealloc()
|
| /bootable/libbootloader/gbl/libefi/mocks/ |
| D | protocol.rs | 235 &self, in validate_vbmeta_public_key() 248 pub fn read_rollback_index(&self, _index_location: usize) -> Result<u64> { in read_rollback_index() 254 &self, in write_rollback_index() 262 pub fn read_persistent_value(&self, _name: &CStr, _value: &mut [u8]) -> Result<usize> { in read_persistent_value() 267 pub fn write_persistent_value(&self, _name: &CStr, _value: Option<&[u8]>) -> Result<()> { in write_persistent_value() 273 &self, in handle_verification_result() 300 &self, in get_var() 309 pub fn get_var_all(&self, _: impl FnMut(&[&CStr], &CStr)) -> Result<()> { in get_var_all()
|
| /bootable/libbootloader/gbl/libefi/src/protocol/ |
| D | simple_network.rs | 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() 81 &self, in receive_filters() 107 &self, in get_status() 137 &self, in transmit() 165 &self, in receive()
|
| D | gbl_efi_ab_slot.rs | 90 pub fn get_slot_info(&self, idx: u8) -> Result<GblSlot> { in get_slot_info() 114 pub fn get_next_slot(&self, mark_boot_attempt: bool) -> Result<GblSlot> { in get_next_slot() 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() 161 pub fn get_boot_reason(&self, subreason: &mut [u8]) -> Result<(GblEfiBootReason, usize)> { in get_boot_reason() 187 pub fn set_boot_reason(&self, reason: GblEfiBootReason, subreason: &[u8]) -> Result<()> { in set_boot_reason()
|
| D | gbl_efi_fastboot_usb.rs | 67 pub fn fastboot_usb_receive(&self, out: &mut [u8]) -> Result<usize> { in fastboot_usb_receive() 88 pub fn fastboot_usb_send(&self, data: &[u8]) -> Result<usize> { in fastboot_usb_send() 114 pub async fn receive_packet(&self, out: &mut [u8]) -> Result<usize> { in receive_packet() 134 pub async fn send_packet(&self, data: &[u8], timeout: Duration) -> Result<()> { in send_packet()
|
| D | block_io.rs | 37 &self, in read_blocks() 59 pub fn write_blocks(&self, lba: u64, buffer: &mut [u8]) -> Result<()> { in write_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() 60 &self, in read_blocks_ex() 99 pub async fn write_blocks_ex(&self, lba: u64, buffer: &mut [u8]) -> Result<()> { in write_blocks_ex() 141 pub fn reset(&self, extended_verification: bool) -> Result<()> { in reset()
|
| D | gbl_efi_fastboot.rs | 51 &self, in get_var() 81 pub fn get_var_all(&self, mut cb: impl FnMut(&[&CStr], &CStr)) -> Result<()> { in get_var_all() 139 pub fn run_oem_function(&self, cmd: &str, buffer: &mut [u8]) -> Result<usize> { in run_oem_function() 178 pub fn set_lock(&self, flags: u64) -> Result<()> { in set_lock() 187 pub fn clear_lock(&self, flags: u64) -> Result<()> { in clear_lock() 196 pub fn get_partition_permissions(&self, part_name: &str) -> Result<u64> { in get_partition_permissions() 227 pub fn update_local_session(&self, ctx: &LocalSessionContext, out: &mut [u8]) -> Result<usize> { in update_local_session() 246 pub fn close_local_session(&self, ctx: &LocalSessionContext) -> Result<()> { in close_local_session()
|
| 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()
|
| /bootable/libbootloader/gbl/libasync/src/ |
| D | cyclic_executor.rs | 32 pub fn spawn_task(&mut self, task: impl Future<Output = ()> + 'a) { in spawn_task() 42 pub fn poll(&mut self) { in poll() 54 pub fn run(&mut self) { in run()
|
| /bootable/libbootloader/gbl/efi/src/ |
| D | ops.rs | 170 fn get_efi_fdt_prop(&self, path: &str, prop: &CStr) -> Option<&'a [u8]> { in get_efi_fdt_prop() 188 &mut self, in get_buffer_image_loading() 252 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str() 292 fn reboot(&mut self) { in reboot() 297 &self, in disks() 310 &mut self, in zircon_add_device_zbi_items() 331 &'c mut self, in load_slot_interface() 346 fn avb_read_rollback_index(&mut self, rollback_index_location: usize) -> AvbIoResult<u64> { in avb_read_rollback_index() 357 &mut self, in avb_write_rollback_index() 370 fn avb_read_persistent_value(&mut self, name: &CStr, value: &mut [u8]) -> AvbIoResult<usize> { in avb_read_persistent_value() [all …]
|
| D | net.rs | 101 fn drop(&mut self) { in drop() 139 fn receive(&mut self, _: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive() 159 fn transmit(&mut self, _: Instant) -> Option<Self::TxToken<'_>> { in transmit() 173 fn consume<R, F>(self, f: F) -> R in consume() 209 fn consume<R, F>(mut self, len: usize, f: F) -> R in consume() 329 pub fn listen(&mut self, port: u16) -> Result<()> { in listen() 348 pub fn poll(&mut self) { in poll() 371 pub fn set_io_yield_threshold(&mut self, threshold: u64) { in set_io_yield_threshold() 376 pub async fn receive_exact(&mut self, out: &mut [u8], timeout: Duration) -> Result<()> { in receive_exact() 406 pub async fn send_exact(&mut self, data: &[u8], timeout: Duration) -> Result<()> { in send_exact() [all …]
|
| /bootable/libbootloader/gbl/libstorage/src/ |
| D | lib.rs | 90 &mut self, in read_blocks() 107 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<()>; in write_blocks() 122 &mut self, in read_blocks() 129 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<()> { in write_blocks() 145 &mut self, in read_blocks() 152 async fn write_blocks(&mut self, _: u64, _: &mut [u8]) -> Result<()> { in write_blocks() 263 &mut self, in read() 280 pub async fn write(&mut self, offset: u64, data: &mut [u8]) -> Result<()> { in write() 297 &mut self, in fill() 336 &mut self, in sync_gpt() [all …]
|
| D | ram_block.rs | 60 &mut self, in checks() 84 &mut self, 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/slots/ |
| D | android.rs | 92 fn set_priority(&mut self, priority: u8) { in set_priority() 99 fn set_tries(&mut self, tries: u8) { in set_tries() 106 fn set_successful(&mut self, successful: bool) { in set_successful() 113 fn set_verity_corrupted(&mut self, verity_corrupted: bool) { in set_verity_corrupted() 158 fn set_nb_slots(&mut self, nb_slots: u8) { in set_nb_slots() 170 fn set_recovery_tries(&mut self, recovery_tries: u8) { in set_recovery_tries() 182 fn set_merge_status(&mut self, merge_status: u8) { in set_merge_status() 265 fn prepare_for_sync(&mut self) { in prepare_for_sync() 271 fn get_slot_by_number(&self, number: usize) -> Result<Slot, Error> { in get_slot_by_number() 308 &mut self, in set_slot_unbootable() [all …]
|
| /bootable/libbootloader/gbl/libgbl/src/gbl_avb/ |
| D | ops.rs | 87 fn partition_size(&mut self, partition: &str) -> IoResult<u64> { in partition_size() 93 &mut self, in handle_verification_result() 209 &mut self, in read_from_partition() 234 fn get_preloaded_partition(&mut self, partition: &CStr) -> IoResult<&'a [u8]> { in get_preloaded_partition() 260 &mut self, in validate_vbmeta_public_key() 289 fn read_rollback_index(&mut self, rollback_index_location: usize) -> IoResult<u64> { in read_rollback_index() 297 fn write_rollback_index(&mut self, rollback_index_location: usize, index: u64) -> IoResult<()> { in write_rollback_index() 313 fn get_unique_guid_for_partition(&mut self, partition: &CStr) -> IoResult<Uuid> { in get_unique_guid_for_partition() 319 fn get_size_of_partition(&mut self, partition: &CStr) -> IoResult<u64> { in get_size_of_partition() 329 fn read_persistent_value(&mut self, name: &CStr, value: &mut [u8]) -> IoResult<usize> { in read_persistent_value() [all …]
|