Lines Matching refs:bwlq
325 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, irq) \ argument
327 static inline void pfx##write##bwlq(type val, \
335 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
337 __val = pfx##ioswab##bwlq(__mem, val); \
363 static inline type pfx##read##bwlq(const volatile void __iomem *mem) \
368 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
394 return pfx##ioswab##bwlq(__mem, __val); \
397 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, p, slow) \ argument
399 static inline void pfx##out##bwlq##p(type val, unsigned long port) \
406 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
408 __val = pfx##ioswab##bwlq(__addr, val); \
417 static inline type pfx##in##bwlq##p(unsigned long port) \
422 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
431 return pfx##ioswab##bwlq(__addr, __val); \
434 #define __BUILD_MEMORY_PFX(bus, bwlq, type) \ argument
436 __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1)
438 #define BUILDIO_MEM(bwlq, type) \ argument
440 __BUILD_MEMORY_PFX(__raw_, bwlq, type) \
441 __BUILD_MEMORY_PFX(, bwlq, type) \
442 __BUILD_MEMORY_PFX(__mem_, bwlq, type) \
449 #define __BUILD_IOPORT_PFX(bus, bwlq, type) \ in BUILDIO_MEM() argument
450 __BUILD_IOPORT_SINGLE(bus, bwlq, type, ,) \ in BUILDIO_MEM()
451 __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) in BUILDIO_MEM()
453 #define BUILDIO_IOPORT(bwlq, type) \ in BUILDIO_MEM() argument
454 __BUILD_IOPORT_PFX(, bwlq, type) \ in BUILDIO_MEM()
455 __BUILD_IOPORT_PFX(__mem_, bwlq, type) in BUILDIO_MEM()
464 #define __BUILDIO(bwlq, type) \ in BUILDIO_MEM() argument
466 __BUILD_MEMORY_SINGLE(____raw_, bwlq, type, 0) in BUILDIO_MEM()
504 #define __BUILD_MEMORY_STRING(bwlq, type) \ in BUILDIO_MEM() argument
506 static inline void writes##bwlq(volatile void __iomem *mem, \ in BUILDIO_MEM()
512 __mem_write##bwlq(*__addr, mem); \ in BUILDIO_MEM()
517 static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \
523 *__addr = __mem_read##bwlq(mem); \
528 #define __BUILD_IOPORT_STRING(bwlq, type) \ argument
530 static inline void outs##bwlq(unsigned long port, const void *addr, \
536 __mem_out##bwlq(*__addr, port); \
541 static inline void ins##bwlq(unsigned long port, void *addr, \
547 *__addr = __mem_in##bwlq(port); \
552 #define BUILDSTRING(bwlq, type) \ argument
554 __BUILD_MEMORY_STRING(bwlq, type) \
555 __BUILD_IOPORT_STRING(bwlq, type)