| /linux/rust/kernel/ |
| H A D | ptr.rs | 210 ::core::num::NonZero::<Self>::try_from(alignment.as_nonzero()) 222 Self::try_from(alignment.as_usize())
|
| H A D | str.rs | 358 CString::try_from(self) in to_ascii_lowercase() 903 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in fmt() 889 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { try_from() method
|
| H A D | scatterlist.rs | 359 max_segment => u32::try_from(max_segment).unwrap_or(u32::MAX), in new()
|
| H A D | pci.rs | 519 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { 503 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { try_from() method
|
| H A D | bitmap.rs | 258 let nbits_u32 = u32::try_from(nbits).unwrap(); in new()
|
| H A D | platform.rs | 563 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() method
|
| H A D | i2c.rs | 523 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() method
|
| H A D | dma.rs | 965 let Ok(offset_val) = usize::try_from(*offset) else { in drop()
|
| H A D | bitfield.rs | 572 fn try_from(value: Bounded<u64, 4>) -> Result<Self, Self::Error> { in try_from() method
|
| /linux/rust/zerocopy-derive/ |
| H A D | repr.rs | 308 fn try_from( in try_from() method 346 fn try_from(raw: RawRepr) -> Result<AlignRepr<Pcked>, FromRawReprError<UnsupportedReprError>> { in try_from() method 389 let new = match Spanned::<R>::try_from(*raw) { in try_from_raw_reprs() 631 pub(super) fn try_from<E, U>( in try_from() method 638 T::try_from(u).map(|t| Spanned { t, span }).map_err(|err| match err { in try_from()
|
| /linux/drivers/android/binder/ |
| H A D | context.rs | 55 let name = CString::try_from(name)?; in new()
|
| H A D | thread.rs | 763 let parent_index = usize::try_from(obj.parent).map_err(|_| EINVAL)?; in translate_object() 764 let parent_offset = usize::try_from(obj.parent_offset).map_err(|_| EINVAL)?; in translate_object() 808 let parent_index = usize::try_from(obj.parent).map_err(|_| EINVAL)?; in translate_object() 809 let parent_offset = usize::try_from(obj.parent_offset).map_err(|_| EINVAL)?; in translate_object() 810 let num_fds = usize::try_from(obj.num_fds).map_err(|_| EINVAL)?; in translate_object()
|
| /linux/rust/kernel/pci/ |
| H A D | io.rs | 201 let num = i32::try_from(num)?; in new()
|
| H A D | id.rs | 115 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() method
|
| /linux/rust/proc-macro2/ |
| H A D | fallback.rs | 1149 let start = u32::try_from(*start).ok()?; in subspan() 1153 let start = u32::try_from(*start).ok()?; in subspan() 1160 let end = u32::try_from(*end).ok()?; in subspan() 1164 let end = u32::try_from(*end).ok()?; in subspan()
|
| /linux/rust/kernel/num/ |
| H A D | bounded.rs | 467 let value = unsafe { U::try_from(self.get()).unwrap_unchecked() }; in cast() 1100 unsafe { <$type>::try_from(value.get()).unwrap_unchecked() }
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | inner.rs | 728 isize::try_from(OFFSET).unwrap(), in test_trailing_slice()
|
| /linux/rust/zerocopy/src/ |
| H A D | byteorder.rs | 669 fn try_from(x: $larger_native_try) -> Result<$name<O>, TryFromIntError> { 670 $native::try_from(x).map($name::new) 688 fn try_from(x: $larger_byteorder_try<P>) -> Result<$name<O>, TryFromIntError> {
|
| H A D | lib.rs | 7535 let max = <usize as core::convert::TryFrom<_>>::try_from(isize::MAX).unwrap(); in new_box_zeroed_with_elems_errors()
|