| /rust/helpers/ |
| A D | uaccess.c | 5 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 D | errors.rs | 18 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 D | error.rs | 14 fn from(e: Infallible) -> Self { in from() method 21 fn from(_: AllocError) -> Self { in from() method
|
| A D | pthread_mutex.rs | 52 fn from(e: Infallible) -> Self { in from() method 59 fn from(_: AllocError) -> Self { in from() method
|
| /rust/kernel/list/ |
| A D | arc.rs | 174 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 D | error.rs | 200 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 D | cpu.rs | 119 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 D | cpumask.rs | 94 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 D | init.rs | 161 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 D | clk.rs | 74 fn from(freq: Hertz) -> Self { in from() method
|
| A D | cpufreq.rs | 105 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 D | xarray.rs | 175 fn from(value: StoreError<T>) -> Self { in from() method
|
| A D | device.rs | 415 fn from(dev: &$device<$src>) -> Self {
|
| A D | opp.rs | 122 fn from(volt: MicroVolt) -> Self { in from() method 147 fn from(power: MicroWatt) -> Self { in from() method
|
| A D | str.rs | 199 fn from(_: CStrConvertError) -> Error { in from() method
|
| /rust/kernel/sync/ |
| A D | aref.rs | 141 fn from(b: &T) -> Self { in from() method 144 unsafe { Self::from_raw(NonNull::from(b)) } in from()
|
| A D | arc.rs | 367 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 D | layout.rs | 104 fn from(value: ArrayLayout<T>) -> Self { in from() method
|
| A D | kvec.rs | 59 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 D | kbox.rs | 348 fn from(b: Box<T, A>) -> Self { in from() function
|
| /rust/pin-init/ |
| A D | README.md | 22 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 D | quote.rs | 20 tokens.extend([TokenTree::from(self.clone())]); in to_tokens() 26 tokens.extend([TokenTree::from(self.clone())]); in to_tokens()
|
| /rust/kernel/fs/ |
| A D | file.rs | 458 fn from(_: BadFdError) -> Error { in from() method
|
| /rust/kernel/net/ |
| A D | phy.rs | 145 bit_field.get(13, 1) == u64::from(bindings::AUTONEG_ENABLE) in is_autoneg_enabled()
|