Searched refs:lba_start (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/driver/base/block/ |
H A D | disk_info.rs | 13 pub lba_start: u64, // 起始LBA号 field 24 lba_start: u64, in new() 31 lba_start, in new() 38 pub fn new_raw(start_sector: SectorT, lba_start: u64, sectors_num: u64, partno: u16) -> Self { in new_raw() 41 lba_start, in new_raw() 60 self.lba_start as usize, in try_into() 61 (self.lba_start + self.sectors_num) as usize, in try_into()
|
H A D | block_device.rs | 41 pub lba_start: usize, field 46 pub fn new(lba_start: usize, lba_end: usize) -> Option<Self> { in new() 47 if lba_start >= lba_end { in new() 50 return Some(GeneralBlockRange { lba_start, lba_end }); in new() 55 return self.lba_end - self.lba_start; in len() 61 if self.lba_start <= rhs.lba_end && self.lba_end >= rhs.lba_start { in intersects_with() 63 let start = usize::max(self.lba_start, rhs.lba_start); in intersects_with() 88 pub lba_start: usize, // 起始块的lba_id field 130 lba_start: lba_id, in next_block() 142 let lba_start = self.begin / blk_size; in next_multiblock() localVariable [all …]
|
H A D | gendisk.rs | 75 let start_lba = self.range.lba_start; in read_at_bytes() 84 let start_lba = self.range.lba_start; in disk_bytes_offset() 97 let start_lba = self.range.lba_start; in write_at_bytes() 124 self.range.lba_start + block_offset in block_offset_2_disk_blkid()
|