Home
last modified time | relevance | path

Searched refs:device_number (Results 1 – 25 of 30) sorted by relevance

12

/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs9 device_number::{DeviceNumber, Major},
73 if item.device_number().major().data() == index { in find_dynamic_major()
125 device_number: DeviceNumber, in __register_chardev_region()
129 let mut major = device_number.major(); in __register_chardev_region()
130 let baseminor = device_number.minor(); in __register_chardev_region()
152 match item.device_number().major().cmp(&major) { in __register_chardev_region()
158 if item.device_number().minor() + item.minorct() <= baseminor { in __register_chardev_region()
180 device_number: DeviceNumber, in __unregister_chardev_region()
185 .get_mut(Self::major_to_index(device_number.major())) in __unregister_chardev_region()
188 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_chardev_region()
[all …]
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs5 device_number::{DeviceNumber, Major},
529 if item.device_number().major() == Major::new(index) { in find_dynamic_major()
581 device_number: DeviceNumber, in __register_blockdev_region()
585 let mut major = device_number.major(); in __register_blockdev_region()
586 let baseminor = device_number.minor(); in __register_blockdev_region()
608 match item.device_number().major().cmp(&major) { in __register_blockdev_region()
614 if item.device_number().minor() + item.minorct() <= baseminor { in __register_blockdev_region()
636 device_number: DeviceNumber, in __unregister_blockdev_region()
641 .get_mut(Self::major_to_index(device_number.major())) in __unregister_blockdev_region()
644 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_blockdev_region()
[all …]
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs14 driver::{base::device::device_number::DeviceNumber, tty::pty::ptm_driver},
55 let device_number = driver in new() localVariable
56 .device_number(index) in new()
76 device_number, in new()
330 device_number: DeviceNumber, field
361 pub fn device_number(&self) -> &DeviceNumber { in device_number() method
362 &self.device_number in device_number()
H A Dtty_driver.rs18 device_number::{DeviceNumber, Major},
203 pub fn device_number(&self, index: usize) -> Option<DeviceNumber> { in device_number() method
331 IdTable::new(self.tty_line_name(idx), Some(*core.device_number())), in init_tty_device()
H A Dtty_device.rs16 device_number::{DeviceNumber, Major},
111 let dev_num = id_table.device_number(); in new()
/DragonOS/kernel/src/driver/base/map/
H A Dmod.rs4 device::device_number::{DeviceNumber, Major},
191 pub fn device_number(&self) -> DeviceNumber { in device_number() method
/DragonOS/kernel/src/driver/base/device/
H A Dmod.rs35 device_number::{DeviceNumber, Major},
50 pub mod device_number; module
344 pub fn device_number(&self) -> DeviceNumber { in device_number() method
534 if device.id_table().device_number().major() != Major::UNNAMED_MAJOR { in add_device()
937 let device_number = dev.id_table().device_number(); in show() localVariable
940 device_number.major().data(), in show()
941 device_number.minor() in show()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs19 device_number::{DeviceNumber, Major},
247 pub fn device_number(&self) -> DeviceNumber { in device_number() method
338 IdTable::new(Self::BASENAME.to_string(), Some(self.device_number())) in id_table()
/DragonOS/kernel/src/driver/tty/pty/
H A Dmod.rs10 device_number::{DeviceNumber, Major},
233 ptmx_dev.inner_write().metadata_mut().raw_dev = idt.device_number(); in unix98pty_init()
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs8 use crate::driver::base::device::device_number::DeviceNumber;
9 use crate::driver::base::device::device_number::Major;
424 dev_t: crate::driver::base::device::device_number::DeviceNumber, in mknod()
/DragonOS/kernel/src/filesystem/devfs/
H A Dnull_dev.rs1 use crate::driver::base::device::device_number::DeviceNumber;
H A Dzero_dev.rs1 use crate::driver::base::device::device_number::DeviceNumber;
H A Dmod.rs13 driver::base::device::device_number::DeviceNumber,
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs1 use crate::driver::base::device::device_number::DeviceNumber;
H A Dvcpu_dev.rs3 use crate::driver::base::device::device_number::DeviceNumber;
H A Dvm_dev.rs1 use crate::driver::base::device::device_number::DeviceNumber;
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs15 device_number::{DeviceNumber, Major},
107 let devnum = *tty_core_data.device_number(); in devfs_setup()
/DragonOS/kernel/src/driver/keyboard/
H A Dps2_keyboard.rs13 base::device::device_number::{DeviceNumber, Major},
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs17 device_number::{DeviceNumber, Major},
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs17 device_number::{DeviceNumber, Major},
H A Dmod.rs19 bus::Bus, device_manager, device_number::Major, driver::Driver, Device,
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs16 block::block_device::BlockDevice, char::CharDevice, device::device_number::DeviceNumber,
H A Dmount.rs16 driver::base::device::device_number::DeviceNumber,
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs13 driver::base::device::device_number::DeviceNumber,
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs18 bus::Bus, device_manager, device_number::DeviceNumber, driver::Driver, Device,

12