Home
last modified time | relevance | path

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

/rust/kernel/
A Dplatform.rs73 let info = <Self as driver::Adapter>::id_info(pdev.as_ref()); in probe_callback()
78 pdev.as_ref().set_drvdata(data); in probe_callback()
93 let data = unsafe { pdev.as_ref().drvdata_obtain::<Pin<KBox<T>>>() }; in remove_callback()
95 T::unbind(pdev, data.as_ref()); in remove_callback()
275 .map(|resource| unsafe { IoRequest::new(self.as_ref(), resource) }) in io_request_by_index()
283 .map(|resource| unsafe { IoRequest::new(self.as_ref(), resource) }) in io_request_by_name()
298 unsafe { bindings::get_device(self.as_ref().as_raw()) }; in inc_ref()
308 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
A Dcpufreq.rs456 fn as_ref(&self) -> &bindings::cpufreq_policy { in as_ref() method
471 unsafe { CpuId::from_u32_unchecked(self.as_ref().cpu) } in cpu()
477 Hertz::from_khz(self.as_ref().min as usize) in min()
490 Hertz::from_khz(self.as_ref().max as usize) in max()
503 Hertz::from_khz(self.as_ref().cur as usize) in cur()
509 Hertz::from_khz(self.as_ref().suspend_freq as usize) in suspend_freq()
572 self.as_ref().fast_switch_possible in fast_switch_possible()
613 if self.as_ref().freq_table.is_null() { in freq_table()
636 if self.as_ref().driver_data.is_null() { in data()
650 if self.as_ref().driver_data.is_null() { in set_data()
[all …]
A Dauxiliary.rs73 adev.as_ref().set_drvdata(data); in probe_callback()
88 drop(unsafe { adev.as_ref().drvdata_obtain::<Pin<KBox<T>>>() }); in remove_callback()
226 this.as_ref().parent() in parent()
251 unsafe { bindings::get_device(self.as_ref().as_raw()) }; in inc_ref()
268 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
A Dpci.rs78 pdev.as_ref().set_drvdata(data); in probe_callback()
93 let data = unsafe { pdev.as_ref().drvdata_obtain::<Pin<KBox<T>>>() }; in remove_callback()
95 T::unbind(pdev, data.as_ref()); in remove_callback()
423 Devres::new(self.as_ref(), Bar::<SIZE>::new(self, bar, name)) in iomap_region_sized()
471 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
A Dfaux.rs54 fn as_ref(&self) -> &device::Device { in as_ref() method
A Dstr.rs48 .strip_prefix(pattern.as_ref().deref()) in strip_prefix()
146 fn as_ref(&self) -> &BStr { in as_ref() method
152 fn as_ref(&self) -> &BStr { in as_ref() method
522 fn as_ref(&self) -> &BStr { in as_ref() method
532 self.as_ref() in deref()
579 &self.as_ref()[index] in index()
A Dcpumask.rs72 pub unsafe fn as_ref<'a>(ptr: *const bindings::cpumask) -> &'a Self { in as_ref() method
287 pub unsafe fn as_ref<'a>(ptr: *const bindings::cpumask_var_t) -> &'a Self { in as_ref() method
A Ddma.rs36 to_result(unsafe { bindings::dma_set_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_mask()
53 to_result(unsafe { bindings::dma_set_coherent_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_coherent_mask()
73 bindings::dma_set_mask_and_coherent(self.as_ref().as_raw(), mask.value()) in dma_set_mask_and_coherent()
A Dtypes.rs249 &self.0.as_ref().unwrap().0 in deref()
A Dopp.rs465 .as_ref() in set()
470 .as_ref() in set()
475 .as_ref() in set()
/rust/kernel/sync/
A Darc.rs351 let refcount = unsafe { me.ptr.as_ref() }.refcount.get(); in into_unique_or_drop()
422 unsafe { &self.ptr.as_ref().data } in deref()
427 fn as_ref(&self) -> &T { in as_ref() method
461 let refcount = unsafe { self.ptr.as_ref() }.refcount.get(); in clone()
479 let refcount = unsafe { self.ptr.as_ref() }.refcount.get(); in drop()
640 unsafe { &self.inner.as_ref().data } in deref()
A Daref.rs136 unsafe { self.ptr.as_ref() } in deref()
/rust/kernel/drm/gem/
A Dmod.rs68 let obj = unsafe { obj.as_ref() }.as_raw(); in dec_ref()
264 unsafe { self.dev.as_ref() } in dev()
/rust/kernel/block/mq/
A Drequest.rs163 unsafe { Self::wrapper_ptr(core::ptr::from_ref(self).cast_mut()).as_ref() } in wrapper_ref()
/rust/kernel/drm/
A Ddriver.rs139 if drm.as_ref().as_raw() != dev.as_raw() { in new_foreign_owned()
A Ddevice.rs198 fn as_ref(&self) -> &device::Device { in as_ref() method
/rust/kernel/sync/lock/
A Dglobal.rs157 pub fn as_ref<'a>(&'a self, _guard: &'a GlobalGuard<B>) -> &'a T { in as_ref() method
/rust/macros/
A Dmodule.rs178 let mut modinfo = ModInfoBuilder::new(ident.as_ref()); in module()
/rust/kernel/list/
A Darc.rs440 fn as_ref(&self) -> &Arc<T> { in as_ref() function
/rust/kernel/alloc/
A Dkbox.rs492 unsafe { self.0.as_ref() } in deref()
/rust/kernel/net/
A Dphy.rs285 fn as_ref(&self) -> &kernel::device::Device { in as_ref() method

Completed in 38 milliseconds