Lines Matching refs:blk_size_log2

76     fn blk_size_log2(&self) -> u8;  in blk_size_log2()  method
104 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in read_at()
120 if self.blk_size_log2() > BLK_SIZE_LOG2_LIMIT { in read_at()
125 temp.resize(1usize << self.blk_size_log2(), 0); in read_at()
141 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in write_at()
154 if self.blk_size_log2() > BLK_SIZE_LOG2_LIMIT { in write_at()
159 temp.resize(1usize << self.blk_size_log2(), 0); in write_at()
182 pub blk_size_log2: u8, field
194 pub blk_size_log2: u8, field
199 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new()
203 blk_size_log2: blk_size_log2, in new()
207 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock()
211 blk_size_log2: blk_size_log2, in new_multiblock()
218 let blk_size_log2 = self.blk_size_log2; in next_block() localVariable
219 let blk_size = 1usize << self.blk_size_log2; in next_block()
235 blk_size_log2: blk_size_log2, in next_block()
241 let blk_size_log2 = self.blk_size_log2; in next_multiblock() localVariable
242 let blk_size = 1usize << self.blk_size_log2; in next_multiblock()
264 blk_size_log2: blk_size_log2, in next_multiblock()
296 return self.len() == (1usize << self.blk_size_log2); in is_full()
300 return self.len() >= (1usize << self.blk_size_log2) in is_multi()
301 && (self.len() % (1usize << self.blk_size_log2) == 0); in is_multi()
305 return (self.lba_start << self.blk_size_log2) + self.begin; in origin_begin()
309 return (self.lba_start << self.blk_size_log2) + self.end; in origin_end()