Searched refs:lba_start (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.9/kernel/src/driver/base/block/ |
D | disk_info.rs | 16 pub lba_start: u64, // 起始LBA号 field 27 lba_start: u64, in new() 34 lba_start, in new()
|
D | block_device.rs | 52 pub lba_start: usize, // 起始块的lba_id field 93 lba_start: lba_id, in next_block() 105 let lba_start = self.begin / blk_size; in next_multiblock() localVariable 111 || lba_start == lba_end in next_multiblock() 122 lba_start: lba_start, in next_multiblock() 167 return (self.lba_start << self.blk_size_log2) + self.begin; in origin_begin() 171 return (self.lba_start << self.blk_size_log2) + self.end; in origin_end() 255 let count: usize = (range.lba_end - range.lba_start).try_into().unwrap(); in write_at_bytes() 259 self.write_at(range.lba_start, count, buf_slice)?; in write_at_bytes() 268 self.read_at(range.lba_start, 1, &mut temp[..])?; in write_at_bytes() [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/fat/ |
D | bpb.rs | 229 .read_at(partition.lba_start as usize, 1, &mut v)?; in new()
|
D | fs.rs | 267 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new() 379 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry() 714 return (self.partition.lba_start in get_lba_from_offset() 734 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset()
|