Lines Matching refs:bwlq
218 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, barrier, relax, irq) \ argument
220 static inline void pfx##write##bwlq(type val, \
231 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
233 __val = pfx##ioswab##bwlq(__mem, val); \
260 static inline type pfx##read##bwlq(const volatile void __iomem *mem) \
265 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
296 return pfx##ioswab##bwlq(__mem, __val); \
299 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, barrier, relax, p) \ argument
301 static inline void pfx##out##bwlq##p(type val, unsigned long port) \
311 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
313 __val = pfx##ioswab##bwlq(__addr, val); \
321 static inline type pfx##in##bwlq##p(unsigned long port) \
326 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
338 return pfx##ioswab##bwlq(__addr, __val); \
341 #define __BUILD_MEMORY_PFX(bus, bwlq, type, relax) \ argument
343 __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1, relax, 1)
345 #define BUILDIO_MEM(bwlq, type) \ argument
347 __BUILD_MEMORY_PFX(__raw_, bwlq, type, 0) \
348 __BUILD_MEMORY_PFX(__relaxed_, bwlq, type, 1) \
349 __BUILD_MEMORY_PFX(__mem_, bwlq, type, 0) \
350 __BUILD_MEMORY_PFX(, bwlq, type, 0)
362 #define __BUILD_IOPORT_PFX(bus, bwlq, type) \ in BUILDIO_MEM() argument
363 __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0,) \ in BUILDIO_MEM()
364 __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0, _p) in BUILDIO_MEM()
366 #define BUILDIO_IOPORT(bwlq, type) \ in BUILDIO_MEM() argument
367 __BUILD_IOPORT_PFX(, bwlq, type) \ in BUILDIO_MEM()
368 __BUILD_IOPORT_PFX(__mem_, bwlq, type) in BUILDIO_MEM()
377 #define __BUILDIO(bwlq, type) \ in BUILDIO_MEM() argument
379 __BUILD_MEMORY_SINGLE(____raw_, bwlq, type, 1, 0, 0) in BUILDIO_MEM()
423 #define __BUILD_MEMORY_STRING(bwlq, type) \ in BUILDIO_MEM() argument
425 static inline void writes##bwlq(volatile void __iomem *mem, \ in BUILDIO_MEM()
431 __mem_write##bwlq(*__addr, mem); \ in BUILDIO_MEM()
436 static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \
442 *__addr = __mem_read##bwlq(mem); \
447 #define __BUILD_IOPORT_STRING(bwlq, type) \ argument
449 static inline void outs##bwlq(unsigned long port, const void *addr, \
455 __mem_out##bwlq(*__addr, port); \
460 static inline void ins##bwlq(unsigned long port, void *addr, \
466 *__addr = __mem_in##bwlq(port); \
471 #define BUILDSTRING(bwlq, type) \ argument
473 __BUILD_MEMORY_STRING(bwlq, type) \
474 __BUILD_IOPORT_STRING(bwlq, type)