Home
last modified time | relevance | path

Searched refs:Align (Results 1 – 18 of 18) sorted by relevance

/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs1004 test!(#[repr(C, packed( 1))] (u8; elain::Align< 2>) => Some( 1)); in test_trailing_field_offset()
1005 test!(#[repr(C, packed( 2))] (u8; elain::Align< 4>) => Some( 2)); in test_trailing_field_offset()
1006 test!(#[repr(C, packed( 4))] (u8; elain::Align< 8>) => Some( 4)); in test_trailing_field_offset()
1007 test!(#[repr(C, packed( 8))] (u8; elain::Align< 16>) => Some( 8)); in test_trailing_field_offset()
1008 test!(#[repr(C, packed( 16))] (u8; elain::Align< 32>) => Some( 16)); in test_trailing_field_offset()
1009 test!(#[repr(C, packed( 32))] (u8; elain::Align< 64>) => Some( 32)); in test_trailing_field_offset()
1010 test!(#[repr(C, packed( 64))] (u8; elain::Align< 128>) => Some( 64)); in test_trailing_field_offset()
1011 test!(#[repr(C, packed( 128))] (u8; elain::Align< 256>) => Some( 128)); in test_trailing_field_offset()
1012 test!(#[repr(C, packed( 256))] (u8; elain::Align< 512>) => Some( 256)); in test_trailing_field_offset()
1013 test!(#[repr(C, packed( 512))] (u8; elain::Align< 1024>) => Some( 512)); in test_trailing_field_offset()
[all …]
H A Dmod.rs813 pub(crate) struct Align<T, A> { struct
818 impl<T: Default, A> Align<T, A> { impl
824 impl<T, A> Align<T, A> { implementation
825 pub(crate) const fn new(t: T) -> Align<T, A> { in new()
826 Align { t, _a: [] } in new()
/linux/rust/zerocopy-derive/
H A Drepr.rs67 Align(NonZeroU32), enumerator
139 if let Compound(_, Some(Spanned { t: Align(n), span })) = self { in get_align()
258 Align(n) => { in to_tokens()
286 Align(NonZeroU32), enumerator
330 Transparent | C | Rust | Align(_) | PackedN(_) | Packed => { in try_from()
339 Transparent | Align(_) | PackedN(_) | Packed => Err(FromRawReprError::None), in try_from()
354 | Transparent | C | Rust | Align(_) => Err(UnsupportedReprError), in try_from()
360 Align(n) => Ok(AlignRepr::Align(n)), in try_from()
599 ("align", Some(list)) => Align(parse_nzu64(list)?), in from_meta()
750 … test!(#[repr(align(1))] => StructUnionRepr::Compound(Rust.into(), Some(Align(nz(1)).into()))); in test()
[all …]
/linux/rust/zerocopy/src/
H A Dref.rs1093 let mut buf = Align::<[u8; 8], AU64>::default(); in test_new_aligned_sized()
1115 let mut buf = Align::<[u8; 24], AU64>::default(); in test_new_aligned_sized()
1150 let mut buf = Align::<[u8; 16], AU64>::default(); in test_new_oversized()
1173 let buf = Align::<[u8; 16], AU64>::default(); in test_new_error()
1180 let buf = Align::<[u8; 4], AU64>::default(); in test_new_error()
1188 let buf = Align::<[u8; 12], AU64>::default(); in test_new_error()
1193 let buf = Align::<[u8; 12], AU64>::default(); in test_new_error()
1212 let buf = Align::<[u8; 13], AU64>::default(); in test_new_error()
1227 let buf = Align::<[u8; 16], AU64>::default(); in test_new_error()
1240 let mut buf = Align::<[u8; 8], u64>::default(); in test_into_ref_mut()
[all …]
H A Dwrappers.rs867 let mut u: Align<_, AU64> = Align::new(Unalign::new(AU64(123))); in test_unalign()
902 let x: Align<_, AU64> = Align::new(Unalign::new(AU64(123))); in test_unalign()
H A Derror.rs1130 impl_known_layout!(elain::Align::<8>); in alignment_display()
1137 AlignmentError::<_, elain::Align::<8>>::new_checked(bytes).to_string(), in alignment_display()
1148 AlignmentError::<_, elain::Align::<8>>::new_checked(bytes).to_string(), in alignment_display()
1159 AlignmentError::<_, elain::Align::<8>>::new_checked(bytes).to_string(), in alignment_display()
1170 AlignmentError::<_, elain::Align::<8>>::new_checked(bytes).to_string(), in alignment_display()
H A Dlib.rs6574 elain::Align<ALIGN>: elain::Alignment, in test_known_layout_derive()
6576 _align: elain::Align<ALIGN>, in test_known_layout_derive()
7162 Align::<[u8; 16], AU64>::new([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); in test_ref_from_mut_from_bytes()
7196 let mut buf = Align::<[u8; 16], AU64>::default(); in test_ref_from_mut_from_bytes_error()
7204 let mut buf = Align::<[u8; 4], AU64>::default(); in test_ref_from_mut_from_bytes_error()
7219 let mut buf = Align::<[u8; 13], AU64>::default(); in test_ref_from_mut_from_bytes_error()
7576 use crate::util::testutil::Align; in test_try_ref_from_prefix_suffix()
7577 let bytes = &Align::<[u8; 4], u32>::new([0u8; 4]).t[..]; in test_try_ref_from_prefix_suffix()
7599 use crate::util::testutil::Align; in test_try_ref_from_prefix_with_elems()
7600 let bytes = &Align::<[u8; 8], u32>::new([0u8; 8]).t[..]; in test_try_ref_from_prefix_with_elems()
[all …]
H A Dlayout.rs1131 let trailing_field = DstLayout::for_type::<elain::Align<$n>>(); in test_dst_layout_extend_sized_with_sized()
1771 let aligned_buf = Align::<_, FooAlign>::new([0u8; 1024]); in test_validate_rust_layout()
/linux/arch/arm/lib/
H A Ddiv64.S59 @ Align divisor with upper part of dividend.
/linux/Documentation/sphinx-static/
H A Dcustom.css152 /* Align with the parent div */
/linux/arch/sh/lib/
H A Dcopy_page.S174 ! Align dest to a 32 byte boundary
/linux/arch/powerpc/kernel/
H A Dhead_44x.S1082 #; Align the loop to speed things up.
/linux/Documentation/process/
H A Dbotching-up-ioctls.rst33 * Align everything to the natural size and use explicit padding. 32-bit
/linux/Documentation/scsi/
H A Daic79xx.rst86 - Align the SCB_TAG field on a 16byte boundary. This avoids
/linux/arch/arm/boot/compressed/
H A Dhead.S794 bic r3, r3, #0xff @ Align the pointer
/linux/arch/arm64/tools/
H A Dsysreg5852 Field 3:0 Align
/linux/Documentation/virt/kvm/
H A Dapi.rst1244 /* Align it to 8 bytes */
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt406 Align virtual addresses by clearing slice [14:12] when