Lines Matching refs:type
71 #define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad) \ argument
72 char __##name[ROUND(PAD_SIZE((size) * sizeof(type), pad), align) \
75 type *name = (type *)ALIGN((uintptr_t)__##name, 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)] \
92 static type *name = (type *)__##name
93 #define DEFINE_CACHE_ALIGN_BUFFER(type, name, size) \ argument
94 DEFINE_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN)