Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/block/cache/
H A Dcache_iter.rs40 pub struct BlockIter { struct
51 impl BlockIter { argument
62 impl Iterator for BlockIter { implementation
H A Dcached_block_device.rs9 cache_iter::{BlockIter, FailData},
67 let block_iter = BlockIter::new(lba_id_start, count, BLOCK_SIZE); in read()
89 fn check_able_to_read(block_iter: BlockIter) -> Result<Vec<CacheBlockAddr>, BlockCacheError> { in check_able_to_read()
187 let block_iter = BlockIter::new(lba_id_start, count, BLOCK_SIZE); in immediate_write()
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs77 pub struct BlockIter { struct
95 impl BlockIter { argument
97 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new() argument
98 return BlockIter { in new()
105 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock() argument
106 return BlockIter { in new_multiblock()
169 impl Iterator for BlockIter { implementation
421 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in write_at_bytes()
459 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in read_at_bytes()