Home
last modified time | relevance | path

Searched refs:Some (Results 1 – 25 of 30) sorted by relevance

12

/bootable/libbootloader/gbl/libstorage/src/
Dnon_blocking.rs151 IoStatus::Aborted => return Err(BlockIoError::Others(Some("Read aborted"))), in read_blocks()
171 IoStatus::Aborted => return Err(BlockIoError::Others(Some("write aborted"))), in write_blocks()
391 Some(buffer) => buffer.update(*io), in update_status()
414 Some(buffer) => buffer.is_aborted(), in is_aborted()
463 *buffer = Some(io_buffer.take()); in write()
467 self.current_io = Some(io_buffer); in write()
500 *buffer = Some(io_buffer.take()); in read()
504 self.current_io = Some(io_buffer); in read()
514 Some(_) => match !self.is_pending() { in take_io_buffer()
540 dev.write(offset, &mut Some(data), 0, len)?; in write_scoped()
[all …]
Dtestlib.rs138 Some(_) => Err(BlockIoError::MediaBusy), in write_blocks()
146 Some(NonBlockingIoState::Pending(query_timestamp(), blk_offset, buffer, false)); in write_blocks()
158 Some(_) => Err(BlockIoError::MediaBusy), in read_blocks()
166 Some(NonBlockingIoState::Pending(query_timestamp(), blk_offset, buffer, true)); in read_blocks()
174 Some(NonBlockingIoState::Pending(ts, blk_offset, ref mut buffer, is_read)) in check_status()
184 self.io = Some(NonBlockingIoState::Ready(IoStatus::Completed)); in check_status()
188 Some(NonBlockingIoState::Ready(v)) => { in check_status()
199 Some(NonBlockingIoState::Pending(_, _, _, _)) => { in abort()
200 self.io = Some(NonBlockingIoState::Ready(IoStatus::Aborted)); in abort()
385 self.scratch_size = Some(scratch_size); in set_scratch_size()
[all …]
Dmulti_blocks.rs70 res.err() == Some(StorageError::PartitionNotUnique) in check_part()
/bootable/libbootloader/gbl/efi/src/
Dnet.rs135 .receive(None, Some(&mut recv_size), &mut self.rx_frame[..], None, None, None) in receive()
138 true => Some(( in receive()
152 Some(TxToken { in transmit()
187 match self.protocol.get_status(Some(&mut interrupt_status), Some(&mut ptr)) {
188 Ok(()) if self.tx_frames.contains(&(ptr as *mut _)) => Some(ptr as *mut _),
193 Some(self.tx_frames[res])
207 Ok(Some(send_buffer)) => { in consume()
432 let timer = bs.create_event(EventType::TimerNotifySignal, Some(&mut notify))?; in with_efi_network()
Dfastboot.rs140 if let Some(socket) = socket.as_ref() { in fastboot_loop()
153 if let Some(usb) = usb.as_mut() { in fastboot_loop()
160 if let Some(socket) = socket.as_mut() { in fastboot_loop()
215 Ok(v) => Some(v), in run_fastboot()
223 fastboot_loop(efi_entry, &mut gbl_fb, &mut fastboot, Some(socket), usb.as_mut()) in run_fastboot()
Dutils.rs82 .map_err(|_| BlockIoError::Others(Some("EFI BLOCK_IO protocol read error"))) in read_blocks()
92 .map_err(|_| BlockIoError::Others(Some("EFI BLOCK_IO protocol write error"))) in write_blocks()
175 if let Some(config_tables) = entry.system_table().configuration_table() { in get_efi_fdt()
237 return Ok(Some(v)); in loop_with_timeout()
258 Ok(Some(key)) => match char::decode_utf16([key.unicode_char]).next().unwrap() { in wait_key_stroke()
Dfuchsia_boot.rs110 (Some(ZbiContainer::parse(custom_zbi_buffer).unwrap()), remains) in load_fuchsia_simple()
142 if let Some(val) = custom_zbi { in load_fuchsia_simple()
Dandroid_boot.rs56 let mut avb_ops = GblEfiAvbOps::new(gpt_dev, Some(&preloaded)); in avb_verify_slot()
65 Some(cstr_literal!("_a")), in avb_verify_slot()
/bootable/libbootloader/gbl/libabr/src/
Dc_staticlib.rs122 self.ops.read_abr_metadata.ok_or(Some("Missing read_abr_metadata() method"))?; in read_abr_metadata()
129 false => Err(Some("read_abr_metadata() failed")), in read_abr_metadata()
136 self.ops.write_abr_metadata.ok_or(Some("Missing write_abr_metadata() method"))?; in write_abr_metadata()
143 false => Err(Some("write_abr_metadata() failed")), in write_abr_metadata()
149 Some(&mut self.log) in console()
188 Some(v) => *v = successful, in AbrGetBootSlot()
/bootable/libbootloader/gbl/libefi/src/
Dlib.rs252 Some(from_raw_parts( in configuration_table()
421 Some(ref mut event_notify) => { in create_event()
422 (event_notify.tpl as _, Some(efi_event_cb), *event_notify as *mut _ as _) in create_event()
443 Some(self.efi_entry), in create_event()
579 if let Some(efi_entry) = self.efi_entry { in drop()
622 Some(Ref::<_, EfiMemoryDescriptor>::new_from_prefix(bytes).unwrap().0.into_ref()) in next()
730 if let Some(e) = entry { in panic()
1008 boot_services.free_pool = Some(free_pool); in run_test()
1009 boot_services.open_protocol = Some(open_protocol); in run_test()
1010 boot_services.close_protocol = Some(close_protocol); in run_test()
[all …]
Dallocation.rs79 EfiAllocator::Initialized(ref entry) => Some(entry), in get_efi_entry()
102 Some(ref entry) => { in deallocate()
Dprotocol.rs108 Some(f) => map_efi_err(f($($x,)*))
/bootable/libbootloader/gbl/libgbl/src/
Dops.rs203 Err(GblOpsError(Some("unimplemented"))) in visit_block_devices()
207 Err(GblOpsError(Some("unimplemented"))) in console_put_char()
211 Err(GblOpsError(Some("unimplemented"))) in should_stop_in_fastboot()
215 Err(GblOpsError(Some("unimplemented"))) in boot()
Dlib.rs174 static BOOT_TOKEN: Mutex<Option<BootToken>> = Mutex::new(Some(BootToken(())));
223 if let Some(tgt) = boot_target { tgt.suffix().into() } else { Default::default() }; in load_and_verify_image()
232 Some(avb_suffix), in load_and_verify_image()
463 if oneshot_status == Some(OneShot::Bootloader) { in lvb_inner()
472 None | Some(OneShot::Bootloader) => slot_cursor.ctx.get_boot_target(), in lvb_inner()
473 Some(OneShot::Continue(recovery)) => BootTarget::Recovery(recovery), in lvb_inner()
481 Some(boot_target), in lvb_inner()
519 let info_struct = self.unpack_boot_image(&boot_image, Some(boot_target))?; in lvb_inner()
685 avb_ops.default_vbmeta_key = Some(FakeVbmetaKey::Avb { in test_load_and_verify_image_stub()
/bootable/libbootloader/gbl/libefi/src/protocol/
Ddevice_path.rs84 text: Some(unsafe { core::slice::from_raw_parts(text, len) }), in new()
97 if let Some(text) = self.text { in fmt()
111 if let Some(text) = self.text { in drop()
Dsimple_text_input.rs53 Ok(()) => Ok(Some(key)), in read_key_stroke()
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dvars.rs83 PARTITION_SIZE => Some(snprintf!(out, "{:#x}", gbl_fb.partition_io(part).size()).len()), in get()
84 PARTITION_TYPE => Some(snprintf!(out, "raw").len()), // Image type not supported yet. in get()
147 Some(snprintf!(out, "{:#x}", val).len()) in get()
Dsparse.rs120 v => (v, Some(self.fill_value_or_skip_blocks)), in get_blocks_and_value()
180 (blks, Some(v)) => { in write_sparse_image()
214 if Some(val) != self.curr_val { in get()
216 self.curr_val = Some(val); in get()
Dmod.rs147 Some(id) => (id, devs.get(id)?.find_partition(gpt)?.size()?), in parse_partition()
473 check_gpt_upload(&mut gbl_fb, "boot_a", off, size, Some(0), expect_boot_a); in test_fetch_gpt_partition()
474 check_gpt_upload(&mut gbl_fb, "boot_b", off, size, Some(0), expect_boot_b); in test_fetch_gpt_partition()
475 check_gpt_upload(&mut gbl_fb, "vendor_boot_a", off, size, Some(1), expect_vendor_boot_a); in test_fetch_gpt_partition()
476 check_gpt_upload(&mut gbl_fb, "vendor_boot_b", off, size, Some(1), expect_vendor_boot_b); in test_fetch_gpt_partition()
/bootable/libbootloader/gbl/libgbl/src/slots/
Dpartition.rs124 SlotBlock { cache_status, boot_token: Some(boot_token), data, partition, partition_offset } in deserialize()
160 boot_token: Some(BootToken(())), in default()
Dfuchsia.rs72 OneShotFlags::RECOVERY => Some(OneShot::Continue(RecoveryTarget::Dedicated)), in from()
73 OneShotFlags::BOOTLOADER => Some(OneShot::Bootloader), in from()
81 if let Some(target) = oneshot { in from()
210 let target = if let Some(OneShot::Continue(r)) = self.get_oneshot_status() { in mark_boot_attempt()
264 if Some(oneshot) == self.get_oneshot_status() { in set_oneshot_status()
268 let oneshot_flag = OneShotFlags::from(Some(oneshot)); in set_oneshot_status()
533 assert_eq!(sb.get_oneshot_status(), Some($value));
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs439 Some(ref mut send) => send.send(msg).map(|_| true), in info_send()
632 let Some(cmd) = args.next() else { in process_next_packet() localVariable
729 let Some(var) = args.next() else { in get_var() localVariable
756 let mut utils = self.utils(Some(&mut info_sender)); in get_var_str()
837 fb_impl.flash(part, &mut self.utils(Some(&mut FastbootInfoSender::new(transport)))) in flash()
899 let mut utils = self.utils(Some(&mut info_sender)); in oem()
1042 Some(v) => { in get_var()
1113 Some(v) => { in receive_packet()
1367 fastboot_impl.oem_cb = Some(&mut oem_cb); in test_oem_cmd()
1398 fastboot_impl.flash_cb = Some(&mut flash_cb); in test_flash()
[all …]
/bootable/libbootloader/gbl/libgbl/tests/
Dintegration_tests.rs122 ops.boot_cb = Some(MustUse::new(&mut boot_cb)); in test_zircon_load_and_boot()
/bootable/libbootloader/gbl/libavb/src/
Dlib.rs52 Some(ptr) in avb_malloc_()
/bootable/deprecated-ota/edify/
DREADME.md44 Some examples:

12