Lines Matching refs:blk_size_log2

86     fn blk_size_log2(&self) -> u8;  in blk_size_log2()  method
114 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in read_at()
130 if self.blk_size_log2() > BLK_SIZE_LOG2_LIMIT { in read_at()
135 temp.resize(1usize << self.blk_size_log2(), 0); in read_at()
151 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in write_at()
164 if self.blk_size_log2() > BLK_SIZE_LOG2_LIMIT { in write_at()
169 temp.resize(1usize << self.blk_size_log2(), 0); in write_at()
192 pub blk_size_log2: u8, field
204 pub blk_size_log2: u8, field
209 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new()
213 blk_size_log2: blk_size_log2, in new()
217 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock()
221 blk_size_log2: blk_size_log2, in new_multiblock()
228 let blk_size_log2 = self.blk_size_log2; in next_block() localVariable
229 let blk_size = 1usize << self.blk_size_log2; in next_block()
245 blk_size_log2: blk_size_log2, in next_block()
251 let blk_size_log2 = self.blk_size_log2; in next_multiblock() localVariable
252 let blk_size = 1usize << self.blk_size_log2; in next_multiblock()
274 blk_size_log2: blk_size_log2, in next_multiblock()
306 return self.len() == (1usize << self.blk_size_log2); in is_full()
310 return self.len() >= (1usize << self.blk_size_log2) in is_multi()
311 && (self.len() % (1usize << self.blk_size_log2) == 0); in is_multi()
315 return (self.lba_start << self.blk_size_log2) + self.begin; in origin_begin()
319 return (self.lba_start << self.blk_size_log2) + self.end; in origin_end()