Home
last modified time | relevance | path

Searched defs:BlockId (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/src/driver/block/cache/
H A Dcache_iter.rs16 pub fn new(lba_id: BlockId, data_start_addr: BlockId, block_size: usize) -> Self { in new()
24 pub fn lba_id(&self) -> BlockId { in lba_id()
28 pub fn _data_start_addr(&self) -> BlockId { in _data_start_addr()
52 pub fn new(lba_id_start: BlockId, count: usize, block_size: usize) -> Self { in new()
90 pub fn new(lba_id: BlockId, index: usize) -> Self { in new()
94 pub fn lba_id(&self) -> BlockId { in lba_id()
H A Dcached_block_device.rs62 lba_id_start: BlockId, in read()
166 fn insert_one_block(lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert_one_block()
182 lba_id_start: BlockId, in immediate_write()
215 pub fn insert(&mut self, lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert()
276 pub fn insert(&mut self, lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert()
319 pub fn insert(&mut self, lba_id: BlockId, caddr: CacheBlockAddr) -> Option<()> { in insert()
327 pub fn remove(&mut self, lba_id: BlockId) { in remove()
347 pub fn insert(&mut self, lba_id: BlockId, caddr: CacheBlockAddr) -> Option<()> { in insert()
359 pub fn remove(&mut self, lba_id: BlockId) { in remove()
H A Dcache_block.rs35 pub fn from_data(lba_id: BlockId, data: Vec<u8>) -> Self { in from_data()
51 pub fn lba_id(&self) -> BlockId { in lba_id()
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs32 pub type BlockId = usize; typedef
214 pub fn __bytes_to_lba(addr: usize, blk_size: usize) -> BlockId { in __bytes_to_lba()
220 pub fn __lba_to_bytes(lba_id: usize, blk_size: usize) -> BlockId { in __lba_to_bytes()
308 lba_id_start: BlockId, in read_at_sync()
322 lba_id_start: BlockId, in write_at_sync()
355 lba_id_start: BlockId, in read_at()
366 lba_id_start: BlockId, in write_at()
377 lba_id_start: BlockId, in cache_read()
408 lba_id_start: BlockId, in cache_write()
H A Dgendisk.rs54 start_block_offset: BlockId, in read_at()
123 fn block_offset_2_disk_blkid(&self, block_offset: BlockId) -> BlockId { in block_offset_2_disk_blkid()
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs72 lba_id_start: BlockId, // 起始lba编号 in read_at()
228 lba_id_start: BlockId, in write_at()
565 lba_id_start: BlockId, // 起始lba编号 in read_at_sync()
575 lba_id_start: BlockId, in write_at_sync()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs228 lba_id_start: BlockId, in read_at_sync()
250 lba_id_start: BlockId, in write_at_sync()