Lines Matching refs:inner
101 inner: SpinLock<InnerVirtIOBlkManager>, field
114 inner: SpinLock::new(InnerVirtIOBlkManager { in new()
121 fn inner(&self) -> SpinLockGuard<InnerVirtIOBlkManager> { in inner() method
122 self.inner.lock() in inner()
126 let mut inner = self.inner(); in alloc_id() localVariable
127 let idx = inner.id_bmp.first_false_index()?; in alloc_id()
128 inner.id_bmp.set(idx, true); in alloc_id()
130 inner.devname[idx] = Some(name.clone()); in alloc_id()
145 self.inner().id_bmp.set(id, false); in free_id()
146 self.inner().devname[id] = None; in free_id()
157 inner: SpinLock<InnerVirtIOBlkDevice>, field
188 inner: SpinLock::new(InnerVirtIOBlkDevice { in new()
201 fn inner(&self) -> SpinLockGuard<InnerVirtIOBlkDevice> { in inner() method
202 self.inner.lock() in inner()
216 let inner = self.inner(); in disk_range() localVariable
217 let blocks = inner.device_inner.capacity() as usize * SECTOR_SIZE / LBA_SIZE; in disk_range()
218 drop(inner); in disk_range()
233 let mut inner = self.inner(); in read_at_sync() localVariable
235 inner in read_at_sync()
255 self.inner() in write_at_sync()
307 self.inner().irq in irq()
323 self.inner().name = Some(name); in set_device_name()
327 self.inner() in device_name()
334 self.inner().virtio_index = Some(index); in set_virtio_device_index()
338 self.inner().virtio_index in virtio_device_index()
360 self.inner().device_common.bus.clone() in bus()
364 self.inner().device_common.bus = bus; in set_bus()
368 let mut guard = self.inner(); 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()
399 self.inner().device_common.can_match in can_match()
403 self.inner().device_common.can_match = can_match; in set_can_match()
411 self.inner().device_common.get_parent_weak_or_clear() in dev_parent()
415 self.inner().device_common.parent = parent; in set_dev_parent()
425 self.inner().kobject_common.kern_inode = inode; in set_inode()
429 self.inner().kobject_common.kern_inode.clone() in inode()
433 self.inner().kobject_common.parent.clone() in parent()
437 self.inner().kobject_common.parent = parent; in set_parent()
441 self.inner().kobject_common.kset.clone() in kset()
445 self.inner().kobject_common.kset = kset; in set_kset()
449 self.inner().kobject_common.kobj_type in kobj_type()
473 self.inner().kobject_common.kobj_type = ktype; in set_kobj_type()
494 inner: SpinLock<InnerVirtIOBlkDriver>, field
500 let inner = InnerVirtIOBlkDriver { in new() localVariable
511 inner: SpinLock::new(inner), in new()
519 fn inner(&self) -> SpinLockGuard<InnerVirtIOBlkDriver> { in inner() method
520 return self.inner.lock(); in inner()
550 self.inner().virtio_driver_common.id_table.clone() in virtio_id_table()
554 self.inner().virtio_driver_common.id_table.push_back(id); in add_virtio_id()
569 self.inner() in add_device()
582 let mut guard = self.inner(); in delete_device()
594 self.inner().driver_common.devices.clone() in devices()
612 self.inner().kobj_common.kern_inode = inode; in set_inode()
616 self.inner().kobj_common.kern_inode.clone() in inode()
620 self.inner().kobj_common.parent.clone() in parent()
624 self.inner().kobj_common.parent = parent; in set_parent()
628 self.inner().kobj_common.kset.clone() in kset()
632 self.inner().kobj_common.kset = kset; in set_kset()
636 self.inner().kobj_common.kobj_type in kobj_type()
640 self.inner().kobj_common.kobj_type = ktype; in set_kobj_type()