Home
last modified time | relevance | path

Searched refs:device_common (Results 1 – 17 of 17) sorted by relevance

/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs35 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 Di8042_device.rs37 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 Draw_device.rs37 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 Ddevice.rs104 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 Drtc.rs49 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 Dvirtio_net.rs83 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 Dloopback.rs257 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 De1000e_driver.rs95 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 Dplatform_device.rs202 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 Dsysfs.rs54 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 Dmod.rs95 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 Dvirtio_blk.rs191 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 Dmod.rs255 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 Dcpu.rs132 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 Dps_mouse_device.rs187 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 Dvesafb.rs91 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 Dfbmem.rs222 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()