Searched refs:device_size (Results 1 - 2 of 2) sorted by relevance
/fuchsia/zircon/system/utest/zxcrypt/ |
H A D | test-device.cpp | 97 bool TestDevice::Create(size_t device_size, size_t block_size, bool fvm) { argument 100 ASSERT_LT(device_size, SSIZE_MAX); 102 ASSERT_TRUE(CreateFvmPart(device_size, block_size)); 104 ASSERT_TRUE(CreateRamdisk(device_size, block_size)); 268 bool TestDevice::CreateRamdisk(size_t device_size, size_t block_size) { argument 272 size_t count = fbl::round_up(device_size, block_size) / block_size; 273 to_write_.reset(new (&ac) uint8_t[device_size]); 275 for (size_t i = 0; i < device_size; ++i) { 279 as_read_.reset(new (&ac) uint8_t[device_size]); 301 bool TestDevice::CreateFvmPart(size_t device_size, size_ argument [all...] |
H A D | test-device.h | 121 // Allocates a new block device of at least |device_size| bytes grouped into blocks of 125 bool Create(size_t device_size, size_t block_size, bool fvm); 160 // Allocates a new ramdisk of at least |device_size| bytes arranged into blocks of |block_size| 162 bool CreateRamdisk(size_t device_size, size_t block_size); 168 // an FVM partition of at least |device_size| bytes. It formats the ramdisk to be an FVM 170 bool CreateFvmPart(size_t device_size, size_t block_size);
|
Completed in 75 milliseconds