| /linux/rust/zerocopy/src/ |
| H A D | macros.rs | 72 macro_rules! transmute { macro 84 fn transmute<Src, Dst>(src: Src) -> Dst 94 transmute(e) 128 $crate::util::macro_util::core_reexport::mem::transmute(e) 168 fn transmute<Src, Dst>(src: Src) -> Dst 178 transmute(e) 188 $crate::util::macro_util::core_reexport::mem::transmute(e) 645 $crate::util::macro_util::core_reexport::mem::transmute(e) 984 $crate::transmute!(*::core::include_bytes!($file)) 1276 let x: [[u8; 2]; 4] = transmute!(array_of_u8s); in test_transmute() [all …]
|
| H A D | wrappers.rs | 154 |c| T::is_bit_valid(c.transmute::<_, _, BecauseImmutable>()) 203 let inner = Ptr::from_ref(self).transmute(); in try_deref() 223 let inner = Ptr::from_mut(self).transmute::<_, _, (_, (_, _))>(); in try_deref_mut() 249 unsafe { mem::transmute(self) } in deref_unchecked() 412 Ptr::from_ref(self).transmute().bikeshed_recall_aligned().as_ref() in deref() 419 Ptr::from_mut(self).transmute::<_, _, (_, (_, _))>().bikeshed_recall_aligned().as_mut() in deref_mut() 721 let ro = Ptr::from_ref(t).transmute::<_, _, (_, _)>(); in from()
|
| H A D | lib.rs | 6492 unsafe { mem::transmute(slc) } in from_mut_slice() 7015 let bytes_with_prefix: [u8; 16] = transmute!([VAL_BYTES, [0; 8]]); in test_read_write() 7020 let bytes_with_suffix: [u8; 16] = transmute!([[0; 8], VAL_BYTES]); in test_read_write() 7031 let want: [u8; 16] = transmute!([VAL_BYTES, [0; 8]]); in test_read_write() 7035 let want: [u8; 16] = transmute!([[0; 8], VAL_BYTES]); in test_read_write()
|
| H A D | byteorder.rs | 922 transmute!($bits::$from(bytes)) 929 let bits: $bits = transmute!(f);
|
| H A D | impls.rs | 866 T::is_bit_valid(candidate.transmute::<_, _, BecauseImmutable>()) in is_bit_valid()
|
| /linux/samples/rust/ |
| H A D | rust_dma.rs | 58 unsafe impl kernel::transmute::AsBytes for MyStruct {} 60 unsafe impl kernel::transmute::FromBytes for MyStruct {}
|
| /linux/rust/zerocopy/src/util/ |
| H A D | mod.rs | 346 let dst = Ptr::from_ref(src).transmute(); in transmute_ref() 363 let dst = Ptr::from_mut(src).transmute(); in transmute_mut() 443 let dangling = unsafe { mem::transmute::<usize, *mut u8>(align) }; in new_box() 877 crate::transmute!(self)
|
| H A D | macros.rs | 239 <$repr as TryFromBytes>::is_bit_valid(candidate.transmute::<_, _, BecauseImmutable>())
|
| H A D | macro_util.rs | 749 mem::transmute(dst) in transmute_ref()
|
| /linux/rust/syn/ |
| H A D | discouraged.rs | 201 .set(unsafe { mem::transmute::<Cursor, Cursor<'static>>(fork.cursor()) }); in advance_to()
|
| H A D | parse.rs | 384 unsafe { mem::transmute::<Cursor<'c>, Cursor<'a>>(to) } in advance_step_cursor() 395 cell: Cell::new(unsafe { mem::transmute::<Cursor, Cursor<'static>>(cursor) }), in new_parse_buffer()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | mod.rs | 18 pub mod transmute; module 23 pub use transmute::*;
|
| H A D | ptr.rs | 22 transmute::{MutationCompatible, SizeEq, TransmuteFromPtr}, 436 pub fn transmute<U, V, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> in transmute() function 624 pointer::{cast::IdCast, transmute::TryTransmuteFromPtr}, 782 if T::is_bit_valid(self.reborrow().transmute::<_, _, _>().reborrow_shared()) { in try_into_valid()
|
| /linux/rust/kernel/ |
| H A D | lib.rs | 141 pub mod transmute; 131 pub mod transmute; global() module
|
| H A D | uaccess.rs | 16 transmute::{AsBytes, FromBytes},
|
| H A D | dma.rs | 28 transmute::{
|
| /linux/rust/kernel/debugfs/ |
| H A D | traits.rs | |
| H A D | file_ops.rs | 63 unsafe { core::mem::transmute(self) } in deref()
|
| /linux/rust/kernel/list/ |
| H A D | arc.rs | 339 // Use a transmute to skip destructor. in transmute_to_arc() 342 unsafe { core::mem::transmute(self) } in transmute_to_arc()
|
| /linux/security/smack/ |
| H A D | smack_lsm.c | 800 bool transmute = false; in smack_set_mnt_opts() 825 transmute = true; in smack_set_mnt_opts() 862 transmute = true; in smack_set_mnt_opts() 871 if (transmute) { 1053 * requests transmutation then by all means transmute. in smack_inode_init_security() 3690 * set the transmute attribute on the directory in smack_d_instantiate() 3693 * If there is a transmute attribute on the in smack_d_instantiate() 791 bool transmute = false; smack_set_mnt_opts() local
|
| /linux/Documentation/admin-guide/LSM/ |
| H A D | Smack.rst | 103 to the directory includes the transmute ("t") mode the object 833 sets the transmute flag on the root of the mount
|