Lines Matching refs:DeviceNumber
5 device_number::{DeviceNumber, Major},
550 from: DeviceNumber, in register_blockdev_region() argument
553 ) -> Result<DeviceNumber, SystemError> { in register_blockdev_region() argument
567 ) -> Result<DeviceNumber, SystemError> { in alloc_blockdev_region() argument
569 DeviceNumber::new(Major::UNNAMED_MAJOR, baseminor), in alloc_blockdev_region()
581 device_number: DeviceNumber, in __register_blockdev_region() argument
584 ) -> Result<DeviceNumber, SystemError> { in __register_blockdev_region() argument
595 if minorct > DeviceNumber::MINOR_MASK + 1 - baseminor { in __register_blockdev_region()
597 name, baseminor, baseminor + minorct - 1, 0, DeviceNumber::MINOR_MASK); in __register_blockdev_region()
599 let blockdev = DeviceStruct::new(DeviceNumber::new(major, baseminor), minorct, name); in __register_blockdev_region()
627 return Ok(DeviceNumber::new(major, baseminor)); in __register_blockdev_region()
636 device_number: DeviceNumber, in __unregister_blockdev_region() argument
673 pub fn bdev_del(_devnum: DeviceNumber, _range: usize) { in bdev_del() argument