Lines Matching refs:size
71 #define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad) \ argument
72 char __##name[ROUND(PAD_SIZE((size) * sizeof(type), pad), align) \
76 #define ALLOC_ALIGN_BUFFER(type, name, size, align) \ argument
77 ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, 1)
78 #define ALLOC_CACHE_ALIGN_BUFFER_PAD(type, name, size, pad) \ argument
79 ALLOC_ALIGN_BUFFER_PAD(type, name, size, ARCH_DMA_MINALIGN, pad)
80 #define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \ argument
81 ALLOC_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN)
88 #define DEFINE_ALIGN_BUFFER(type, name, size, align) \ argument
89 static char __##name[ALIGN(size * sizeof(type), align)] \
93 #define DEFINE_CACHE_ALIGN_BUFFER(type, name, size) \ argument
94 DEFINE_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN)
109 static inline void *malloc_cache_aligned(size_t size) in malloc_cache_aligned() argument
111 return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN)); in malloc_cache_aligned()