/bootable/recovery/fuse_sideload/ |
D | fuse_sideload.cpp | 104 struct iovec vec[2]; in fuse_reply() local 105 vec[0].iov_base = &hdr; in fuse_reply() 106 vec[0].iov_len = sizeof(hdr); in fuse_reply() 107 vec[1].iov_base = const_cast<void*>(data); in fuse_reply() 108 vec[1].iov_len = len; in fuse_reply() 110 int res = writev(fd->ffd, vec, 2); in fuse_reply() 299 struct iovec vec[3]; in handle_read() local 300 vec[0].iov_base = &outhdr; in handle_read() 301 vec[0].iov_len = sizeof(outhdr); in handle_read() 321 vec[1].iov_base = fd->block_data + block_offset; in handle_read() [all …]
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | multi_blocks.rs | 154 let mut devs: TestMultiBlockDevices = TestMultiBlockDevices(vec![ in test_get() 170 TestMultiBlockDevices(vec![blk_0.as_slice().into(), blk_1.as_slice().into()]); in test_multi_block_read() 172 let mut out = vec![0u8; blk_0[off..].len()]; in test_multi_block_read() 176 let mut out = vec![0u8; blk_1[off..].len()]; in test_multi_block_read() 186 let mut devs = TestMultiBlockDevices(vec![ in test_multi_block_write() 200 let mut devs = TestMultiBlockDevices(vec![ in test_multi_block_gpt_partition_size() 241 let mut out = vec![0u8; expected.len()]; in check_read_partition() 250 let mut devs = TestMultiBlockDevices(vec![ in test_multi_block_gpt_read() 279 let mut out = vec![0u8; to_write.len()]; in check_write_partition() 294 let mut devs = TestMultiBlockDevices(vec![ in test_multi_block_gpt_write() [all …]
|
D | lib.rs | 934 let buffer = vec![0u8; aligned_size]; in new() 1310 assert!(blk.read(0, &mut vec![0u8; block_size.try_into().unwrap()]).is_err()); in test_scratch_too_small() 1321 assert!(blk.read(512, &mut vec![0u8; 1]).is_err()); in test_read_overflow() 1322 assert!(blk.read(0, &mut vec![0u8; 513]).is_err()); in test_read_overflow() 1333 assert!(blk.read(u64::MAX, &mut vec![0u8; 1]).is_err()); in test_read_arithmetic_overflow() 1344 assert!(blk.write(512, vec![0u8; 1].as_mut_slice()).is_err()); in test_write_overflow() 1345 assert!(blk.write(0, vec![0u8; 513].as_mut_slice()).is_err()); in test_write_overflow() 1356 assert!(blk.write(u64::MAX, vec![0u8; 1].as_mut_slice()).is_err()); in test_write_arithmetic_overflow()
|
D | gpt.rs | 445 dev.scratch = vec![0u8; dev.scratch.len() - 1]; in test_gpt_buffer_too_small() 584 let mut actual_boot_a = vec![0u8; expect_boot_a.len()]; in test_gpt_read() 585 let mut actual_boot_b = vec![0u8; expect_boot_b.len()]; in test_gpt_read() 614 let mut actual_boot_a = vec![0u8; expect_boot_a.len()]; in test_gpt_write() 615 let mut actual_boot_b = vec![0u8; expect_boot_b.len()]; in test_gpt_write()
|
D | testlib.rs | 394 DiskDescription::Disk(BackingStore::Size(size)) => vec![0u8; size], in build() 407 scratch: vec![0u8; scratch_size], in build() 458 let mut store = vec![0; block_size]; in partitions_to_disk_data()
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | mod.rs | 277 let mut out = vec![0u8; fastboot::MAX_RESPONSE_SIZE]; in check_var() 286 let mut devs = TestMultiBlockDevices(vec![ in test_get_var_partition_info() 310 let mut out = vec![0u8; fastboot::MAX_RESPONSE_SIZE]; in test_get_var_partition_info() 318 let mut devs = TestMultiBlockDevices(vec![ in test_get_var_all() 368 vec![0u8; core::cmp::max(1, usize::try_from(size).unwrap() / 2usize)]; in fetch() 370 let mut upload_out = vec![0u8; usize::try_from(size).unwrap()]; in fetch() 381 let mut devs = TestMultiBlockDevices(vec![ in test_fetch_invalid_partition_arg() 424 TestMultiBlockDevices(vec![disk_0.as_slice().into(), disk_1.as_slice().into()]); in test_fetch_raw_block() 458 let mut devs = TestMultiBlockDevices(vec![ in test_fetch_gpt_partition() 506 TestMultiBlockDevices(vec![disk_0.as_slice().into(), disk_1.as_slice().into()]); in test_flash_partition() [all …]
|
D | sparse.rs | 285 let mut out = vec![0u8; 2 * raw.len()]; in test_sparse_write() 302 let mut out = vec![0u8; 2 * raw.len()]; in test_sparse_write_non_default_block_size()
|
/bootable/libbootloader/gbl/libfdt/src/ |
D | lib.rs | 313 let mut fdt_buf = vec![0u8; init.len()]; in test_new_from_invalid_fdt() 324 let mut fdt_buf = vec![0u8; init.len()]; in test_get_property() 351 let mut fdt_buf = vec![0u8; init.len() + 512]; in test_set_property() 353 let data = vec![0x11u8, 0x22u8, 0x33u8]; in test_set_property() 361 let mut fdt_buf = vec![0u8; init.len() + 512]; in test_set_property_placeholder() 363 let data = vec![0x11u8, 0x22u8, 0x33u8, 0x44u8, 0x55u8]; in test_set_property_placeholder() 390 let mut fdt_buf = vec![0u8; init.len() + 512]; in test_fdt_shrink_to_fit()
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 1165 let mut download_buffer = vec![0u8; 1024]; in test_non_exist_command() 1176 let mut download_buffer = vec![0u8; 1024]; in test_non_ascii_command_string() 1187 let mut download_buffer = vec![0u8; 1024]; in test_get_var_max_download_size() 1206 let mut download_buffer = vec![0u8; 1024]; in test_get_var() 1243 let mut download_buffer = vec![0u8; 1024]; in test_get_var_all() 1264 let mut download_buffer = vec![0u8; 1024]; in test_download() 1285 let mut download_buffer = vec![0u8; 1024]; in test_download_not_enough_args() 1296 let mut download_buffer = vec![0u8; 1024]; in test_download_invalid_hex_string() 1307 let mut download_buffer = vec![0u8; download_buffer_size]; in test_download_size() 1328 let mut download_buffer = vec![0u8; 1024]; in test_download_more_than_expected() [all …]
|
/bootable/libbootloader/gbl/libgbl/tests/ |
D | integration_tests.rs | 18 use std::{collections::VecDeque, vec::Vec}; 124 let mut load_buffer = vec![0u8; 64 * 1024]; in test_zircon_load_and_boot()
|
/bootable/libbootloader/gbl/efi/src/ |
D | utils.rs | 15 use alloc::vec::Vec; 108 let scratch = vec![0u8; required_scratch_size(&mut io, MAX_GPT_ENTRIES)?]; in new() 119 pub struct EfiMultiBlockDevices<'a>(pub alloc::vec::Vec<EfiGptDevice<'a>>);
|
D | net.rs | 19 use alloc::{boxed::Box, vec::Vec}; 87 tx_frames: vec![core::ptr::null_mut(); extra_tx_frames + 1], in new() 456 let mut tx_buffer = vec![0u8; SOCKET_TX_RX_BUFFER]; in with_efi_network() 457 let mut rx_buffer = vec![0u8; SOCKET_TX_RX_BUFFER]; in with_efi_network()
|
D | fuchsia_boot.rs | 191 let mut load_buffer = vec![0u8; 128 * 1024 * 1024]; // 128MB in fuchsia_boot_demo()
|
D | fastboot.rs | 211 let mut download_buffer = vec![0u8; 512 * 1024 * 1024]; in run_fastboot()
|
D | android_boot.rs | 356 let mut load_buffer = vec![0u8; 128 * 1024 * 1024]; // 128MB in android_boot_demo()
|
/bootable/libbootloader/gbl/smoltcp/ |
D | heapless.rs | 30 use alloc::vec::Vec as AllocVec;
|
/bootable/libbootloader/gbl/libefi/src/protocol/ |
D | device_path.rs | 134 assert_eq!(path.text().unwrap().to_vec(), vec![1, 2, 3]); in test_device_path_text_drop()
|
/bootable/libbootloader/gbl/third_party/libzbi/src/ |
D | lib.rs | 2311 vec![ in get_all_zbi_type_values() 2349 vec![ZbiType::KernelRiscv64, ZbiType::KernelX64, ZbiType::KernelArm64] in get_kernel_zbi_types() 2352 vec![ in get_metadata_zbi_types() 2455 vec![ in get_test_payloads_all() 2470 vec![ in get_test_zbi_headers_all()
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | fuchsia.rs | 310 let expected: Vec<Slot> = vec![ in test_slot_block_defaults()
|
/bootable/libbootloader/gbl/libefi/src/ |
D | lib.rs | 54 use alloc::vec::Vec;
|