Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 54) sorted by relevance

123

/u-boot/arch/mips/mach-octeon/include/mach/
A Dcvmx-bootmem.h133 void *cvmx_bootmem_alloc(u64 size, u64 alignment);
146 void *cvmx_bootmem_alloc_node(u64 node, u64 size, u64 alignment);
162 u64 alignment);
177 void *cvmx_bootmem_alloc_range(u64 size, u64 alignment,
192 void *cvmx_bootmem_alloc_named(u64 size, u64 alignment,
208 void *cvmx_bootmem_alloc_named_flags(u64 size, u64 alignment,
356 u64 alignment, u32 flags);
385 u64 alignment, const char *name,
530 u64 cvmx_bootmem_phy_alloc_range(u64 size, u64 alignment,
/u-boot/common/
A Dbouncebuf.c38 size_t alignment, in bounce_buffer_start_extalign() argument
44 state->len_aligned = roundup(len, alignment); in bounce_buffer_start_extalign()
48 state->bounce_buffer = memalign(alignment, in bounce_buffer_start_extalign()
A Ddlmalloc.c1914 Void_t* mEMALIGn(size_t alignment, size_t bytes) in mEMALIGn() argument
1916 Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes; in mEMALIGn()
1933 return memalign_simple(alignment, bytes);
1939 if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes);
1943 if (alignment < MINSIZE) alignment = MINSIZE;
1948 m = (char*)(mALLOc(nb + alignment + MINSIZE));
1966 if ((((unsigned long)(m)) % alignment) == 0)
1974 extra = alignment - (((unsigned long)(m)) % alignment);
1982 extra2 = alignment - (((unsigned long)(m)) % alignment);
1995 if ((((unsigned long)(m)) % alignment) == 0) /* aligned */
[all …]
/u-boot/drivers/mtd/ubi/
A Dvmt.c43 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL);
99 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
229 vol->alignment = req->alignment; in ubi_create_volume()
230 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume()
296 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume()
681 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume()
686 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume()
687 if (vol->alignment != 1 && n) { in self_check_volume()
692 n = ubi->leb_size % vol->alignment; in self_check_volume()
772 alignment = be32_to_cpu(ubi->vtbl[vol_id].alignment); in self_check_volume()
[all …]
A Dvtbl.c170 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; local
179 alignment = be32_to_cpu(vtbl[i].alignment);
203 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 ||
209 if (alignment > ubi->leb_size || alignment == 0) {
214 n = alignment & (ubi->min_io_size - 1);
215 if (alignment != 1 && n) {
220 n = ubi->leb_size % alignment;
550 vol->alignment = be32_to_cpu(vtbl[i].alignment);
632 vol->alignment = UBI_LAYOUT_VOLUME_ALIGN;
/u-boot/arch/mips/mach-octeon/
A Dcvmx-bootmem.c398 alignment, 0); in cvmx_bootmem_phy_alloc_range()
412 alignment, 0); in cvmx_bootmem_alloc_range()
421 u64 alignment) in cvmx_bootmem_alloc_address() argument
429 return cvmx_bootmem_alloc_range(size, alignment, in cvmx_bootmem_alloc_node()
434 void *cvmx_bootmem_alloc(u64 size, u64 alignment) in cvmx_bootmem_alloc() argument
591 u64 address_max, u64 alignment, in cvmx_bootmem_phy_alloc() argument
605 CAST_ULL(address_max), CAST_ULL(alignment)); in cvmx_bootmem_phy_alloc()
630 if (align >= alignment) in cvmx_bootmem_phy_alloc()
1036 u64 alignment, const char *name, in cvmx_bootmem_phy_named_block_alloc() argument
1044 CAST_ULL(alignment), name); in cvmx_bootmem_phy_named_block_alloc()
[all …]
/u-boot/arch/x86/cpu/apollolake/
A Dlpc.c51 u32 lgir_reg_offset, lgir, window_size, alignment; in lpc_open_pmio_window() local
66 alignment = 1UL << (order_base_2(window_size)); in lpc_open_pmio_window()
67 window_size = ALIGN(window_size, alignment); in lpc_open_pmio_window()
/u-boot/arch/x86/cpu/
A Du-boot-spl.lds48 * Force 32-byte alignment so that it lines up with the start of
49 * bss, which may have up to 32-byte alignment. This ensures
52 * The alignment of BSS depends on what is in it, so can range
/u-boot/doc/
A DREADME.unaligned-memory-access.txt30 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 …]
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.
A DREADME.bus_vcxk32 defines the physical alignment of a pixel row
/u-boot/include/
A Dbouncebuf.h77 size_t alignment,
/u-boot/arch/mips/cpu/
A Dstart.S48 and sp, t1, t0 # force 16 byte alignment
51 and sp, sp, t0 # force 16 byte alignment
58 and sp, sp, t0 # force 16 byte alignment
/u-boot/arch/mips/mach-mtmips/mt7620/
A Dlowlevel_init.S30 and sp, sp, t0 # force 16 byte alignment
/u-boot/doc/api/
A Dlinker_lists.rst104 alignment. But when the linker packs the structs together it cannot ensure
105 that a linker list starts on the expected alignment boundary.
114 ll_entry_get() can force alignment of that particular linker_list item,
126 to be aligned at the 'struct driver' alignment, which is 16 bytes. If the
128 the compiler cannot update the alignment of the linker_list item.
/u-boot/cmd/
A Dubi.c112 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req()
120 if (req->alignment == 0) in verify_mkvol_req()
133 if (req->alignment > ubi->leb_size) in verify_mkvol_req()
136 n = req->alignment % ubi->min_io_size; in verify_mkvol_req()
137 if (req->alignment != 1 && n) in verify_mkvol_req()
163 req.alignment = 1; in ubi_create_vol()
/u-boot/drivers/mtd/ubispl/
A Dubispl.c65 ubi_dbg("\talignment %d", be32_to_cpu(r->alignment)); in ubi_dump_vtbl_record()
101 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
108 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check()
132 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check()
138 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check()
143 n = alignment & (CONFIG_SPL_UBI_VID_OFFSET - 1); in vtbl_check()
144 if (alignment != 1 && n) { in vtbl_check()
149 n = ubi->leb_size % alignment; in vtbl_check()
/u-boot/doc/usage/
A Dexception.rst15 instructions, segmentation faults or alignment faults.
/u-boot/arch/powerpc/dts/
A Dkmcent2.dts28 alignment = <0 0x1000000>;
32 alignment = <0 0x400000>;
36 alignment = <0 0x2000000>;
/u-boot/drivers/net/fsl-mc/
A DKconfig18 hex "Management Complex reserved memory alignment"
/u-boot/doc/device-tree-bindings/reserved-memory/
A Dreserved-memory.txt38 alignment (optional) - length based on parent's #size-cells
39 - Address boundary for alignment of allocation.
106 alignment = <0x2000>;
/u-boot/include/mtd/
A Dubi-user.h321 __s32 alignment; member
/u-boot/arch/sandbox/dts/
A Dsandbox64.dts30 alignment = <0 0x2000>;
A Dsandbox.dts30 alignment = <0x2000>;
/u-boot/include/linux/mtd/
A Dubi.h110 int alignment; member

Completed in 50 milliseconds

123