Lines Matching refs:Option

55 static mut VIRTIO_NET_DRIVER: Option<Arc<VirtIONetDriver>> = None;
80 name: Option<String>,
81 virtio_index: Option<VirtIODeviceIndex>,
93 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new()
139 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
143 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
147 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
151 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
155 fn kset(&self) -> Option<Arc<KSet>> { in kset()
159 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()
163 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
167 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()
201 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
205 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
209 fn class(&self) -> Option<Arc<dyn Class>> { in class()
219 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
223 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
232 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
251 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
255 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
285 fn virtio_device_index(&self) -> Option<VirtIODeviceIndex> { in virtio_device_index()
297 fn irq(&self) -> Option<IrqNumber> { in irq()
453 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
457 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
461 fn class(&self) -> Option<Arc<dyn Class>> { in class()
471 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
475 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
484 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
504 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
508 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
529 rx_buffer: Option<virtio_drivers::device::net::RxBuffer>,
535 rx_buffer: Option<virtio_drivers::device::net::RxBuffer>, in new()
554 ) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> { in receive()
565 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit()
625 dev_parent: Option<Arc<dyn Device>>, in virtio_net()
725 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
729 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
733 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
737 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
741 fn kset(&self) -> Option<Arc<KSet>> { in kset()
745 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()
749 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
773 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()
878 fn id_table(&self) -> Option<IdTable> { in id_table()
916 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
920 fn set_bus(&self, _bus: Option<Weak<dyn Bus>>) { in set_bus()
930 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
934 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
938 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
942 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
946 fn kset(&self) -> Option<Arc<KSet>> { in kset()
950 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()
954 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
958 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()