Home
last modified time | relevance | path

Searched refs:id_table (Results 1 – 25 of 33) sorted by relevance

12

/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs206 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 Dmod.rs146 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 Ddriver.rs64 fn id_table(&self) -> Option<IdTable>; in id_table() method
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs78 if dev.id_table() != self.id_table().unwrap() { in probe()
124 fn id_table(&self) -> Option<IdTable> { in id_table() method
H A Dsysfs.rs125 fn id_table(&self) -> IdTable { in id_table() method
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs101 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 Dvirtio_blk.rs355 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 Dmod.rs63 pub id_table: LinkedList<VirtioDeviceId>, field
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs197 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 Dsubsys.rs110 if let Some(drv_id_table) = driver.id_table() { in match_device()
/DragonOS/kernel/src/driver/base/platform/
H A Dsubsys.rs133 if let Some(drv_id_table) = driver.id_table() { in match_device()
H A Dplatform_device.rs284 fn id_table(&self) -> IdTable { in id_table() method
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs83 fn id_table(&self) -> Option<IdTable> { in id_table() method
H A Dpt_device.rs128 fn id_table(&self) -> IdTable { in id_table() method
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs61 fn id_table(&self) -> IdTable { in id_table() method
H A Di8042_device.rs65 fn id_table(&self) -> IdTable { in id_table() method
H A Di8042_driver.rs102 fn id_table(&self) -> Option<IdTable> { in id_table() method
/DragonOS/kernel/src/driver/pci/
H A Dsubsys.rs147 if let Some(driver_id_table) = driver.id_table() { in match_device()
H A Ddevice.rs196 fn id_table(&self) -> IdTable { in id_table() method
H A Draw_device.rs136 fn id_table(&self) -> IdTable { in id_table() method
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs266 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 Dblock_device.rs660 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 Dcpu.rs151 fn id_table(&self) -> IdTable { in id_table() method
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs127 fn id_table(&self) -> Option<IdTable> { in id_table() method
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs117 fn id_table(&self) -> IdTable { in id_table() method

12