/u-boot/drivers/crypto/fsl/ |
A D | fsl_blob.c | 37 !IS_ALIGNED((uintptr_t)src, ARCH_DMA_MINALIGN) || in blob_decap() 38 !IS_ALIGNED((uintptr_t)dst, ARCH_DMA_MINALIGN)) { in blob_decap() 50 size = ALIGN(16, ARCH_DMA_MINALIGN); in blob_decap() 54 size = ALIGN(BLOB_SIZE(len), ARCH_DMA_MINALIGN); in blob_decap() 73 size = ALIGN(len, ARCH_DMA_MINALIGN); in blob_decap() 115 size = ALIGN(16, ARCH_DMA_MINALIGN); in blob_encap() 119 size = ALIGN(len, ARCH_DMA_MINALIGN); in blob_encap() 138 size = ALIGN(BLOB_SIZE(len), ARCH_DMA_MINALIGN); in blob_encap() 158 desc = memalign(ARCH_DMA_MINALIGN, in blob_dek() 170 ARCH_DMA_MINALIGN); in blob_dek() [all …]
|
A D | rng.c | 24 u8 data[CAAM_RNG_MAX_FIFO_STORE_SIZE] __aligned(ARCH_DMA_MINALIGN); 29 int size = ALIGN(CAAM_RNG_MAX_FIFO_STORE_SIZE, ARCH_DMA_MINALIGN); in caam_rng_read_one() 67 ulong size = ALIGN(CAAM_RNG_DESC_LEN, ARCH_DMA_MINALIGN); in caam_rng_probe()
|
A D | fsl_hash.c | 177 if (!IS_ALIGNED((uintptr_t)pbuf, ARCH_DMA_MINALIGN) || in caam_hash() 178 !IS_ALIGNED((uintptr_t)pout, ARCH_DMA_MINALIGN)) { in caam_hash() 183 size = ALIGN(buf_len, ARCH_DMA_MINALIGN); in caam_hash() 191 size = ALIGN(sizeof(int) * MAX_CAAM_DESCSIZE, ARCH_DMA_MINALIGN); in caam_hash() 196 size = ALIGN(driver_hash[algo].digestsize, ARCH_DMA_MINALIGN); in caam_hash()
|
A D | jr.c | 120 jr->input_ring = (dma_addr_t *)memalign(ARCH_DMA_MINALIGN, in jr_init() 126 ARCH_DMA_MINALIGN); in jr_init() 219 ~(ARCH_DMA_MINALIGN - 1); in jr_enqueue() 221 sizeof(struct jr_info), ARCH_DMA_MINALIGN); in jr_enqueue() 247 sizeof(dma_addr_t), ARCH_DMA_MINALIGN); in jr_enqueue() 254 ~(ARCH_DMA_MINALIGN - 1); in jr_enqueue() 256 ARCH_DMA_MINALIGN); in jr_enqueue() 455 int desc_size = ALIGN(sizeof(u32) * 2, ARCH_DMA_MINALIGN); in deinstantiate_rng() 457 desc = memalign(ARCH_DMA_MINALIGN, desc_size); in deinstantiate_rng() 505 desc = memalign(ARCH_DMA_MINALIGN, sizeof(uint32_t) * 6); in instantiate_rng() [all …]
|
/u-boot/arch/sandbox/include/asm/ |
A D | cache.h | 18 #define ARCH_DMA_MINALIGN __BIGGEST_ALIGNMENT__ macro 20 #define ARCH_DMA_MINALIGN 16 macro 22 #define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
|
/u-boot/arch/sh/include/asm/ |
A D | cache.h | 17 #define ARCH_DMA_MINALIGN 32 macro 25 #ifndef ARCH_DMA_MINALIGN 26 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES macro
|
/u-boot/include/ |
A D | memalign.h | 79 ALLOC_ALIGN_BUFFER_PAD(type, name, size, ARCH_DMA_MINALIGN, pad) 81 ALLOC_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN) 94 DEFINE_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN) 111 return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN)); in malloc_cache_aligned()
|
/u-boot/lib/ |
A D | elf.c | 47 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), in load_elf64_image_phdr() 48 roundup(phdr->p_memsz, ARCH_DMA_MINALIGN)); in load_elf64_image_phdr() 110 flush_cache(rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN), in load_elf64_image_shdr() 112 ARCH_DMA_MINALIGN) - in load_elf64_image_shdr() 113 rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN)); in load_elf64_image_shdr() 162 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), in load_elf_image_phdr() 163 roundup(phdr->p_memsz, ARCH_DMA_MINALIGN)); in load_elf_image_phdr() 215 flush_cache(rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN), in load_elf_image_shdr() 217 ARCH_DMA_MINALIGN) - in load_elf_image_shdr() 218 rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN)); in load_elf_image_shdr()
|
/u-boot/arch/arm/mach-omap2/ |
A D | sec-common.c | 63 static uint32_t secure_rom_call_args[5] __aligned(ARCH_DMA_MINALIGN) __section(".data"); 92 roundup(sizeof(secure_rom_call_args), ARCH_DMA_MINALIGN)); in secure_rom_call() 122 rounddown((u32)*image, ARCH_DMA_MINALIGN), in secure_boot_verify_image() 123 roundup((u32)*image + *size, ARCH_DMA_MINALIGN)); in secure_boot_verify_image() 164 rounddown((u32)*image, ARCH_DMA_MINALIGN), in secure_boot_verify_image() 165 roundup((u32)*image + *size, ARCH_DMA_MINALIGN)); in secure_boot_verify_image() 294 static struct ppa_tee_load_info tee_info __aligned(ARCH_DMA_MINALIGN); 343 rounddown((u32)loadptr, ARCH_DMA_MINALIGN), in secure_tee_install() 344 roundup((u32)loadptr + tee_file_size, ARCH_DMA_MINALIGN)); in secure_tee_install() 347 roundup(sizeof(tee_info), ARCH_DMA_MINALIGN)); in secure_tee_install() [all …]
|
/u-boot/arch/microblaze/include/asm/ |
A D | cache.h | 16 #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE macro 18 #define ARCH_DMA_MINALIGN 16 macro
|
/u-boot/arch/riscv/include/asm/ |
A D | cache.h | 19 #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE macro 21 #define ARCH_DMA_MINALIGN 32 macro
|
/u-boot/arch/mips/include/asm/ |
A D | cache.h | 12 #define ARCH_DMA_MINALIGN (L1_CACHE_BYTES) macro 19 #define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
|
A D | cacheops.h | 32 int i, lines = ((len - 1) / ARCH_DMA_MINALIGN) + 1; in icache_lock() 38 "n" (i * ARCH_DMA_MINALIGN), in icache_lock()
|
/u-boot/arch/arm/include/asm/ |
A D | dma-mapping.h | 19 *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, ROUND(len, ARCH_DMA_MINALIGN)); in dma_alloc_coherent()
|
/u-boot/arch/arc/include/asm/ |
A D | cache.h | 17 #define ARCH_DMA_MINALIGN 128 macro 20 #define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
|
/u-boot/drivers/net/ |
A D | ftgmac100.c | 341 start = ((ulong)&priv->txdes[0]) & ~(ARCH_DMA_MINALIGN - 1); in ftgmac100_start() 342 end = start + roundup(sizeof(priv->txdes), ARCH_DMA_MINALIGN); in ftgmac100_start() 351 start = ((ulong)&priv->rxdes[0]) & ~(ARCH_DMA_MINALIGN - 1); in ftgmac100_start() 352 end = start + roundup(sizeof(priv->rxdes), ARCH_DMA_MINALIGN); in ftgmac100_start() 401 ulong des_start = ((ulong)curr_des) & ~(ARCH_DMA_MINALIGN - 1); in ftgmac100_free_pkt() 403 roundup(sizeof(*curr_des), ARCH_DMA_MINALIGN); in ftgmac100_free_pkt() 425 roundup(sizeof(*curr_des), ARCH_DMA_MINALIGN); in ftgmac100_recv() 448 data_end = data_start + roundup(rxlen, ARCH_DMA_MINALIGN); in ftgmac100_recv() 458 ulong des_start = ((ulong)txdes) & ~(ARCH_DMA_MINALIGN - 1); in ftgmac100_read_txdesc() 478 roundup(sizeof(*curr_des), ARCH_DMA_MINALIGN); in BUILD_WAIT_FOR_BIT() [all …]
|
/u-boot/arch/nds32/include/asm/ |
A D | cache.h | 58 #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE macro 60 #define ARCH_DMA_MINALIGN 32 macro
|
/u-boot/include/linux/ |
A D | dma-mapping.h | 34 len = ALIGN(len, ARCH_DMA_MINALIGN); in dma_map_single() 58 len = ALIGN(len, ARCH_DMA_MINALIGN); in dma_unmap_single()
|
/u-boot/drivers/remoteproc/ |
A D | rproc-elf-loader.c | 198 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), 200 ARCH_DMA_MINALIGN) - 201 rounddown((unsigned long)dst, ARCH_DMA_MINALIGN)); 253 flush_cache(rounddown((ulong)ptr, ARCH_DMA_MINALIGN), 254 roundup((ulong)ptr + filesz, ARCH_DMA_MINALIGN) - 255 rounddown((ulong)ptr, ARCH_DMA_MINALIGN)); 401 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), 403 ARCH_DMA_MINALIGN) - 404 rounddown((unsigned long)dst, ARCH_DMA_MINALIGN)); 512 ARCH_DMA_MINALIGN) - [all …]
|
/u-boot/arch/arm/mach-k3/ |
A D | security.c | 37 ARCH_DMA_MINALIGN)); in board_fit_image_post_process() 49 image_size, ARCH_DMA_MINALIGN)); in board_fit_image_post_process()
|
/u-boot/board/xilinx/zynqmp/ |
A D | cmds.c | 146 roundup(sizeof(struct aes), ARCH_DMA_MINALIGN)); in do_zynqmp_aes() 151 roundup(aes->len, ARCH_DMA_MINALIGN))); in do_zynqmp_aes() 154 roundup(IV_SIZE, ARCH_DMA_MINALIGN))); in do_zynqmp_aes() 157 roundup(aes->len, ARCH_DMA_MINALIGN))); in do_zynqmp_aes() 169 ARCH_DMA_MINALIGN))); in do_zynqmp_aes() 271 (ulong)(srcaddr) + roundup(size, ARCH_DMA_MINALIGN)); in do_zynqmp_rsa() 309 ARCH_DMA_MINALIGN)); in do_zynqmp_sha3() 321 srcaddr + roundup(srclen, ARCH_DMA_MINALIGN)); in do_zynqmp_sha3()
|
/u-boot/drivers/fpga/ |
A D | versalpl.c | 20 if ((ulong)buf != ALIGN((ulong)buf, ARCH_DMA_MINALIGN)) { in versal_align_dma_buffer() 21 new_buf = (ulong *)ALIGN((ulong)buf, ARCH_DMA_MINALIGN); in versal_align_dma_buffer()
|
/u-boot/drivers/mmc/ |
A D | sdhci-adma.c | 61 ARCH_DMA_MINALIGN)); in sdhci_prepare_adma_table() 72 return memalign(ARCH_DMA_MINALIGN, ADMA_TABLE_SZ); in sdhci_adma_init()
|
/u-boot/env/ |
A D | sf.c | 99 saved_buffer = memalign(ARCH_DMA_MINALIGN, saved_size); in env_sf_save() 156 tmp_env1 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load() 158 tmp_env2 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_load() 252 buf = (char *)memalign(ARCH_DMA_MINALIGN, CONFIG_ENV_SIZE); in env_sf_load() 331 tmp_env1 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_init_early() 334 tmp_env2 = (env_t *)memalign(ARCH_DMA_MINALIGN, in env_sf_init_early()
|
/u-boot/drivers/bootcount/ |
A D | bootcount_ram.c | 43 ~(ARCH_DMA_MINALIGN - 1)) + ARCH_DMA_MINALIGN)); in bootcount_store()
|