Home
last modified time | relevance | path

Searched full:alignment (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/openbmc/qemu/util/
H A Dmemalign.c32 void *qemu_try_memalign(size_t alignment, size_t size) in qemu_try_memalign() argument
36 if (alignment < sizeof(void*)) { in qemu_try_memalign()
37 alignment = sizeof(void*); in qemu_try_memalign()
39 g_assert(is_power_of_2(alignment)); in qemu_try_memalign()
53 ret = posix_memalign(&ptr, alignment, size); in qemu_try_memalign()
59 ptr = _aligned_malloc(size, alignment); in qemu_try_memalign()
63 ptr = memalign(alignment, size); in qemu_try_memalign()
67 trace_qemu_memalign(alignment, size, ptr); in qemu_try_memalign()
71 void *qemu_memalign(size_t alignment, size_t size) in qemu_memalign() argument
73 void *p = qemu_try_memalign(alignment, size); in qemu_memalign()
[all …]
/openbmc/qemu/include/qemu/
H A Dmemalign.h13 * @alignment: required alignment, in bytes
17 * address will be an exact multiple of @alignment).
18 * @alignment must be a power of 2, or the function will assert().
24 void *qemu_try_memalign(size_t alignment, size_t size);
27 * @alignment: required alignment, in bytes
36 void *qemu_memalign(size_t alignment, size_t size);
H A Dmmap-alloc.h18 * care of alignment requirements and installing guard pages.
23 * @align: if not zero, specify the alignment of the starting mapping address;
24 * otherwise, the alignment in use will be determined by QEMU.
/openbmc/qemu/include/exec/
H A Dmemop.h47 * MO_UNALN accesses are never checked for alignment.
54 * but less strictly than the natural alignment.
56 * MO_ALIGN supposes the alignment size is the size of a memory access.
60 * - an alignment to the size of an access (MO_ALIGN);
61 * - an alignment to a specified size, which may be more or less than
91 * Depending on alignment, one or both will be single-copy atomic.
94 * by the alignment. E.g. if an 8-byte value is accessed at an
175 * Extract the alignment size from the memop.
182 /* No alignment required. */ in memop_alignment_bits()
185 /* A natural alignment requirement. */ in memop_alignment_bits()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D24149 # raw file (either because the server doesn't advertise alignment too
56 echo "=== Exporting unaligned raw image, natural alignment ==="
67 echo "=== Exporting unaligned raw image, forced server sector alignment ==="
71 # sector alignment, here at the server.
81 echo "=== Exporting unaligned raw image, forced client sector alignment ==="
84 # Now force sector alignment at the client.
95 # However, since qemu as server always rounds up to a sector alignment,
H A D241.out3 === Exporting unaligned raw image, natural alignment ===
14 === Exporting unaligned raw image, forced server sector alignment ===
27 === Exporting unaligned raw image, forced client sector alignment ===
H A D2684 # Test write request with required alignment larger than the cluster size
45 echo "== Required alignment larger than cluster size =="
/openbmc/u-boot/doc/
H A DREADME.unaligned-memory-access.txt2 really only the section about "Alignment vs. Networking" removed.
30 Natural alignment
33 The rule mentioned above forms what we refer to as natural alignment:
37 When writing code, assume the target architecture has natural alignment
40 In reality, only a few architectures require natural alignment on all sizes
42 writing code that satisfies natural alignment requirements is the easiest way
94 Fortunately, the compiler understands the alignment constraints, so in the
120 For a natural alignment scheme, the compiler would only have to add a single
122 to satisfy alignment constraints for arrays of these structures.
131 architectural alignment requirements. However, again, the compiler is aware
[all …]
H A DREADME.displaying-bmps7 a 32 bit aligned address is enough to ensure proper alignment. This is not
27 The proper alignment for BMP images is therefore: 32-bit-aligned-address + 2.
/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/
H A Dalignment.sh7 # Provides: alignment
14 if [ -e /proc/cpu/alignment ]; then
15 echo "3" > /proc/cpu/alignment
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/heaptrack/heaptrack/
H A D0003-heaptrack_preload-Make-noexcept-attribute-conditiona.patch78 -int posix_memalign(void** memptr, size_t alignment, size_t size) noexcept
79 +int posix_memalign(void** memptr, size_t alignment, size_t size) NOEXECPT
83 @@ -268,7 +274,7 @@ int posix_memalign(void** memptr, size_t alignment, size_t size) noexcept
87 -void* aligned_alloc(size_t alignment, size_t size) noexcept
88 +void* aligned_alloc(size_t alignment, size_t size) NOEXECPT
92 @@ -285,7 +291,7 @@ void* aligned_alloc(size_t alignment, size_t size) noexcept
/openbmc/qemu/docs/
H A Dnvdimm.txt78 2. QEMU v2.6.0 only puts a basic alignment requirement on the "size"
79 option of memory-backend-file, e.g. 4KB alignment on x86. However,
80 QEMU v.2.7.0 puts an additional alignment requirement, which may
83 the basic alignment.
85 QEMU v2.8.0 and later remove the additional alignment on non-s390x
137 Alignment
142 types of backends may require an alignment different than the page
144 memory-backend-file to allow users to specify the proper alignment.
145 For device dax (e.g., /dev/dax0.0), this alignment needs to match the
146 alignment requirement of the device dax. The NUM of 'align=NUM' option
[all …]
/openbmc/u-boot/drivers/mtd/ubi/
H A Dvmt.c41 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL);
97 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
205 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume()
224 vol->alignment = req->alignment; in ubi_create_volume()
225 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume()
291 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume()
649 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local
667 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
672 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume()
673 ubi_err(ubi, "bad alignment"); in self_check_volume()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/elfutils/files/
H A D0003-fixheadercheck.patch6 For some binaries we can get a invalid section alignment, for example if
28 we test for the alignment of the section being large
29 enough for the largest alignment required by a data
/openbmc/qemu/include/hw/mem/
H A Dmemory-device.h102 * required alignment during address assignment or when the size of the
130 * Optional: Return the desired minimum alignment of the device in guest
131 * physical address space. The final alignment is computed based on this
132 * alignment and the alignment requirements of the memory region.
134 * Called when plugging the memory device to detect the required alignment
/openbmc/qemu/rust/qemu-api/src/
H A Dlib.rs47 alignment: bindings::gsize, in g_aligned_alloc0()
54 fn qemu_memalign(alignment: usize, size: usize) -> *mut c_void; in qemu_memalign()
86 // alignment on 64-bit systems and 8-byte alignment on 32-bit systems. See
88 // This alignment guarantee also applies to Windows and Android. On Darwin
89 // and OpenBSD, the alignment is 16 bytes on both 64-bit and 32-bit systems.
/openbmc/u-boot/include/linux/mtd/
H A Dubi.h54 * @alignment: volume alignment
90 * because of the volume alignment (@alignment), the usable size of logical
92 * @usable_leb_size = LEB size - (LEB size mod @alignment),
95 * The alignment is multiple to the minimal flash input/output unit size or %1
98 * To put this differently, alignment may be considered is a way to change
110 int alignment; member
162 * alignment is not equivalent to %1.
/openbmc/qemu/target/hexagon/imported/mmvec/
H A Dmacros.def245 pa = pa & ~(ALIGNMENT-1);
277 paddr_t pa = thread->mem_access[slot].paddr+(OFFSET & ~(ALIGNMENT-1));
295 paddr_t pa = thread->mem_access[slot].paddr+(OFFSET & ~(ALIGNMENT-1));
312 paddr_t pa = thread->mem_access[slot].paddr+(OFFSET & ~(ALIGNMENT-1));
521 fV_AL_CHECK(EA,ALIGNMENT-1);
523 …mem_load_vector_oddva(thread, insn, EA&~(ALIGNMENT-1), EA, insn->slot, LEN, &DST.ub[0], LEN, fUSE_…
553 size4u_t size2 = (EA)&(ALIGNMENT-1);
584 fV_AL_CHECK(EA,ALIGNMENT-1);
585 …mem_store_vector_oddva(thread, insn, EA&~(ALIGNMENT-1), EA, insn->slot, LEN, &SRC.ub[0], 0, 0, fUS…
600 …mem_store_vector_oddva(thread, insn, EA&~(ALIGNMENT-1), EA, insn->slot, LEN, &SRC.ub[0], &maskvec.…
[all …]
/openbmc/qemu/bsd-user/freebsd/
H A Dtarget_os_user.h57 __int64_t __ss_align; /* force desired struct alignment */
110 int16_t ki_spare_short1; /* unused (just here for alignment) */
123 int16_t ki_spare_short2; /* unused (just here for alignment) */
202 int32_t kf_pad0; /* Round to 64 bit alignment. */
227 /* Round to 64 bit alignment. */
250 /* Round to 64 bit alignment. */
266 /* Round to 64 bit alignment. */
275 /* Round to 64 bit alignment. */
285 uint16_t kf_pad1; /* Round to 32 bit alignment. */
/openbmc/u-boot/arch/sh/include/asm/
H A Dcache.h15 * it is a safe default for DMA alignment.
22 * Use the L1 data cache line size value for the minimum DMA buffer alignment
/openbmc/u-boot/test/lib/
H A Dstring.c8 * code depending on the alignment and length of memory regions copied or set.
20 /* Number of different alignment values */
69 * Test memset() with varied alignment and length of the changed buffer.
126 * Test memcpy() with varied alignment and length of the copied buffer.
164 * Test memmove() with varied alignment and length of the copied buffer.
/openbmc/u-boot/tools/
H A Drkcommon.h105 * @alignment: Alignment (a power of two) that the image should be
113 unsigned int alignment);
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/7zip/bit7z/
H A D0001-Fix-reinterpret-cast-compiler-errors.patch9 …ned char*' to 'bstr_prefix_t*' {aka 'unsigned int*'} increases required alignment of target type […
12 …m 'unsigned char*' to 'bit7z::BSTR' {aka 'wchar_t*'} increases required alignment of target type […
18 casting to an array with different alignment.
/openbmc/u-boot/arch/xtensa/include/asm/arch-dc233c/
H A Dtie.h23 #define XCHAL_CP7_SA_ALIGN 1 /* min alignment of save area */
48 #define XCHAL_TOTAL_SA_ALIGN 4 /* actual minimum alignment */
64 * galign = group byte alignment (power of 2) (galign >= align)
65 * align = register byte alignment (power of 2)
/openbmc/u-boot/arch/xtensa/include/asm/arch-dc232b/
H A Dtie.h23 #define XCHAL_CP7_SA_ALIGN 1 /* min alignment of save area */
48 #define XCHAL_TOTAL_SA_ALIGN 4 /* actual minimum alignment */
64 * galign = group byte alignment (power of 2) (galign >= align)
65 * align = register byte alignment (power of 2)

12345678910>>...22