/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 35 device_common: DeviceCommonData, field 44 device_common: DeviceCommonData::default(), in new() 66 self.inner().device_common.bus.clone() in bus() 70 self.inner().device_common.bus = bus; in set_bus() 74 self.inner().device_common.class = class; in set_class() 79 let r = guard.device_common.class.clone()?.upgrade(); in class() 81 guard.device_common.class = None; in class() 87 self.inner().device_common.driver.clone()?.upgrade() in driver() 91 self.inner().device_common.driver = driver; in set_driver() 109 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() [all …]
|
H A D | i8042_device.rs | 37 device_common: DeviceCommonData::default(), in new() 54 device_common: DeviceCommonData, field 70 self.inner().device_common.bus.clone() in bus() 74 self.inner().device_common.bus = bus; in set_bus() 78 let r = guard.device_common.class.clone()?.upgrade(); in class() 80 guard.device_common.class = None; in class() 86 self.inner().device_common.class = class; in set_class() 90 self.inner().device_common.driver.clone()?.upgrade() in driver() 94 self.inner().device_common.driver = driver; in set_driver() 112 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() [all …]
|
/DragonOS/kernel/src/driver/pci/ |
H A D | raw_device.rs | 37 device_common: DeviceCommonData, field 52 device_common: DeviceCommonData::default(), in from() 91 self.inner.read().device_common.bus.clone() in bus() 96 let r = guard.device_common.class.clone()?.upgrade(); in class() 98 guard.device_common.class = None; in class() 105 self.inner.read().device_common.driver.clone()?.upgrade() in driver() 125 self.inner.write().device_common.bus = bus; in set_bus() 131 self.inner.write().device_common.class = class; in set_class() 135 self.inner.write().device_common.driver = driver in set_driver() 143 self.inner.write().device_common.parent.clone() in dev_parent() [all …]
|
H A D | device.rs | 104 device_common: DeviceCommonData::default(), in new() 121 device_common: DeviceCommonData, field 194 self.inner().device_common.bus.clone() in bus() 198 self.inner().device_common.bus = bus in set_bus() 202 self.inner().device_common.driver.clone()?.upgrade() in driver() 210 self.inner().device_common.driver = driver; in set_driver() 230 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() 234 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 49 device_common: DeviceCommonData::default(), in new() 57 r.inner().device_common.can_match = true; in new() 78 device_common: DeviceCommonData, field 122 self.inner().device_common.bus = bus; in set_bus() 126 self.inner().device_common.class = class; in set_class() 131 .device_common in class() 138 .device_common in driver() 144 self.inner().device_common.driver = driver; in set_driver() 148 self.inner().device_common.dead in is_dead() 152 self.inner().device_common.can_match in can_match() [all …]
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 83 device_common: DeviceCommonData, field 119 device_common: DeviceCommonData::default(), in new() 202 self.inner().device_common.bus.clone() in bus() 206 self.inner().device_common.bus = bus; in set_bus() 211 let r = guard.device_common.class.clone()?.upgrade(); in class() 213 guard.device_common.class = None; in class() 220 self.inner().device_common.class = class; in set_class() 224 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver() 226 self.inner().device_common.driver = None; in driver() 233 self.inner().device_common.driver = driver; in set_driver() [all …]
|
H A D | loopback.rs | 257 device_common: DeviceCommonData, field 295 device_common: DeviceCommonData::default(), in new() 385 self.inner().device_common.bus.clone() in bus() 389 self.inner().device_common.bus = bus; in set_bus() 394 let r = guard.device_common.class.clone()?.upgrade(); in class() 396 guard.device_common.class = None; in class() 403 self.inner().device_common.class = class; in set_class() 407 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver() 409 self.inner().device_common.driver = None; in driver() 416 self.inner().device_common.driver = driver; in set_driver() [all …]
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 95 device_common: DeviceCommonData, field 212 device_common: DeviceCommonData::default(), in new() 246 self.inner().device_common.bus.clone() in bus() 250 self.inner().device_common.bus = bus; in set_bus() 255 let r = guard.device_common.class.clone()?.upgrade(); in class() 257 guard.device_common.class = None; in class() 264 self.inner().device_common.class = class; in set_class() 268 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver() 270 self.inner().device_common.driver = None; in driver() 277 self.inner().device_common.driver = driver; in set_driver() [all …]
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 202 device_common: DeviceCommonData, field 212 device_common: DeviceCommonData::default(), in new() 289 self.inner().device_common.bus.clone() in bus() 293 self.inner().device_common.bus = bus; in set_bus() 297 self.inner().device_common.driver.clone()?.upgrade() in driver() 306 self.inner().device_common.driver = driver; in set_driver() 322 self.inner().device_common.class = class; in set_class() 326 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() 330 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 54 device_common: DeviceCommonData, field 73 device_common: DeviceCommonData::default(), in new() 130 self.inner().device_common.bus = bus; in set_bus() 134 self.inner().device_common.get_bus_weak_or_clear() in bus() 138 self.inner().device_common.class = class; in set_class() 143 .device_common in class() 150 .device_common in driver() 156 self.inner().device_common.driver = driver; in set_driver() 179 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() 183 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 95 device_common: DeviceCommonData, field 113 device_common: DeviceCommonData::default(), in new() 193 self.inner().device_common.bus = bus; in set_bus() 197 self.inner().device_common.bus.clone() in bus() 211 .device_common in driver() 218 self.inner().device_common.driver = driver; in set_driver() 222 self.inner().device_common.dead in is_dead() 226 self.inner().device_common.can_match in can_match() 230 self.inner().device_common.can_match = can_match; in set_can_match() 242 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() [all …]
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 191 device_common: DeviceCommonData::default(), in new() 293 device_common: DeviceCommonData, field 359 self.inner().device_common.bus.clone() in bus() 363 self.inner().device_common.bus = bus; in set_bus() 368 let r = guard.device_common.class.clone()?.upgrade(); in class() 370 guard.device_common.class = None; in class() 377 self.inner().device_common.class = class; in set_class() 381 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver() 383 self.inner().device_common.driver = None; in driver() 390 self.inner().device_common.driver = driver; in set_driver() [all …]
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 255 self.inner.read().device_common.bus.clone() in bus() 259 self.inner.write().device_common.bus = bus; in set_bus() 271 self.inner.read().device_common.driver.clone()?.upgrade() in driver() 275 self.inner.write().device_common.driver = driver; in set_driver() 279 self.inner.read().device_common.can_match in can_match() 283 self.inner.write().device_common.can_match = can_match; in set_can_match() 295 self.inner.read().device_common.parent.clone() in dev_parent() 299 self.inner.write().device_common.parent = dev_parent; in set_dev_parent() 362 device_common: DeviceCommonData, field 370 device_common: DeviceCommonData::default(), in new()
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 132 device_common: DeviceCommonData, field 140 device_common: DeviceCommonData::default(), in new() 156 self.inner.write().device_common.bus = bus; in set_bus() 160 self.inner.read().device_common.bus.clone() in bus() 192 self.inner.read().device_common.parent.clone() in dev_parent() 196 self.inner.write().device_common.parent = dev_parent; in set_dev_parent()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 187 device_common: DeviceCommonData::default(), in new() 415 device_common: DeviceCommonData, field 443 self.inner().device_common.bus = bus; in set_bus() 447 self.inner().device_common.class = class; in set_class() 451 self.inner().device_common.driver.clone()?.upgrade() in driver() 455 self.inner().device_common.driver = driver; in set_driver() 469 self.inner().device_common.bus.clone() in bus() 474 let r = guard.device_common.class.clone()?.upgrade(); in class() 476 guard.device_common.class = None; in class() 483 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() [all …]
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 91 device_common: DeviceCommonData::default(), in new() 112 device_common: DeviceCommonData, field 163 self.inner().device_common.bus.clone() in bus() 167 self.inner().device_common.bus = bus; in set_bus() 171 self.inner().device_common.class = class; in set_class() 177 let r = guard.device_common.class.clone()?.upgrade(); in class() 180 guard.device_common.class = None; in class() 187 self.inner().device_common.driver.clone()?.upgrade() in driver() 191 self.inner().device_common.driver = driver; in set_driver() 209 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() [all …]
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 222 device_common: DeviceCommonData::default(), in new() 264 device_common: DeviceCommonData, field 380 self.inner().device_common.get_parent_weak_or_clear() in dev_parent() 384 self.inner().device_common.parent = dev_parent; in set_dev_parent()
|