Searched refs:id_table (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | bus.rs | 108 pub fn add_bus(&self, id_table: IdTable, bus_dev: Arc<dyn Bus>) { in add_bus() 110 bus_manager.buses.insert(id_table, bus_dev); in add_bus() 119 pub fn add_driver(&self, id_table: IdTable, bus_drv: Arc<dyn BusDriver>) { in add_driver() 121 bus_manager.bus_drvs.insert(id_table, bus_drv); in add_driver() 129 pub fn remove_bus(&self, id_table: &IdTable) { in remove_bus() 131 bus_manager.buses.remove(id_table); in remove_bus() 139 pub fn remove_bus_driver(&self, id_table: &IdTable) { in remove_bus_driver() 141 bus_manager.bus_drvs.remove(id_table); in remove_bus_driver() 149 pub fn get_bus(&self, id_table: &IdTable) -> Option<Arc<dyn Bus>> { in get_bus() 151 bus_manager.buses.get(id_table).cloned() in get_bus() [all …]
|
D | driver.rs | 37 fn id_table(&self) -> IdTable; in id_table() method 69 pub fn add_driver(&self, id_table: IdTable, drv: Arc<dyn Driver>) { in add_driver() 71 driver_manager.drivers.insert(id_table, drv); in add_driver() 79 pub fn remove_driver(&self, id_table: &IdTable) { in remove_driver() 81 driver_manager.drivers.remove(id_table); in remove_driver() 89 pub fn get_driver(&self, id_table: &IdTable) -> Option<Arc<dyn Driver>> { in get_driver() 91 driver_manager.drivers.get(id_table).cloned() in get_driver() 128 DRIVER_MANAGER.add_driver(driver.id_table(), driver); in driver_register() 137 DRIVER_MANAGER.add_driver(driver.id_table(), driver); in driver_unregister()
|
D | mod.rs | 184 fn id_table(&self) -> IdTable; in id_table() method 212 pub fn add_device(&self, id_table: IdTable, dev: Arc<dyn Device>) { in add_device() 214 device_manager.devices.insert(id_table, dev); in add_device() 222 pub fn remove_device(&self, id_table: &IdTable) { in remove_device() 224 device_manager.devices.remove(id_table); in remove_device() 232 pub fn get_device(&self, id_table: &IdTable) -> Option<Arc<dyn Device>> { in get_device() 234 device_manager.devices.get(id_table).cloned() in get_device() 271 DEVICE_MANAGER.add_device(device.id_table(), device.clone()); in device_register() 272 match sys_device_register(&device.id_table().to_name()) { in device_register() 285 DEVICE_MANAGER.add_device(device.id_table(), device.clone()); in device_unregister() [all …]
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | mod.rs | 77 fn get_device(&self, id_table: &IdTable) -> Option<Arc<dyn PlatformDevice>> { in get_device() 79 return device_map.get(id_table).cloned(); in get_device() 87 fn get_driver(&self, id_table: &IdTable) -> Option<Arc<dyn PlatformDriver>> { in get_driver() 89 return driver_map.get(id_table).cloned(); in get_driver() 97 let id_table = driver.id_table(); in register_platform_driver() localVariable 101 if drivers.contains_key(&id_table) { in register_platform_driver() 104 drivers.insert(id_table.clone(), driver.clone()); in register_platform_driver() 115 let id_table = driver.id_table(); in unregister_platform_driver() localVariable 116 self.0.lock().drivers.remove(&id_table); in unregister_platform_driver() 127 let id_table = device.id_table(); in register_platform_device() localVariable [all …]
|
/DragonOS-0.1.8/kernel/src/driver/uart/ |
D | uart.rs | 154 fn id_table(&self) -> IdTable { in id_table() method 211 fn id_table(&self) -> IdTable { in id_table() method 458 let device_inode = bus_device_register("platform:0", &UART_DEV.id_table().to_name()) in uart_init() 461 let driver_inode = bus_driver_register("platform:0", &UART_DRV.id_table().to_name()) in uart_init()
|