Home
last modified time | relevance | path

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

/optee_os/lib/libutils/isoc/include/
H A Dmalloc.h23 void *malloc_flags(uint32_t flags, void *ptr, size_t alignment, size_t size);
26 void *memalign(size_t alignment, size_t size);
31 void *aligned_alloc(size_t alignment, size_t size);
35 void *__mdbg_alloc(uint32_t flags, void *ptr, size_t alignment, size_t nmemb,
110 void *nex_memalign(size_t alignment, size_t size);
135 #define nex_memalign(alignment, size) memalign(alignment, size) argument
144 void *raw_memalign(size_t hdr_size, size_t ftr_size, size_t alignment,
149 size_t ftr_size, size_t alignment, size_t pl_nmemb,
/optee_os/core/kernel/
H A Dtransfer_list.c30 paddr_t align_mask = TL_ALIGNMENT_FROM_ORDER(tl->alignment) - 1; in get_align_base_addr()
35 new_addr += TL_ALIGNMENT_FROM_ORDER(tl->alignment); in get_align_base_addr()
101 DMSG("alignment %#"PRIx8, tl->alignment); in transfer_list_dump()
146 tl->alignment = TRANSFER_LIST_INIT_MAX_ALIGN; /* initial max align */ in transfer_list_init()
392 TL_ALIGNMENT_FROM_ORDER(tl->alignment), in transfer_list_set_data_size()
405 TL_ALIGNMENT_FROM_ORDER(tl->alignment)); in transfer_list_set_data_size()
520 uint8_t alignment) in transfer_list_add_with_align() argument
537 if (!IS_ALIGNED(ev, TL_ALIGNMENT_FROM_ORDER(alignment))) { in transfer_list_add_with_align()
543 new_tl_ev = ROUNDUP2(ev, TL_ALIGNMENT_FROM_ORDER(alignment)) - in transfer_list_add_with_align()
556 if (alignment > tl->alignment) { in transfer_list_add_with_align()
[all …]
/optee_os/lib/libutils/isoc/
H A Dbget_malloc.c430 size_t ftr_size, size_t alignment, size_t pl_nmemb, in raw_malloc_flags() argument
438 if (!alignment || !IS_POWER_OF_TWO(alignment)) in raw_malloc_flags()
452 p = bgetz(alignment, hdr_size, s, &ctx->poolset); in raw_malloc_flags()
454 p = bget(alignment, hdr_size, s, &ctx->poolset); in raw_malloc_flags()
476 void *raw_memalign(size_t hdr_size, size_t ftr_size, size_t alignment, in raw_memalign() argument
479 return raw_malloc_flags(MAF_NULL, NULL, hdr_size, ftr_size, alignment, in raw_memalign()
562 static void *mem_alloc_unlocked(uint32_t flags, void *ptr, size_t alignment, in mem_alloc_unlocked() argument
586 ptr = raw_malloc_flags(flags, ptr, hdr_size, ftr_size, alignment, nmemb, in mem_alloc_unlocked()
608 static void *mem_alloc(uint32_t flags, void *ptr, size_t alignment, in mem_alloc() argument
616 p = mem_alloc_unlocked(flags, ptr, alignment, nmemb, size, fname, in mem_alloc()
[all …]
H A Dbget.doc30 satisfy hardware alignment constraints.
/optee_os/core/pta/tests/
H A Dtransfer_list.c37 old_tl_align = tl->alignment; in test_add_te()
48 if (tl->alignment != MAX(old_tl_align, align)) in test_add_te()
138 if (!IS_ALIGNED(mov_dis, TL_ALIGNMENT_FROM_ORDER(tl->alignment))) in test_set_te_data_size()
169 tl->alignment != TRANSFER_LIST_INIT_MAX_ALIGN || in transfer_list_tests()
/optee_os/core/include/kernel/
H A Dtransfer_list.h71 uint8_t alignment; /* max alignment of transfer entry data */ member
165 uint8_t alignment);
/optee_os/ldelf/
H A Dlink.mk18 link-ldflags += --sort-section=alignment
/optee_os/lib/libutils/ext/
H A Dubsan.c67 unsigned long alignment; member
/optee_os/core/arch/riscv/kernel/
H A Dlink.mk17 link-ldflags += --sort-section=alignment
/optee_os/ta/
H A Dlink.mk33 link-ldflags += --sort-section=alignment
/optee_os/core/arch/arm/kernel/
H A Dlink.mk36 link-ldflags += --sort-section=alignment
H A Dboot.c1169 !IS_ALIGNED(transfer_list, TL_ALIGNMENT_FROM_ORDER(tl->alignment))) in boot_save_transfer_list()
/optee_os/
H A DCHANGELOG.md1064 * Make alignment check configurable ([#1586])
1107 SCTLR bits configured by generic code. This affects alignment checks (`SCTLR.A`)
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog5181 * Enforce alignment in the buffer allocator even if buffer is not aligned
5435 * Prevent possible alignment warnings on casting from char * to 'aligned *'