Searched refs:lba_id (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cache_iter.rs | 8 lba_id: BlockId, field 16 pub fn new(lba_id: BlockId, data_start_addr: BlockId, block_size: usize) -> Self { in new() 18 lba_id, in new() 24 pub fn lba_id(&self) -> BlockId { in lba_id() method 25 self.lba_id in lba_id() 84 lba_id: BlockId, field 90 pub fn new(lba_id: BlockId, index: usize) -> Self { in new() 91 FailData { lba_id, index } in new() 94 pub fn lba_id(&self) -> BlockId { in lba_id() method 95 self.lba_id in lba_id()
|
H A D | cached_block_device.rs | 98 match mapper.find(i.lba_id()) { in check_able_to_read() 104 None => fail_ans.push(FailData::new(i.lba_id(), index)), in check_able_to_read() 149 i.lba_id(), in insert() 166 fn insert_one_block(lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert_one_block() 168 space.insert(lba_id, data) in insert_one_block() 189 mapper.remove(i.lba_id()); in immediate_write() 215 pub fn insert(&mut self, lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert() 216 unsafe { self.0.get_mut().insert(lba_id, data) } in insert() 276 pub fn insert(&mut self, lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert() 278 let data_block = CacheBlock::from_data(lba_id, data); in insert() [all …]
|
H A D | cache_block.rs | 23 lba_id: BlockId, field 27 pub fn new(data: Box<[u8]>, flag: CacheBlockFlag, lba_id: BlockId) -> Self { in new() 31 lba_id, in new() 35 pub fn from_data(lba_id: BlockId, data: Vec<u8>) -> Self { in from_data() 37 CacheBlock::new(space_box, CacheBlockFlag::Unwrited, lba_id) in from_data() 51 pub fn lba_id(&self) -> BlockId { in lba_id() method 52 self.lba_id in lba_id()
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 119 let lba_id = self.begin / blk_size; in next_block() localVariable 121 let end = if lba_id == self.end / blk_size { in next_block() 130 lba_start: lba_id, in next_block() 131 lba_end: lba_id + 1, in next_block() 220 pub fn __lba_to_bytes(lba_id: usize, blk_size: usize) -> BlockId { in __lba_to_bytes() 221 return lba_id * blk_size; in __lba_to_bytes()
|