Searched refs:BlockIter (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cache_iter.rs | 40 pub struct BlockIter { struct 51 impl BlockIter { argument 62 impl Iterator for BlockIter { implementation
|
H A D | cached_block_device.rs | 9 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 D | block_device.rs | 77 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()
|