| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_mpa.c | 12 u32 alignment = sizeof(u32); in rk_mpa_alloc() local 27 if (!data || (unsigned long)data % alignment) { in rk_mpa_alloc() 28 tmp_mpa->d = memalign(alignment, byte_size); in rk_mpa_alloc()
|
| H A D | crypto_hash_cache.c | 80 ulong alignment = CONFIG_SYS_CACHELINE_SIZE; in crypto_flush_cacheline() local 87 aligned_input = round_down(addr, alignment); in crypto_flush_cacheline() 88 aligned_len = round_up(size + (addr - aligned_input), alignment); in crypto_flush_cacheline()
|
| H A D | crypto_ce.c | 20 #define ROUNDUP(size, alignment) round_up(size, alignment) argument 122 ulong alignment = CONFIG_SYS_CACHELINE_SIZE; in crypto_flush_cacheline() local 129 aligned_input = round_down(addr, alignment); in crypto_flush_cacheline() 130 aligned_len = round_up(size + (addr - aligned_input), alignment); in crypto_flush_cacheline() 136 ulong alignment = CONFIG_SYS_CACHELINE_SIZE; in crypto_invalidate_cacheline() local 143 aligned_input = round_down(addr, alignment); in crypto_invalidate_cacheline() 144 aligned_len = round_up(size + (addr - aligned_input), alignment); in crypto_invalidate_cacheline()
|
| H A D | crypto_v2.c | 112 #define align_malloc(bytes, alignment) memalign(alignment, bytes) argument 115 #define ROUNDUP(size, alignment) round_up(size, alignment) argument
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | vmt.c | 42 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL); 98 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 206 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 225 vol->alignment = req->alignment; in ubi_create_volume() 226 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume() 292 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume() 650 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local 668 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume() 673 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume() 678 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume() [all …]
|
| H A D | vtbl.c | 167 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; local 176 alignment = be32_to_cpu(vtbl[i].alignment); 200 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || 206 if (alignment > ubi->leb_size || alignment == 0) { 211 n = alignment & (ubi->min_io_size - 1); 212 if (alignment != 1 && n) { 217 n = ubi->leb_size % alignment; 547 vol->alignment = be32_to_cpu(vtbl[i].alignment); 626 vol->alignment = UBI_LAYOUT_VOLUME_ALIGN;
|
| H A D | debug.c | 103 printf("\talignment %d\n", vol->alignment); in ubi_dump_vol_info() 135 pr_err("\talignment %d\n", be32_to_cpu(r->alignment)); in ubi_dump_vtbl_record() 201 pr_err("\talignment %d\n", req->alignment); in ubi_dump_mkvol_req()
|
| H A D | ubi-media.h | 355 __be32 alignment; member
|
| H A D | kapi.c | 85 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
|
| H A D | ubi.h | 333 int alignment; member
|
| /rk3399_rockchip-uboot/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.
|
| H A D | README.bus_vcxk | 33 defines the physical alignment of a pixel row
|
| H A D | README.ubi | 94 UBI: alignment 1 109 UBI: alignment 1
|
| /rk3399_rockchip-uboot/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 if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes); 1900 if (alignment < MINSIZE) alignment = MINSIZE; 1905 m = (char*)(mALLOc(nb + alignment + MINSIZE)); 1923 if ((((unsigned long)(m)) % alignment) == 0) 1931 extra = alignment - (((unsigned long)(m)) % alignment); 1939 extra2 = alignment - (((unsigned long)(m)) % alignment); 1952 if ((((unsigned long)(m)) % alignment) == 0) /* aligned */ 1970 brk = (char*)mem2chunk(((unsigned long)(m + alignment - 1)) & -((signed) alignment)); [all …]
|
| H A D | dlmalloc.src | 39 memalign(size_t alignment, size_t n); 41 in accord with the alignment argument, which must be a power of 61 due to alignment and minimum size constraints. 73 8 byte alignment is currently hardwired into the design. This 738 2. It can lead to more wastage because of mmap page alignment 1291 /* Check if m has acceptable alignment */ 1696 /* ... and alignment */ 1976 /* Guarantee alignment of first new chunk made from this space */ 2047 obtain 8-byte alignment and/or to obtain a size of at least 2699 within that chunk that meets the alignment request, and then [all …]
|
| /rk3399_rockchip-uboot/arch/mips/cpu/ |
| H A D | start.S | 58 and sp, t1, t0 # force 16 byte alignment 61 and sp, sp, t0 # force 16 byte alignment 67 and sp, sp, t0 # force 16 byte alignment
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | ubi.c | 126 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req() 134 if (req->alignment == 0) in verify_mkvol_req() 147 if (req->alignment > ubi->leb_size) in verify_mkvol_req() 150 n = req->alignment % ubi->min_io_size; in verify_mkvol_req() 151 if (req->alignment != 1 && n) in verify_mkvol_req() 176 req.alignment = 1; in ubi_create_vol()
|
| /rk3399_rockchip-uboot/include/mtd/ |
| H A D | ubi-user.h | 308 __s32 alignment; member
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | ubi.h | 111 int alignment; member
|
| /rk3399_rockchip-uboot/tools/binman/ |
| H A D | README | 37 suitable padding and alignment. It provides a way to process binaries before 256 This sets the alignment of the entry. The entry position is adjusted 260 provided, no alignment is performed. 279 This sets the alignment of the entry size. For example, to ensure 281 If 'align-size' is not provided, no alignment is performed. 284 This sets the alignment of the end of an entry. Some entries require 285 that they end on an alignment boundary, regardless of where they 286 start. If 'align-end' is not provided, no alignment is performed. 309 This sets the alignment of the image size. For example, to ensure 311 If 'align-size' is not provided, no alignment is performed. [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-bcm283x/ |
| H A D | msg.c | 138 msg_setup->allocate_buffer.body.req.alignment = 0x100; in bcm2835_set_video_params()
|
| /rk3399_rockchip-uboot/arch/arm/mach-bcm283x/include/mach/ |
| H A D | mbox.h | 258 u32 alignment; member
|
| /rk3399_rockchip-uboot/lib/optee_clientApi/ |
| H A D | OpteeClientInterface.c | 78 ulong alignment = CONFIG_SYS_CACHELINE_SIZE; in crypto_flush_cacheline() local 85 aligned_input = round_down(addr, alignment); in crypto_flush_cacheline() 86 aligned_len = round_up(size + (addr - aligned_input), alignment); in crypto_flush_cacheline() 92 ulong alignment = CONFIG_SYS_CACHELINE_SIZE; in crypto_invalidate_cacheline() local 99 aligned_input = round_down(addr, alignment); in crypto_invalidate_cacheline() 100 aligned_len = round_up(size + (addr - aligned_input), alignment); in crypto_invalidate_cacheline()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | malloc.h | 881 void *memalign_simple(size_t alignment, size_t bytes);
|