Home
last modified time | relevance | path

Searched refs:chunk_len (Results 1 – 3 of 3) sorted by relevance

/trusty/user/app/storage/test/storage-unittest-aidl/unittests/
Dhelpers.rs96 fn check_valid_size(chunk_len: usize) -> Result<(), String> { in check_valid_size()
97 if chunk_len % std::mem::size_of::<u32>() != 0 { in check_valid_size()
98 return Err(format!("Chunk size ({}) not 32-bit aligned.", chunk_len)); in check_valid_size()
107 chunk_len: usize, in write_pattern()
109 check_valid_size(chunk_len)?; in write_pattern()
110 let mut buf = vec![0; chunk_len]; in write_pattern()
113 let chunk_offset = offset + i * chunk_len; in write_pattern()
118 if written != chunk_len.try_into().unwrap() { in write_pattern()
121 written, i, chunk_len, in write_pattern()
133 chunk_len: usize, in read_pattern()
[all …]
Dmod.rs183 let chunk_len = 2048; in write_read_sequential() localVariable
191 assert_ok!(write_pattern(&*file, 0, chunks, chunk_len)); in write_read_sequential()
194 assert_ok!(read_pattern(&*file, 0, chunks, chunk_len)); in write_read_sequential()
199 assert_ok!(read_pattern(&*file, 0, chunks, chunk_len)); in write_read_sequential()
/trusty/user/app/storage/test/storage-unittest/
Dmain.c146 size_t chunk_len, in WriteZeroChunk() argument
148 uint32_t data_buf[chunk_len / sizeof(uint32_t)]; in WriteZeroChunk()
150 assert(is_valid_size(chunk_len)); in WriteZeroChunk()
153 memset(data_buf, 0, chunk_len); in WriteZeroChunk()
160 size_t chunk_len, in WritePatternChunk() argument
162 uint32_t data_buf[chunk_len / sizeof(uint32_t)]; in WritePatternChunk()
164 assert(is_valid_size(chunk_len)); in WritePatternChunk()
167 fill_pattern32(data_buf, chunk_len, off); in WritePatternChunk()
175 size_t chunk_len, in WritePatternExt() argument
180 assert(is_valid_size(chunk_len)); in WritePatternExt()
[all …]