Searched refs:blk (Results 1 – 4 of 4) sorted by relevance
/bootable/libbootloader/gbl/libstorage/src/ |
D | lib.rs | 960 let mut blk = TestBlockDeviceBuilder::new() in read_test_helper() localVariable 972 blk.read(case.rw_offset, out).unwrap(); in read_test_helper() 976 blk.io.storage in read_test_helper() 983 assert!(blk.io.num_reads <= READ_WRITE_BLOCKS_UPPER_BOUND); in read_test_helper() 988 let mut blk = TestBlockDeviceBuilder::new() in write_test_helper() localVariable 995 let mut expected = blk.io.storage in write_test_helper() 1007 write_func(&mut blk, case.rw_offset, data); in write_test_helper() 1011 blk.io.storage in write_test_helper() 1042 let func = |blk: &mut TestBlockDevice, offset: u64, data: &mut [u8]| { 1043 blk.write(offset, data).unwrap(); [all …]
|
D | non_blocking.rs | 635 let mut blk = TestBlockDeviceBuilder::new() in test_read() localVariable 644 let mut blk_ex = blk.as_block_device_ex(); in test_read() 655 assert_eq!(blk.io.storage, [1, 0, 0, 4]); in test_read() 660 let mut blk = TestBlockDeviceBuilder::new() in test_write() localVariable 669 let mut blk_ex = blk.as_block_device_ex(); in test_write() 685 let mut blk = TestBlockDeviceBuilder::new() in test_read_write_blocking() localVariable 692 blk.as_block_device_ex().read_blocking(1, &mut io_buffer[..]).unwrap(); in test_read_write_blocking() 696 blk.as_block_device_ex().write_blocking(1, &mut io_buffer[..]).unwrap(); in test_read_write_blocking() 697 assert_eq!(blk.io.storage, [1, 0, 0, 4]); in test_read_write_blocking() 702 let mut blk = TestBlockDeviceBuilder::new() in test_abort() localVariable [all …]
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | vars.rs | 160 gbl_fb.storage().for_each_until(&mut |blk, id| { in get_all() 164 f(BLOCK_DEVICE, &[id, "total-blocks"], snprintf!(val, "{:#x}", blk.num_blocks()?))?; in get_all() 165 f(BLOCK_DEVICE, &[id, "block-size"], snprintf!(val, "{:#x}", blk.block_size()?)) in get_all()
|
/bootable/libbootloader/gbl/ |
D | README.md | 97 -device virtio-blk-device,drive=blk0
|