Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 36) sorted by relevance

12

/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dvars.rs38 const VERSION_BOOTLOADER: &'static str = "version-bootloader"; variable
39 const VERSION_BOOTLOADER_VAL: &'static str = "1.0"; variable
41 const MAX_FETCH_SIZE: &'static str = "max-fetch-size"; variable
42 const MAX_FETCH_SIZE_VAL: &'static str = "0xffffffffffffffff"; variable
50 ) -> CommandResult<&'s str> { in get_var_internal()
100 const PARTITION_SIZE: &'static str = "partition-size"; variable
101 const PARTITION_TYPE: &'static str = "partition-type"; variable
108 ) -> CommandResult<&'s str> { in get_var_partition_size()
118 ) -> CommandResult<&'s str> { in get_var_partition_type()
152 const BLOCK_DEVICE: &'static str = "block-device"; variable
[all …]
Dmod.rs408 part: &'s str, in parse_partition()
409 ) -> CommandResult<(Option<&'s str>, usize, u64, u64)> { in parse_partition()
451 part: Option<&str>, in wait_partition_io()
464 part: &str, in parse_and_get_partition_io()
639 async fn flash(&mut self, part: &str, mut responder: impl InfoSender) -> CommandResult<()> { in flash()
664 async fn erase(&mut self, part: &str, mut responder: impl InfoSender) -> CommandResult<()> { in erase()
690 part: &str, in fetch()
728 async fn set_active(&mut self, slot: &str, _: impl InfoSender) -> CommandResult<()> { in set_active()
741 cmd: &str, in oem()
920 pub fn fuchsia_fastboot_mdns_packet(node_name: &str, ipv6_addr: &[u8]) -> Result<[u8; 140], Error> { in fuchsia_fastboot_mdns_packet()
[all …]
/bootable/libbootloader/gbl/tools/
Dgen_gpt_disk.py85 def parse_size_str(size_str: str) -> int:
101 def _append(src_file: str, offset: int, size: int, dst_file: str):
/bootable/libbootloader/gbl/
Dbazel.py25 def _partition(lst: list[str], index: Optional[int]) \
40 def __init__(self, workspace_dir: pathlib.Path, bazel_args: list[str]):
/bootable/libbootloader/gbl/libc/src/
Dstrcmp.rs64 fn do_strcmp(left: &str, right: &str) -> c_int { in do_strcmp()
71 fn do_strncmp(left: &str, right: &str, n: usize) -> c_int { in do_strncmp()
Dstrtoul.rs114 fn do_strtoul(input: &str, base: i32) -> (c_ulong, Option<usize>) { in do_strtoul()
131 fn do_strtoul_no_endptr(input: &str, base: i32) -> c_ulong { in do_strtoul_no_endptr()
Dstrchr.rs68 fn do_strchr(input: &str, c: char) -> Option<usize> { in do_strchr()
82 fn do_strrchr(input: &str, c: char) -> Option<usize> { in do_strrchr()
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs181 pub fn to_str(&self) -> &str { in to_str()
253 ) -> CommandResult<&'s str> { in get_var_as_str()
308 async fn flash(&mut self, part: &str, responder: impl InfoSender) -> CommandResult<()>; in flash()
316 async fn erase(&mut self, part: &str, responder: impl InfoSender) -> CommandResult<()>; in erase()
355 part: &str, in fetch()
391 async fn set_active(&mut self, slot: &str, responder: impl InfoSender) -> CommandResult<()>; in set_active()
421 cmd: &str, in oem()
466 name: &str, in send_var_info()
468 val: &str, in send_var_info()
553 msg_type: &str, in send_formatted_msg()
[all …]
/bootable/libbootloader/gbl/libgbl/src/android_boot/
Dmod.rs50 fn cstr_bytes_to_str(data: &[u8]) -> core::result::Result<&str, Error> { in cstr_bytes_to_str()
426 expected_bootargs: &str, in test_android_load_verify_fixup()
427 expected_fdt_property: &[(&str, &CStr, Option<&[u8]>)], in test_android_load_verify_fixup()
491 additional_parts: &[(&CStr, &str)], in test_android_load_verify_fixup_v2_or_lower()
492 additional_expected_fdt_properties: &[(&str, &CStr, Option<&[u8]>)], in test_android_load_verify_fixup_v2_or_lower()
627 vbmeta_file: &str, in test_android_load_verify_fixup_v3_or_v4()
628 expected_vendor_bootconfig: &str, in test_android_load_verify_fixup_v3_or_v4()
629 additional_expected_fdt_properties: &[(&str, &CStr, Option<&[u8]>)], in test_android_load_verify_fixup_v3_or_v4()
657 expected_vendor_bootconfig: &str, in test_android_load_verify_fixup_v3_or_v4_no_init_boot()
659 additional_expected_fdt_properties: &[(&str, &CStr, Option<&[u8]>)], in test_android_load_verify_fixup_v3_or_v4_no_init_boot()
[all …]
Dvboot.rs71 fn preloaded(&self) -> &[(&'a str, &'a [u8])] { in preloaded()
215 partitions: &[(&CStr, &str)], in test_avb_verify_slot()
Dload.rs69 fn slotted_part(part: &str, slot: u8) -> Result<ArrayString<RAW_PARTITION_NAME_LEN>, Error> { in slotted_part()
176 fn cmdline(buffer: &[u8]) -> Result<&str, Error> { in cmdline()
229 fn cmdline(buffer: &[u8]) -> Result<&str, Error> { in cmdline()
681 part: &str, in load_entire_part()
/bootable/libbootloader/gbl/libbootparams/src/
Dentry.rs51 fn remains(&self) -> &'a str { in remains()
82 fn parse_key(&mut self) -> Option<&'a str> { in parse_key()
93 fn parse_value(&mut self) -> Result<Option<&'a str>> { in parse_value()
/bootable/libbootloader/gbl/libgbl/src/fuchsia_boot/
Dmod.rs40 aliases: &'b [&str], in find_part_aliases()
41 ) -> Result<&'b str> { in find_part_aliases()
121 fn zircon_part_name_aliases(slot: Option<SlotIndex>) -> &'static [&'static str] { in zircon_part_name_aliases()
131 pub fn zircon_part_name(slot: Option<SlotIndex>) -> &'static str { in zircon_part_name()
136 fn slot_cmd_line(slot: SlotIndex) -> &'static str { in slot_cmd_line()
564 slot_item: &str, in test_load_verify_slotted_helper()
631 part: &str, in load_verify_test_data()
654 fn expect_load_verify_abr_ok(ops: &mut FakeGblOps, slot: SlotIndex, part: &str) { in expect_load_verify_abr_ok()
714 pub(crate) fn corrupt_data(ops: &mut FakeGblOps, part_name: &str) { in corrupt_data()
/bootable/libbootloader/gbl/libgbl/src/
Dpartition.rs47 pub fn to_str(&self) -> &str { in to_str()
69 pub fn name(&self) -> Result<&str, Error> { in name()
102 pub fn to_str(&self) -> &'static str { in to_str()
367 part: &str, in check_part_unique()
386 part: &str, in read_unique_partition()
399 part: &str, in write_unique_partition()
502 part: Option<&str>, in test_part_read()
541 fn test_part_write(blk: &TestGblDisk, part: Option<&str>, off: u64, sz: u64) { in test_part_write()
674 part: &str, in check_read_partition()
711 fn check_write_partition(devs: &[TestGblDisk], part: &str, off: u64, sz: u64) { in check_write_partition()
Dops.rs79 fn console_newline(&self) -> &'static str { in console_newline()
138 part: &str, in read_from_partition()
148 part: &str, in read_from_partition_sync()
158 part: &str, in write_to_partition()
168 part: &str, in write_to_partition_sync()
310 image_name: &str, in get_image_buffer()
330 ) -> Result<Option<&'c str>, Error>; in fixup_os_commandline()
544 image_name: &str, in get_image_buffer()
558 ) -> Result<Option<&'c str>, Error> { in fixup_os_commandline()
583 part: &str, in read_from_partition_sync()
[all …]
Dboot_reason.rs52 let str = match self { in fmt() localVariable
Dconstants.rs89 let str = match self { in fmt() localVariable
/bootable/libbootloader/gbl/libefi_types/src/
Dlib.rs43 pub fn get_str<'a>(&self, buffer_utf8: &'a mut [u8]) -> Result<&'a str, usize> { in get_str()
/bootable/libbootloader/gbl/libgbl/src/gbl_avb/
Dops.rs70 preloaded_partitions: &'a [(&'a str, &'a [u8])], in new()
96 digest: Option<&str>, in handle_verification_result()
183 fn cstr_to_str<E>(s: &CStr, err: E) -> Result<&str, E> { in cstr_to_str()
188 fn split_slotted(partition: &str) -> Result<(&str, SlotIndex), Error> { in split_slotted()
413 method_name: &str, in fallback_not_implemented()
520 preloaded_partition: &str, in test_read_preloaded_partition()
/bootable/libbootloader/gbl/efi/src/
Dops.rs140 image_name: &str, in get_buffer_from_protocol()
170 fn get_efi_fdt_prop(&self, path: &str, prop: &CStr) -> Option<&'a [u8]> { in get_efi_fdt_prop()
189 image_name: &str, in get_buffer_image_loading()
215 fn allocate_image_buffer(image_name: &str, size: NonZeroUsize) -> Result<ImageBuffer<'static>> { in allocate_image_buffer()
264 fn console_newline(&self) -> &'static str { in console_newline()
466 image_name: &str, in get_image_buffer()
485 ) -> Result<Option<&'c str>> { in fixup_os_commandline()
1174 ) -> Result<Option<&'a str>> { in test_fixup_os_commandline()
Dutils.rs182 image_type: &str, in get_platform_buffer_info()
/bootable/deprecated-ota/edify/
Dexpr.cpp67 Value* StringValue(const char* str) { in StringValue()
74 Value* StringValue(const std::string& str) { in StringValue()
84 std::string str; in ConcatFn() local
/bootable/libbootloader/gbl/libutils/src/
Dlib.rs98 pub fn to_str(&self) -> &str { in to_str()
/bootable/libbootloader/gbl/libfdt/src/
Dlib.rs184 pub fn get_property(&self, path: &str, name: &CStr) -> Result<&'a [u8]> { in get_property()
284 pub fn set_property(&mut self, path: &str, name: &CStr, val: &[u8]) -> Result<()> { in set_property()
304 path: &str, in set_property_placeholder()
/bootable/libbootloader/gbl/libefi/src/protocol/
Dgbl_efi_fastboot.rs139 pub fn run_oem_function(&self, cmd: &str, buffer: &mut [u8]) -> Result<usize> { in run_oem_function()
277 pub fn serial_number(&self) -> Result<&str> { in serial_number()

12