Lines Matching refs:inner
45 pub inner: Arc<SpinLock<E1000EDevice>>, field
88 inner: SpinLock<InnerE1000EInterface>, field
117 let mut device = self.driver.inner.lock(); in consume()
133 let inner: Arc<SpinLock<E1000EDevice>> = Arc::new(SpinLock::new(device)); in new() localVariable
134 let result = E1000EDriver { inner }; in new()
142 inner: self.inner.clone(), in clone()
155 match self.inner.lock().e1000e_receive() { in receive()
169 match self.inner.lock().e1000e_can_transmit() { in transmit()
197 smoltcp::wire::EthernetAddress(driver.inner.lock().mac_address()), in new()
210 inner: SpinLock::new(InnerE1000EInterface { in new()
221 pub fn inner(&self) -> SpinLockGuard<InnerE1000EInterface> { in inner() method
222 return self.inner.lock(); in inner()
246 self.inner().device_common.bus.clone() in bus()
250 self.inner().device_common.bus = bus; in set_bus()
254 let mut guard = self.inner(); 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()
285 self.inner().device_common.can_match in can_match()
289 self.inner().device_common.can_match = can_match; in set_can_match()
297 self.inner().device_common.get_parent_weak_or_clear() in dev_parent()
301 self.inner().device_common.parent = parent; in set_dev_parent()
307 let mac = self.driver.inner.lock().mac_address(); in mac()
354 return self.inner().netdevice_common.addr_assign_type; in addr_assign_type()
358 self.inner().netdevice_common.net_device_type = 1; // 以太网设备 in net_device_type()
359 return self.inner().netdevice_common.net_device_type; in net_device_type()
363 return self.inner().netdevice_common.state; in net_state()
367 self.inner().netdevice_common.state |= state; in set_net_state()
371 return self.inner().netdevice_common.operstate; in operstate()
375 self.inner().netdevice_common.operstate = state; in set_operstate()
385 self.inner().kobj_common.kern_inode = inode; in set_inode()
389 self.inner().kobj_common.kern_inode.clone() in inode()
393 self.inner().kobj_common.parent.clone() in parent()
397 self.inner().kobj_common.parent = parent; in set_parent()
401 self.inner().kobj_common.kset.clone() in kset()
405 self.inner().kobj_common.kset = kset; in set_kset()
409 self.inner().kobj_common.kobj_type in kobj_type()
433 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()