| /openbmc/qemu/util/ |
| H A D | memalign.c | 32 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/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/ |
| H A D | alignment.sh | 14 if [ -e /proc/cpu/alignment ]; then 15 echo "3" > /proc/cpu/alignment
|
| /openbmc/u-boot/drivers/mtd/ubi/ |
| H A D | vmt.c | 41 __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() 677 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume() [all …]
|
| H A D | vtbl.c | 166 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; local 175 alignment = be32_to_cpu(vtbl[i].alignment); 199 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || 205 if (alignment > ubi->leb_size || alignment == 0) { 210 n = alignment & (ubi->min_io_size - 1); 211 if (alignment != 1 && n) { 216 n = ubi->leb_size % alignment; 546 vol->alignment = be32_to_cpu(vtbl[i].alignment); 625 vol->alignment = UBI_LAYOUT_VOLUME_ALIGN;
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/heaptrack/heaptrack/ |
| H A D | 0003-heaptrack_preload-Make-noexcept-attribute-conditiona.patch | 78 -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/include/qemu/ |
| H A D | memalign.h | 24 void *qemu_try_memalign(size_t alignment, size_t size); 36 void *qemu_memalign(size_t alignment, size_t size);
|
| /openbmc/openbmc/poky/meta/recipes-devtools/elfutils/files/ |
| H A D | 0003-fixheadercheck.patch | 6 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/bsd-user/ |
| H A D | mmap.c | 259 abi_ulong alignment) in mmap_find_vma_reserved() argument 263 ret = page_find_range_empty(start, reserved_va, size, alignment); in mmap_find_vma_reserved() 267 size, alignment); in mmap_find_vma_reserved() 279 abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size, abi_ulong alignment) in mmap_find_vma() argument 297 (alignment != 0 ? 1 << alignment : in mmap_find_vma() 305 if (alignment != 0) { in mmap_find_vma() 306 flags |= MAP_ALIGNED(alignment); in mmap_find_vma() 487 abi_ulong alignment; in target_mmap() local 491 alignment = (flags & MAP_ALIGNMENT_MASK) >> MAP_ALIGNMENT_SHIFT; in target_mmap() 492 start = mmap_find_vma(real_start, host_len, alignment); in target_mmap()
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 241.out | 3 === 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 D | 268.out | 3 == Required alignment larger than cluster size ==
|
| /openbmc/u-boot/doc/ |
| H A D | README.unaligned-memory-access.txt | 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 132 of the alignment constraints and will generate extra instructions to perform [all …]
|
| H A D | README.displaying-bmps | 7 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/u-boot/tools/ |
| H A D | rkcommon.c | 333 unsigned int alignment) in rkcommon_vrec_header() argument 371 if (!alignment) in rkcommon_vrec_header() 372 alignment = 1; in rkcommon_vrec_header() 375 padded_size = ROUND(unpadded_size, alignment); in rkcommon_vrec_header()
|
| H A D | rkcommon.h | 113 unsigned int alignment);
|
| /openbmc/u-boot/common/ |
| H A D | dlmalloc.c | 1877 Void_t* mEMALIGn(size_t alignment, size_t bytes) in mEMALIGn() argument 1879 Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes; in mEMALIGn() 1896 nb = roundup(bytes, alignment); 1903 if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes); 1907 if (alignment < MINSIZE) alignment = MINSIZE; 1912 m = (char*)(mALLOc(nb + alignment + MINSIZE)); 1930 if ((((unsigned long)(m)) % alignment) == 0) 1938 extra = alignment - (((unsigned long)(m)) % alignment); 1946 extra2 = alignment - (((unsigned long)(m)) % alignment); 1959 if ((((unsigned long)(m)) % alignment) == 0) /* aligned */ [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/7zip/bit7z/ |
| H A D | 0001-Fix-reinterpret-cast-compiler-errors.patch | 9 …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/cmd/ |
| H A D | ubi.c | 109 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req() 117 if (req->alignment == 0) in verify_mkvol_req() 130 if (req->alignment > ubi->leb_size) in verify_mkvol_req() 133 n = req->alignment % ubi->min_io_size; in verify_mkvol_req() 134 if (req->alignment != 1 && n) in verify_mkvol_req() 159 req.alignment = 1; in ubi_create_vol()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pidgin/pidgin-sipe/ |
| H A D | 0001-Align-structs-casts-with-time_t-elements-to-8byte-bo.patch | 8 element, that now increases the natural alignment boundary of structures 12 … sipe_core_public *' to 'struct sipe_core_private *' increases required alignment from 4 to 8 [-We…
|
| /openbmc/u-boot/arch/mips/cpu/ |
| H A D | start.S | 57 and sp, t1, t0 # force 16 byte alignment 60 and sp, sp, t0 # force 16 byte alignment 66 and sp, sp, t0 # force 16 byte alignment
|
| /openbmc/qemu/include/standard-headers/linux/ |
| H A D | virtio_bt.h | 33 uint8_t alignment; member
|
| /openbmc/qemu/rust/qemu-api/src/ |
| H A D | lib.rs | 47 alignment: bindings::gsize, in g_aligned_alloc0() 54 fn qemu_memalign(alignment: usize, size: usize) -> *mut c_void; in qemu_memalign()
|
| /openbmc/qemu/docs/ |
| H A D | nvdimm.txt | 78 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 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 156 For example, device dax require the 2 MB alignment, so we can use
|
| /openbmc/qemu/include/user/ |
| H A D | mmap.h | 27 abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size, abi_ulong alignment);
|
| /openbmc/qemu/hw/core/ |
| H A D | platform-bus.c | 134 uint64_t alignment = (1ULL << (63 - clz64(size + size - 1))); in platform_bus_map_mmio() local 147 for (off = 0; off < pbus->mmio_size; off += alignment) { in platform_bus_map_mmio()
|
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | k3-am654-base-board.dts | 32 alignment = <0x1000>;
|