Searched refs:as_ref (Results 1 – 21 of 21) sorted by relevance
| /rust/kernel/ |
| A D | platform.rs | 73 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 D | cpufreq.rs | 456 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 D | auxiliary.rs | 73 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 D | pci.rs | 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() 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 D | faux.rs | 54 fn as_ref(&self) -> &device::Device { in as_ref() method
|
| A D | str.rs | 48 .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 D | cpumask.rs | 72 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 D | dma.rs | 36 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 D | types.rs | 249 &self.0.as_ref().unwrap().0 in deref()
|
| A D | opp.rs | 465 .as_ref() in set() 470 .as_ref() in set() 475 .as_ref() in set()
|
| /rust/kernel/sync/ |
| A D | arc.rs | 351 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 D | aref.rs | 136 unsafe { self.ptr.as_ref() } in deref()
|
| /rust/kernel/drm/gem/ |
| A D | mod.rs | 68 let obj = unsafe { obj.as_ref() }.as_raw(); in dec_ref() 264 unsafe { self.dev.as_ref() } in dev()
|
| /rust/kernel/block/mq/ |
| A D | request.rs | 163 unsafe { Self::wrapper_ptr(core::ptr::from_ref(self).cast_mut()).as_ref() } in wrapper_ref()
|
| /rust/kernel/drm/ |
| A D | driver.rs | 139 if drm.as_ref().as_raw() != dev.as_raw() { in new_foreign_owned()
|
| A D | device.rs | 198 fn as_ref(&self) -> &device::Device { in as_ref() method
|
| /rust/kernel/sync/lock/ |
| A D | global.rs | 157 pub fn as_ref<'a>(&'a self, _guard: &'a GlobalGuard<B>) -> &'a T { in as_ref() method
|
| /rust/macros/ |
| A D | module.rs | 178 let mut modinfo = ModInfoBuilder::new(ident.as_ref()); in module()
|
| /rust/kernel/list/ |
| A D | arc.rs | 440 fn as_ref(&self) -> &Arc<T> { in as_ref() function
|
| /rust/kernel/alloc/ |
| A D | kbox.rs | 492 unsafe { self.0.as_ref() } in deref()
|
| /rust/kernel/net/ |
| A D | phy.rs | 285 fn as_ref(&self) -> &kernel::device::Device { in as_ref() method
|
Completed in 38 milliseconds