Home
last modified time | relevance | path

Searched refs:as_ref (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/rust/kernel/
Ddevice.rs56 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
Dtypes.rs237 &self.0.as_ref().unwrap().0 in deref()
443 unsafe { self.ptr.as_ref() } in deref()
Dstr.rs440 fn as_ref(&self) -> &BStr { in as_ref() method
450 self.as_ref() in deref()
497 &self.as_ref()[index] in index()
/linux-6.12.1/rust/kernel/sync/
Darc.rs311 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() method
382 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()
/linux-6.12.1/drivers/net/phy/
Dqt2025.rs72 let fw = Firmware::request(c_str!("qt2025-2.0.3.3.fw"), dev.as_ref())?; in probe()
/linux-6.12.1/rust/kernel/block/mq/
Drequest.rs151 unsafe { Self::wrapper_ptr(self as *const Self as *mut Self).as_ref() } in wrapper_ref()
/linux-6.12.1/rust/kernel/net/
Dphy.rs285 fn as_ref(&self) -> &kernel::device::Device { in as_ref() method
288 unsafe { kernel::device::Device::as_ref(addr_of_mut!((*phydev).mdio.dev)) } in as_ref()
/linux-6.12.1/rust/macros/
Dmodule.rs185 let mut modinfo = ModInfoBuilder::new(info.name.as_ref()); in module()
/linux-6.12.1/rust/kernel/list/
Darc.rs439 fn as_ref(&self) -> &Arc<T> { in as_ref() function