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/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/pci/
H A Draw_device.rs37 device_common: DeviceCommonData, field
52 device_common: DeviceCommonData::default(), in from()
115 self.inner.read().device_common.bus.clone() in bus()
120 let r = guard.device_common.class.clone()?.upgrade(); in class()
122 guard.device_common.class = None; in class()
129 self.inner.read().device_common.driver.clone()?.upgrade() in driver()
149 self.inner.write().device_common.bus = bus; in set_bus()
155 self.inner.write().device_common.class = class; in set_class()
159 self.inner.write().device_common.driver = driver in set_driver()
167 self.inner.write().device_common.parent.clone() in dev_parent()
[all …]
H A Ddevice.rs111 device_common: DeviceCommonData::default(), in new()
128 device_common: DeviceCommonData, field
201 self.inner().device_common.bus.clone() in bus()
205 self.inner().device_common.bus = bus in set_bus()
209 self.inner().device_common.driver.clone()?.upgrade() in driver()
217 self.inner().device_common.driver = driver; in set_driver()
237 self.inner().device_common.get_parent_weak_or_clear() in dev_parent()
241 self.inner().device_common.parent = dev_parent; in set_dev_parent()
/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.rs263 device_common: DeviceCommonData, field
301 device_common: DeviceCommonData::default(), in new()
391 self.inner().device_common.bus.clone() in bus()
395 self.inner().device_common.bus = bus; in set_bus()
400 let r = guard.device_common.class.clone()?.upgrade(); in class()
402 guard.device_common.class = None; in class()
409 self.inner().device_common.class = class; in set_class()
413 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver()
415 self.inner().device_common.driver = None; in driver()
422 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.rs192 device_common: DeviceCommonData::default(), in new()
294 device_common: DeviceCommonData, field
360 self.inner().device_common.bus.clone() in bus()
364 self.inner().device_common.bus = bus; in set_bus()
369 let r = guard.device_common.class.clone()?.upgrade(); in class()
371 guard.device_common.class = None; in class()
378 self.inner().device_common.class = class; in set_class()
382 let r = self.inner().device_common.driver.clone()?.upgrade(); in driver()
384 self.inner().device_common.driver = None; in driver()
391 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.rs223 device_common: DeviceCommonData::default(), in new()
265 device_common: DeviceCommonData, field
381 self.inner().device_common.get_parent_weak_or_clear() in dev_parent()
385 self.inner().device_common.parent = dev_parent; in set_dev_parent()