/DragonOS/kernel/src/driver/base/char/ |
H A D | mod.rs | 206 id_table: IdTable, in cdev_add() 209 if id_table.device_number().data() == 0 { in cdev_add() 215 id_table.device_number(), in cdev_add() 228 pub fn cdev_del(id_table: IdTable, range: usize) { in cdev_del() 229 device_manager().remove_device(&id_table); in cdev_del() 230 kobj_unmap(DEVMAP.clone(), id_table.device_number(), range); in cdev_del()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 146 fn id_table(&self) -> IdTable; in id_table() method 275 id_table: IdTable, field 281 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new() 282 Self { id_table, state } in new() 285 pub fn id_table(&self) -> &IdTable { in id_table() method 286 &self.id_table in id_table() 534 if device.id_table().device_number().major() != Major::UNNAMED_MAJOR { in add_device() 837 let name = dev.id_table().name(); in create_sys_dev_entry() 846 let name = dev.id_table().name(); in remove_sys_dev_entry() 937 let device_number = dev.id_table().device_number(); in show()
|
H A D | driver.rs | 64 fn id_table(&self) -> Option<IdTable>; in id_table() method
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 78 if dev.id_table() != self.id_table().unwrap() { in probe() 124 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
H A D | sysfs.rs | 125 fn id_table(&self) -> IdTable { in id_table() method
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 101 id_table: IdTable, field 110 pub fn new(name: String, id_table: IdTable, tty_type: TtyType) -> Arc<TtyDevice> { in new() 111 let dev_num = id_table.device_number(); in new() 114 id_table, in new() 508 fn id_table(&self) -> crate::driver::base::device::IdTable { in id_table() method 509 self.id_table.clone() in id_table()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 355 fn id_table(&self) -> IdTable { in id_table() method 506 let id_table = VirtioDeviceId::new( in new() localVariable 514 result.add_virtio_id(id_table); in new() 550 self.inner().virtio_driver_common.id_table.clone() in virtio_id_table() 554 self.inner().virtio_driver_common.id_table.push_back(id); in add_virtio_id() 559 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | mod.rs | 63 pub id_table: LinkedList<VirtioDeviceId>, field
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 197 fn id_table(&self) -> IdTable { in id_table() method 449 fn id_table(&self) -> IdTable { in id_table() method 807 let id_table = VirtioDeviceId::new( in new() localVariable 815 result.add_virtio_id(id_table); in new() 869 self.inner().virtio_driver_common.id_table.clone() in virtio_id_table() 873 self.inner().virtio_driver_common.id_table.push_back(id); in add_virtio_id() 878 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
/DragonOS/kernel/src/driver/input/serio/ |
H A D | subsys.rs | 110 if let Some(drv_id_table) = driver.id_table() { in match_device()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | subsys.rs | 133 if let Some(drv_id_table) = driver.id_table() { in match_device()
|
H A D | platform_device.rs | 284 fn id_table(&self) -> IdTable { in id_table() method
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 83 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
H A D | pt_device.rs | 128 fn id_table(&self) -> IdTable { in id_table() method
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 61 fn id_table(&self) -> IdTable { in id_table() method
|
H A D | i8042_device.rs | 65 fn id_table(&self) -> IdTable { in id_table() method
|
H A D | i8042_driver.rs | 102 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
/DragonOS/kernel/src/driver/pci/ |
H A D | subsys.rs | 147 if let Some(driver_id_table) = driver.id_table() { in match_device()
|
H A D | device.rs | 196 fn id_table(&self) -> IdTable { in id_table() method
|
H A D | raw_device.rs | 136 fn id_table(&self) -> IdTable { in id_table() method
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 266 fn id_table(&self) -> IdTable { in id_table() method 475 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 660 pub fn bdev_add(_bdev: Arc<dyn BlockDevice>, id_table: IdTable) -> Result<(), DeviceError> { in bdev_add() 661 if id_table.device_number().data() == 0 { in bdev_add()
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 151 fn id_table(&self) -> IdTable { in id_table() method
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_driver.rs | 127 fn id_table(&self) -> Option<IdTable> { in id_table() method
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 117 fn id_table(&self) -> IdTable { in id_table() method
|