Lines Matching refs:type

196 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, barrier, relax, irq)	\
198 static inline void pfx##write##bwlq(type val, \
201 volatile type *__mem; \
202 type __val; \
213 if (sizeof(type) != sizeof(u64) || sizeof(u64) == sizeof(long)) \
217 type __tmp; \
238 static inline type pfx##read##bwlq(const volatile void __iomem *mem) \
240 volatile type *__mem; \
241 type __val; \
248 if (sizeof(type) != sizeof(u64) || sizeof(u64) == sizeof(long)) \
277 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, barrier, relax) \
279 static inline void pfx##out##bwlq(type val, unsigned long port) \
281 volatile type *__addr; \
282 type __val; \
294 BUILD_BUG_ON(sizeof(type) > sizeof(unsigned long)); \
299 static inline type pfx##in##bwlq(unsigned long port) \
301 volatile type *__addr; \
302 type __val; \
306 BUILD_BUG_ON(sizeof(type) > sizeof(unsigned long)); \
319 #define __BUILD_MEMORY_PFX(bus, bwlq, type, relax) \
321 __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1, relax, 1)
323 #define BUILDIO_MEM(bwlq, type) \
325 __BUILD_MEMORY_PFX(__raw_, bwlq, type, 0) \
326 __BUILD_MEMORY_PFX(__relaxed_, bwlq, type, 1) \
327 __BUILD_MEMORY_PFX(__mem_, bwlq, type, 0) \
328 __BUILD_MEMORY_PFX(, bwlq, type, 0)
340 #define __BUILD_IOPORT_PFX(bus, bwlq, type) \
341 __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0)
343 #define BUILDIO_IOPORT(bwlq, type) \
344 __BUILD_IOPORT_PFX(_, bwlq, type) \
345 __BUILD_IOPORT_PFX(__mem_, bwlq, type)
354 #define __BUILDIO(bwlq, type) \
356 __BUILD_MEMORY_SINGLE(____raw_, bwlq, type, 1, 0, 0)
392 #define __BUILD_MEMORY_STRING(bwlq, type) \
397 const volatile type *__addr = addr; \
408 volatile type *__addr = addr; \
416 #define __BUILD_IOPORT_STRING(bwlq, type) \
421 const volatile type *__addr = addr; \
432 volatile type *__addr = addr; \
440 #define BUILDSTRING(bwlq, type) \
442 __BUILD_MEMORY_STRING(bwlq, type) \
443 __BUILD_IOPORT_STRING(bwlq, type)