Home
last modified time | relevance | path

Searched refs:alignbytes (Results 1 – 10 of 10) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/drivers/common/
Dfsl_common_arm.h355 #define SDK_ALIGN(var, alignbytes) SDK_PRAGMA(data_alignment = alignbytes) var argument
358 #define SDK_ALIGN(var, alignbytes) __attribute__((aligned(alignbytes))) var
361 #define SDK_ALIGN(var, alignbytes) var __attribute__((aligned(alignbytes)))
376 #define SDK_SIZEALIGN(var, alignbytes) \ argument
377 ((unsigned int)((var) + ((alignbytes)-1U)) & (unsigned int)(~(unsigned int)((alignbytes)-1U)))
393 #define AT_NONCACHEABLE_SECTION_ALIGN(var, alignbytes) SDK_PRAGMA(data_alignment = alignbytes) var … argument
395 #define AT_NONCACHEABLE_SECTION_ALIGN_INIT(var, alignbytes) \ argument
396 SDK_PRAGMA(data_alignment = alignbytes) var @"NonCacheable.init"
400 #define AT_NONCACHEABLE_SECTION_ALIGN_INIT(var, alignbytes) \
401 __attribute__((section("NonCacheable.init"))) __attribute__((aligned(alignbytes))) var
[all …]
Dfsl_common_dsp.h39 #define SDK_ALIGN(var, alignbytes) var __attribute__((aligned(alignbytes))) argument
52 #define SDK_SIZEALIGN(var, alignbytes) \ argument
53 ((unsigned int)((var) + ((alignbytes)-1U)) & (unsigned int)(~(unsigned int)((alignbytes)-1U)))
66 #define AT_NONCACHEABLE_SECTION_ALIGN_INIT(var, alignbytes) \ argument
67 __attribute__((section("NonCacheable.init"))) var __attribute__((aligned(alignbytes)))
68 #define AT_NONCACHEABLE_SECTION_ALIGN(var, alignbytes) \ argument
69 __attribute__((section("NonCacheable"))) var __attribute__((aligned(alignbytes)))
Dfsl_common_riscv.h38 #define SDK_ALIGN(var, alignbytes) var __attribute__((aligned(alignbytes))) argument
41 #define SDK_SIZEALIGN(var, alignbytes) \ argument
42 ((unsigned int)((var) + ((alignbytes)-1U)) & (unsigned int)(~(unsigned int)((alignbytes)-1U)))
Dfsl_common.c25 void *SDK_Malloc(size_t size, size_t alignbytes) in SDK_Malloc() argument
31 alignedsize = (uint32_t)(unsigned int)SDK_SIZEALIGN(size, alignbytes); in SDK_Malloc()
37 if (alignedsize > SIZE_MAX - alignbytes - sizeof(mem_align_cb_t)) in SDK_Malloc()
42 alignedsize += alignbytes + (uint32_t)sizeof(mem_align_cb_t); in SDK_Malloc()
57 …gn_addr.unsigned_value = SDK_SIZEALIGN(p_addr.unsigned_value + sizeof(mem_align_cb_t), alignbytes); in SDK_Malloc()
Dfsl_common.h326 void *SDK_Malloc(size_t size, size_t alignbytes);
/hal_nxp-latest/mcux/mcux-sdk/components/osa/
Dfsl_os_abstraction_threadx.c57 #define OSA_MEM_SIZE_ALIGN(var, alignbytes) \ argument
58 ((unsigned int)((var) + ((alignbytes)-1U)) & (unsigned int)(~(unsigned int)((alignbytes)-1U)))
146 void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes) in OSA_MemoryAllocateAlign() argument
152 alignedsize = (uint32_t)(unsigned int)OSA_MEM_SIZE_ALIGN(memLength, alignbytes); in OSA_MemoryAllocateAlign()
158 if (alignedsize > 0xFFFFFFFFU - alignbytes - sizeof(osa_mem_align_cb_t)) in OSA_MemoryAllocateAlign()
163 alignedsize += alignbytes + (uint32_t)sizeof(osa_mem_align_cb_t); in OSA_MemoryAllocateAlign()
178 …nsigned_value = OSA_MEM_SIZE_ALIGN(p_addr.unsigned_value + sizeof(osa_mem_align_cb_t), alignbytes); in OSA_MemoryAllocateAlign()
Dfsl_os_abstraction_free_rtos.c55 #define OSA_MEM_SIZE_ALIGN(var, alignbytes) \ argument
56 ((unsigned int)((var) + ((alignbytes)-1U)) & (unsigned int)(~(unsigned int)((alignbytes)-1U)))
177 void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes) in OSA_MemoryAllocateAlign() argument
183 alignedsize = (uint32_t)(unsigned int)OSA_MEM_SIZE_ALIGN(memLength, alignbytes); in OSA_MemoryAllocateAlign()
189 if (alignedsize > 0xFFFFFFFFU - alignbytes - sizeof(osa_mem_align_cb_t)) in OSA_MemoryAllocateAlign()
194 alignedsize += alignbytes + (uint32_t)sizeof(osa_mem_align_cb_t); in OSA_MemoryAllocateAlign()
209 …nsigned_value = OSA_MEM_SIZE_ALIGN(p_addr.unsigned_value + sizeof(osa_mem_align_cb_t), alignbytes); in OSA_MemoryAllocateAlign()
Dfsl_os_abstraction_bm.c48 #define OSA_MEM_SIZE_ALIGN(var, alignbytes) \ argument
49 ((unsigned int)((var) + ((alignbytes)-1U)) & (unsigned int)(~(unsigned int)((alignbytes)-1U)))
225 void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes) in OSA_MemoryAllocateAlign() argument
231 alignedsize = (uint32_t)(unsigned int)OSA_MEM_SIZE_ALIGN(memLength, alignbytes); in OSA_MemoryAllocateAlign()
237 if (alignedsize > 0xFFFFFFFFU - alignbytes - sizeof(osa_mem_align_cb_t)) in OSA_MemoryAllocateAlign()
242 alignedsize += alignbytes + (uint32_t)sizeof(osa_mem_align_cb_t); in OSA_MemoryAllocateAlign()
257 …nsigned_value = OSA_MEM_SIZE_ALIGN(p_addr.unsigned_value + sizeof(osa_mem_align_cb_t), alignbytes); in OSA_MemoryAllocateAlign()
Dfsl_os_abstraction_zephyr.c174 void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes) in OSA_MemoryAllocateAlign() argument
177 void *p = k_aligned_alloc(alignbytes, memLength); in OSA_MemoryAllocateAlign()
Dfsl_os_abstraction.h517 void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes);