Lines Matching refs:blk_size
229 let blk_size = 1usize << self.blk_size_log2; in next_block() localVariable
230 let lba_id = self.begin / blk_size; in next_block()
231 let begin = self.begin % blk_size; in next_block()
232 let end = if lba_id == self.end / blk_size { in next_block()
233 self.end % blk_size in next_block()
235 blk_size in next_block()
252 let blk_size = 1usize << self.blk_size_log2; in next_multiblock() localVariable
253 let lba_start = self.begin / blk_size; in next_multiblock()
254 let lba_end = self.end / blk_size; in next_multiblock()
257 if __bytes_to_lba(self.begin, blk_size) in next_multiblock()
258 != __bytes_to_lba(self.begin + blk_size - 1, blk_size) in next_multiblock()
264 let begin = self.begin % blk_size; // 因为是多个整块,这里必然是0 in next_multiblock()
265 let end = __lba_to_bytes(lba_end, blk_size) - self.begin; in next_multiblock()
325 pub fn __bytes_to_lba(addr: usize, blk_size: usize) -> BlockId { in __bytes_to_lba()
326 return addr / blk_size; in __bytes_to_lba()
331 pub fn __lba_to_bytes(lba_id: usize, blk_size: usize) -> BlockId { in __lba_to_bytes()
332 return lba_id * blk_size; in __lba_to_bytes()