| /linux/rust/zerocopy/src/ |
| H A D | impls.rs | 32 unsafe_impl!((): Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 68 unsafe_impl!(u8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 69 unsafe_impl!(i8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 101 const _: () = unsafe { unsafe_impl!(bool: Immutable, FromZeros, IntoBytes, Unaligned) }; 165 const _: () = unsafe { unsafe_impl!(str: Immutable, FromZeros, IntoBytes, Unaligned) }; 227 unsafe_impl!(NonZeroU8: Immutable, IntoBytes, Unaligned); 228 unsafe_impl!(NonZeroI8: Immutable, IntoBytes, Unaligned); 282 unsafe_impl!(Option<NonZeroU8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 283 unsafe_impl!(Option<NonZeroI8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 488 unsafe_impl!(AtomicBool: Unaligned); [all …]
|
| H A D | wrappers.rs | 116 #[cfg_attr(any(feature = "derive", test), derive(Immutable, FromBytes, IntoBytes, Unaligned))] 150 impl_or_verify!(T => Unaligned for Unalign<T>); 407 impl<T: Unaligned> Deref for Unalign<T> { 416 impl<T: Unaligned> DerefMut for Unalign<T> { 423 impl<T: Unaligned + PartialOrd> PartialOrd<Unalign<T>> for Unalign<T> { 430 impl<T: Unaligned + Ord> Ord for Unalign<T> { 437 impl<T: Unaligned + PartialEq> PartialEq<Unalign<T>> for Unalign<T> { 444 impl<T: Unaligned + Eq> Eq for Unalign<T> {} 446 impl<T: Unaligned + Hash> Hash for Unalign<T> { 456 impl<T: Unaligned + Debug> Debug for Unalign<T> { [all …]
|
| H A D | deprecated.rs | 62 T: Unaligned + KnownLayout + Immutable + ?Sized, 79 T: Unaligned + KnownLayout + Immutable + ?Sized, 96 T: Unaligned + KnownLayout + Immutable + ?Sized, 126 T: Unaligned + Immutable, 190 T: Unaligned + Immutable,
|
| H A D | split_at.rs | 469 T: Unaligned, in via_unaligned() argument 718 T: Unaligned, in via_unaligned() argument 868 T: Unaligned, in via_unaligned() argument 1074 use crate::{FromBytes, Immutable, IntoBytes, KnownLayout, SplitAt, Unaligned}; in test_split_at_via_unaligned() 1075 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Unaligned)] in test_split_at_via_unaligned()
|
| H A D | error.rs | 130 use crate::{util::SendSyncPhantomData, KnownLayout, TryFromBytes, Unaligned}; 164 impl<Src, Dst: ?Sized + Unaligned, S, V> From<ConvertError<AlignmentError<Src, Dst>, S, V>> 360 impl<Src, Dst: ?Sized + Unaligned> From<AlignmentError<Src, Dst>> for Infallible { 812 impl<Src, Dst: ?Sized + Unaligned> From<CastError<Src, Dst>> for SizeError<Src, Dst> {
|
| H A D | lib.rs | 6254 pub use zerocopy_derive::Unaligned; 6326 pub unsafe trait Unaligned { trait 6479 #[derive(Debug, Eq, PartialEq, FromBytes, IntoBytes, Unaligned, Immutable)] 6942 fn _takes_unaligned(_: &dyn Unaligned) {} in test_object_safety() argument 7351 #[derive(IntoBytes, FromBytes, Unaligned)] in test_transparent_packed_generic_struct() 7360 assert_impl_all!(Foo<u8>: Unaligned); in test_transparent_packed_generic_struct() 7362 #[derive(IntoBytes, FromBytes, Unaligned)] in test_transparent_packed_generic_struct() 7370 assert_impl_all!(Bar<u8, AU64>: FromZeros, FromBytes, IntoBytes, Unaligned); in test_transparent_packed_generic_struct()
|
| H A D | byteorder.rs | 525 …tr(any(feature = "derive", test), derive(KnownLayout, Immutable, FromBytes, IntoBytes, Unaligned))] 545 impl_or_verify!(O => Unaligned for $name<O>); 1109 FromBytes + IntoBytes + Unaligned + Copy + Eq + Debug + Hash + From<Self::Native>
|
| H A D | ref.rs | 201 invariant::{Aligned, BecauseExclusive, Initialized, Unaligned, Valid}, 962 ) -> Ptr<'a, T, (A, Unaligned, Valid)> in cast_for_sized() argument
|
| /linux/rust/zerocopy-derive/derive/ |
| H A D | unaligned.rs | 39 Ok(ImplBlockBuilder::new(ctx, strct, Trait::Unaligned, field_bounds).build()) in derive_unaligned_struct() 56 Ok(ImplBlockBuilder::new(ctx, enm, Trait::Unaligned, FieldBounds::ALL_SELF).build()) in derive_unaligned_enum() 79 Ok(ImplBlockBuilder::new(ctx, unn, Trait::Unaligned, field_type_trait_bounds).build()) in derive_unaligned_union()
|
| H A D | into_bytes.rs | 91 FieldBounds::All(&[TraitBound::Slf, TraitBound::Other(Trait::Unaligned)]) in derive_into_bytes_struct()
|
| H A D | try_from_bytes.rs | 526 quote! { #zerocopy_crate::invariant::Unaligned } in derive_has_field_struct_union()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | invariant.rs | 143 pub enum Unaligned {} enum 145 impl Alignment for Unaligned { implementation 286 impl Sealed for Unaligned {} implementation
|
| H A D | ptr.rs | 436 pub fn transmute<U, V, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> in transmute() argument 448 pub fn transmute_with<U, V, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> in transmute_with() argument 511 ) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> in project_transmute_unchecked() argument 613 T: crate::Unaligned, in unaligned_as_ref() argument 701 T: crate::Unaligned, in bikeshed_recall_aligned() argument 798 pub fn forget_aligned(self) -> Ptr<'a, T, (I::Aliasing, Unaligned, I::Validity)> { in forget_aligned() argument 836 ) -> Ptr<'a, U, (I::Aliasing, Unaligned, I::Validity)> in cast_unchecked() argument 860 pub fn cast<U, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, I::Validity)> in cast() argument
|
| H A D | mod.rs | 31 pub type Maybe<'a, T, Alignment = invariant::Unaligned> =
|
| /linux/rust/zerocopy-derive/ |
| H A D | lib.rs | 127 derive!(Unaligned => derive_unaligned => crate::derive::unaligned::derive_unaligned); 149 (crate::derive::unaligned::derive_unaligned, Trait::Unaligned), in most_traits()
|
| H A D | util.rs | 321 Unaligned, enumerator 349 Trait::Unaligned => "Unaligned", in to_tokens() 370 | Trait::Unaligned in to_tokens()
|
| /linux/arch/arc/kernel/ |
| H A D | head.S | 51 ; Unaligned access is disabled at reset, so re-enable early as
|
| H A D | entry-compact.S | 264 ; -Unaligned Access : 00_23_04_00
|
| /linux/rust/zerocopy/src/util/ |
| H A D | mod.rs | 835 pub(crate) struct ForceUnalign<T: Unaligned, A> { 848 impl<T: Unaligned, A> ForceUnalign<T, A> {
|
| /linux/Documentation/core-api/ |
| H A D | unaligned-memory-access.rst | 2 Unaligned Memory Accesses 22 Unaligned memory accesses occur when you try to read N bytes of data starting
|
| /linux/Documentation/filesystems/ |
| H A D | zonefs.rst | 198 * Unaligned write errors: These errors result from the host issuing write
|
| /linux/arch/riscv/ |
| H A D | Kconfig | 984 prompt "Unaligned Accesses Support"
|