Home
last modified time | relevance | path

Searched refs:from (Results 1 – 24 of 24) sorted by relevance

/rust/helpers/
A Duaccess.c5 unsigned long rust_helper_copy_from_user(void *to, const void __user *from, in rust_helper_copy_from_user() argument
8 return copy_from_user(to, from, n); in rust_helper_copy_from_user()
11 unsigned long rust_helper_copy_to_user(void __user *to, const void *from, in rust_helper_copy_to_user() argument
14 return copy_to_user(to, from, n); in rust_helper_copy_to_user()
/rust/kernel/alloc/kvec/
A Derrors.rs18 fn from(_: PushError<T>) -> Error { in from() method
35 fn from(_: RemoveError) -> Error { in from() method
58 fn from(_: InsertError<T>) -> Error { in from() method
/rust/pin-init/examples/
A Derror.rs14 fn from(e: Infallible) -> Self { in from() method
21 fn from(_: AllocError) -> Self { in from() method
A Dpthread_mutex.rs52 fn from(e: Infallible) -> Self { in from() method
59 fn from(_: AllocError) -> Self { in from() method
/rust/kernel/list/
A Darc.rs174 Ok(Self::from(UniqueArc::new(contents, flags)?)) in new()
187 Ok(Self::from(UniqueArc::try_pin_init(init, flags)?)) in pin_init()
198 Ok(Self::from(UniqueArc::try_init(init, flags)?)) in init()
208 fn from(unique: UniqueArc<T>) -> Self { in from() function
209 Self::from(Pin::from(unique)) in from()
219 fn from(mut unique: Pin<UniqueArc<T>>) -> Self { in from() function
222 let arc = Arc::from(unique); in from()
241 Self::pair_from_pin_unique(Pin::from(unique)) in pair_from_unique()
261 let arc1 = Arc::from(unique); in pair_from_pin_unique()
300 Some(unsafe { Self::transmute_from_arc(Arc::from(arc)) }) in try_from_arc_borrow()
[all …]
/rust/kernel/
A Derror.rs200 fn from(_: AllocError) -> Error { in from() method
206 fn from(_: TryFromIntError) -> Error { in from() method
212 fn from(_: Utf8Error) -> Error { in from() method
218 fn from(_: LayoutError) -> Error { in from() method
224 fn from(_: fmt::Error) -> Error { in from() method
230 fn from(e: core::convert::Infallible) -> Error { in from() method
465 Err(e) => T::from(e.to_errno() as i16), in from_result()
A Dcpu.rs119 fn from(id: CpuId) -> Self { in from() method
125 fn from(id: CpuId) -> Self { in from() method
143 let ptr = unsafe { bindings::get_cpu_device(u32::from(cpu)) }; in from_cpu()
A Dcpumask.rs94 unsafe { bindings::__cpumask_set_cpu(u32::from(cpu), self.as_raw()) }; in set()
106 unsafe { bindings::__cpumask_clear_cpu(i32::from(cpu), self.as_raw()) }; in clear()
115 unsafe { bindings::cpumask_test_cpu(i32::from(cpu), self.as_raw()) } in test()
A Dinit.rs161 pin_init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in pin_init()
178 init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in init()
A Dclk.rs74 fn from(freq: Hertz) -> Self { in from() method
A Dcpufreq.rs105 fn from(rel: Relation) -> Self { in from() method
189 fn from(index: TableIndex) -> Self { in from() method
530 Ok(unsafe { bindings::cpufreq_generic_get(u32::from(self.cpu())) }) in generic_get()
685 let ptr = from_err_ptr(unsafe { bindings::cpufreq_cpu_get(u32::from(cpu)) })?; in from_cpu()
A Dxarray.rs175 fn from(value: StoreError<T>) -> Self { in from() method
A Ddevice.rs415 fn from(dev: &$device<$src>) -> Self {
A Dopp.rs122 fn from(volt: MicroVolt) -> Self { in from() method
147 fn from(power: MicroWatt) -> Self { in from() method
A Dstr.rs199 fn from(_: CStrConvertError) -> Error { in from() method
/rust/kernel/sync/
A Daref.rs141 fn from(b: &T) -> Self { in from() method
144 unsafe { Self::from_raw(NonNull::from(b)) } in from()
A Darc.rs367 Some(Pin::from(UniqueArc { in into_unique_or_drop()
495 fn from(item: UniqueArc<T>) -> Self { in from() method
501 fn from(item: Pin<UniqueArc<T>>) -> Self { in from() method
624 fn from(b: ArcBorrow<'_, T>) -> Self { in from() method
841 fn from(obj: UniqueArc<T>) -> Self { in from() method
/rust/kernel/alloc/
A Dlayout.rs104 fn from(value: ArrayLayout<T>) -> Self { in from() method
A Dkvec.rs59 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))),
841 fn from(b: Box<[T; N], A>) -> Vec<T, A> { in from() function
A Dkbox.rs348 fn from(b: Box<T, A>) -> Self { in from() function
/rust/pin-init/
A DREADME.md22 and moving it from the stack is not an option, because it is bigger than the stack itself.
61 Aside from pinned initialization, this library also supports in-place construction without
68 `../examples/mutex.rs`. It is essentially a userland rebuild of the `struct mutex` type from
138 [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure
160 /* fields from C ... */
/rust/macros/
A Dquote.rs20 tokens.extend([TokenTree::from(self.clone())]); in to_tokens()
26 tokens.extend([TokenTree::from(self.clone())]); in to_tokens()
/rust/kernel/fs/
A Dfile.rs458 fn from(_: BadFdError) -> Error { in from() method
/rust/kernel/net/
A Dphy.rs145 bit_field.get(13, 1) == u64::from(bindings::AUTONEG_ENABLE) in is_autoneg_enabled()

Completed in 40 milliseconds