Searched refs:lba_id_start (Results 1 – 5 of 5) sorted by relevance
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cache_iter.rs | 42 lba_id_start: BlockId, field 52 pub fn new(lba_id_start: BlockId, count: usize, block_size: usize) -> Self { in new() 54 lba_id_start, in new() 68 self.lba_id_start + self.current, in next()
|
H A D | cached_block_device.rs | 62 lba_id_start: BlockId, in read() 67 let block_iter = BlockIter::new(lba_id_start, count, BLOCK_SIZE); in read() 182 lba_id_start: BlockId, in immediate_write() 187 let block_iter = BlockIter::new(lba_id_start, count, BLOCK_SIZE); in immediate_write()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | ahcidisk.rs | 72 lba_id_start: BlockId, // 起始lba编号 in read_at() 178 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in read_at() 179 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in read_at() 180 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in read_at() 181 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in read_at() 182 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in read_at() 183 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in read_at() 228 lba_id_start: BlockId, in write_at() 345 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in write_at() 346 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in write_at() [all …]
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 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() 359 self.cache_read(lba_id_start, count, buf) in read_at() 366 lba_id_start: BlockId, in write_at() 370 self.cache_write(lba_id_start, count, buf) in write_at() 377 lba_id_start: BlockId, in cache_read() 381 let cache_response = BlockCache::read(lba_id_start, count, buf); in cache_read() 386 let ans = self.read_at_sync(lba_id_start, count, buf)?; in cache_read() 390 let ans = self.read_at_sync(lba_id_start, count, buf)?; in cache_read() [all …]
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 229 lba_id_start: BlockId, in read_at_sync() 237 .read_blocks(lba_id_start, &mut buf[..count * LBA_SIZE]) in read_at_sync() 251 lba_id_start: BlockId, in write_at_sync() 257 .write_blocks(lba_id_start, &buf[..count * LBA_SIZE]) in write_at_sync()
|