Searched refs:GeneralBlockRange (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/src/driver/base/block/ |
H A D | disk_info.rs | 5 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 D | gendisk.rs | 10 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 D | block_device.rs | 40 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 D | manager.rs | 16 block_device::{BlockDevName, BlockDevice, GeneralBlockRange}, 105 range: GeneralBlockRange, in register_gendisk_with_range() argument
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 19 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 D | ahcidisk.rs | 4 BlockDevName, BlockDevice, BlockId, GeneralBlockRange, 531 fn disk_range(&self) -> GeneralBlockRange { in disk_range() argument
|