Lines Matching refs:inner
82 let mut device = self.driver.inner.lock(); in consume()
169 pub inner: Arc<SpinLock<Loopback>>, field
175 let inner = Arc::new(SpinLock::new(Loopback::new())); in new() localVariable
176 LoopbackDriver { inner } in new()
183 inner: self.inner.clone(), in clone()
220 let buffer = self.inner.lock().loopback_receive(); in receive()
256 inner: SpinLock<InnerLoopbackInterface>, field
299 inner: SpinLock::new(InnerLoopbackInterface { in new()
308 fn inner(&self) -> SpinLockGuard<InnerLoopbackInterface> { in inner() method
309 return self.inner.lock(); in inner()
329 self.inner().kobj_common.kern_inode = inode; in set_inode()
333 self.inner().kobj_common.kern_inode.clone() in inode()
337 self.inner().kobj_common.parent.clone() in parent()
341 self.inner().kobj_common.parent = parent; in set_parent()
345 self.inner().kobj_common.kset.clone() in kset()
349 self.inner().kobj_common.kset = kset; in set_kset()
353 self.inner().kobj_common.kobj_type in kobj_type()
377 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()
391 self.inner().device_common.bus.clone() in bus()
395 self.inner().device_common.bus = bus; in set_bus()
399 let mut guard = self.inner(); 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()
430 self.inner().device_common.can_match in can_match()
434 self.inner().device_common.can_match = can_match; in set_can_match()
442 self.inner().device_common.get_parent_weak_or_clear() in dev_parent()
446 self.inner().device_common.parent = parent; in set_dev_parent()
519 return self.inner().netdevice_common.addr_assign_type; in addr_assign_type()
523 self.inner().netdevice_common.net_device_type = 24; // 环回设备 in net_device_type()
524 return self.inner().netdevice_common.net_device_type; in net_device_type()
528 return self.inner().netdevice_common.state; in net_state()
532 self.inner().netdevice_common.state |= state; in set_net_state()
536 return self.inner().netdevice_common.operstate; in operstate()
540 self.inner().netdevice_common.operstate = state; in set_operstate()