Home
last modified time | relevance | path

Searched refs:from_foreign (Results 1 – 7 of 7) sorted by relevance

/linux/rust/kernel/
H A Dtypes.rs63 unsafe fn from_foreign(ptr: *mut c_void) -> Self; in from_foreign() method
81 unsafe { Some(Self::from_foreign(ptr)) } in try_from_foreign()
140 unsafe fn from_foreign(_: *mut c_void) -> Self {} in from_foreign() method
H A Dmaple_tree.rs189 let value = unsafe { T::from_foreign(ptr) }; in insert_range()
284 drop(unsafe { T::from_foreign(ptr) }); in free_all_entries()
475 let value = unsafe { T::from_foreign(ptr) }; in alloc_range()
H A Dxarray.rs71 drop(unsafe { T::from_foreign(ptr) }) in drop()
255 let value = unsafe { T::from_foreign(new) }; in store()
H A Ddevres.rs285 drop(unsafe { P::from_foreign(ptr.cast()) });
H A Ddevice.rs257 Some(unsafe { Pin::<KBox<T>>::from_foreign(ptr.cast()) }) in drvdata_obtain()
H A Dcpufreq.rs667 unsafe { <T as ForeignOwnable>::from_foreign(self.as_ref().driver_data.cast()) }, in clear_data()
/linux/rust/kernel/alloc/
H A Dkbox.rs500 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign() function
535 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign() function