Searched refs:as_ref (Results 1 – 9 of 9) sorted by relevance
56 unsafe { Self::as_ref(ptr) }.into() in get_device()72 pub unsafe fn as_ref<'a>(ptr: *mut bindings::device) -> &'a Self { in as_ref() method
237 &self.0.as_ref().unwrap().0 in deref()443 unsafe { self.ptr.as_ref() } in deref()
440 fn as_ref(&self) -> &BStr { in as_ref() method450 self.as_ref() in deref()497 &self.as_ref()[index] in index()
311 let refcount = unsafe { me.ptr.as_ref() }.refcount.get(); in into_unique_or_drop()367 unsafe { &self.ptr.as_ref().data } in deref()372 fn as_ref(&self) -> &T { in as_ref() method382 unsafe { bindings::refcount_inc(self.ptr.as_ref().refcount.get()) }; in clone()395 let refcount = unsafe { self.ptr.as_ref() }.refcount.get(); in drop()556 unsafe { &self.inner.as_ref().data } in deref()
72 let fw = Firmware::request(c_str!("qt2025-2.0.3.3.fw"), dev.as_ref())?; in probe()
151 unsafe { Self::wrapper_ptr(self as *const Self as *mut Self).as_ref() } in wrapper_ref()
285 fn as_ref(&self) -> &kernel::device::Device { in as_ref() method288 unsafe { kernel::device::Device::as_ref(addr_of_mut!((*phydev).mdio.dev)) } in as_ref()
185 let mut modinfo = ModInfoBuilder::new(info.name.as_ref()); in module()
439 fn as_ref(&self) -> &Arc<T> { in as_ref() function