Home
last modified time | relevance | path

Searched refs:GeneralBlockRange (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/driver/base/block/
H A Ddisk_info.rs5 use super::block_device::{BlockDevice, GeneralBlockRange};
55 impl TryInto<GeneralBlockRange> for Partition {
58 fn try_into(self) -> Result<GeneralBlockRange, Self::Error> { in try_into() argument
59 if let Some(range) = GeneralBlockRange::new( in try_into()
H A Dgendisk.rs10 use super::block_device::{BlockDevice, BlockId, GeneralBlockRange, LBA_SIZE};
15 range: GeneralBlockRange,
26 range: GeneralBlockRange, in new() argument
138 pub fn range(&self) -> &GeneralBlockRange { in range() argument
173 pub fn intersects(&self, range: &GeneralBlockRange) -> bool { in intersects()
H A Dblock_device.rs40 pub struct GeneralBlockRange { struct
45 impl GeneralBlockRange { impl
50 return Some(GeneralBlockRange { lba_start, lba_end }); in new()
66 GeneralBlockRange::new(start, end) in intersects_with()
296 fn disk_range(&self) -> GeneralBlockRange; in disk_range() argument
H A Dmanager.rs16 block_device::{BlockDevName, BlockDevice, GeneralBlockRange},
105 range: GeneralBlockRange, in register_gendisk_with_range() argument
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs19 block_device::{BlockDevName, BlockDevice, BlockId, GeneralBlockRange, LBA_SIZE},
214 fn disk_range(&self) -> GeneralBlockRange { in disk_range() argument
223 GeneralBlockRange::new(0, blocks).unwrap() in disk_range()
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs4 BlockDevName, BlockDevice, BlockId, GeneralBlockRange,
531 fn disk_range(&self) -> GeneralBlockRange { in disk_range() argument