Lines Matching refs:bwlq
216 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, barrier, relax, irq) \ argument
218 static inline void pfx##write##bwlq(type val, \
229 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
231 __val = pfx##ioswab##bwlq(__mem, val); \
258 static inline type pfx##read##bwlq(const volatile void __iomem *mem) \
263 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
294 return pfx##ioswab##bwlq(__mem, __val); \
297 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, barrier, relax, p) \ argument
299 static inline void pfx##out##bwlq##p(type val, unsigned long port) \
309 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
311 __val = pfx##ioswab##bwlq(__addr, val); \
319 static inline type pfx##in##bwlq##p(unsigned long port) \
324 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
336 return pfx##ioswab##bwlq(__addr, __val); \
339 #define __BUILD_MEMORY_PFX(bus, bwlq, type, relax) \ argument
341 __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1, relax, 1)
343 #define BUILDIO_MEM(bwlq, type) \ argument
345 __BUILD_MEMORY_PFX(__raw_, bwlq, type, 0) \
346 __BUILD_MEMORY_PFX(__relaxed_, bwlq, type, 1) \
347 __BUILD_MEMORY_PFX(__mem_, bwlq, type, 0) \
348 __BUILD_MEMORY_PFX(, bwlq, type, 0)
360 #define __BUILD_IOPORT_PFX(bus, bwlq, type) \ in BUILDIO_MEM() argument
361 __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0,) \ in BUILDIO_MEM()
362 __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0, _p) in BUILDIO_MEM()
364 #define BUILDIO_IOPORT(bwlq, type) \ in BUILDIO_MEM() argument
365 __BUILD_IOPORT_PFX(, bwlq, type) \ in BUILDIO_MEM()
366 __BUILD_IOPORT_PFX(__mem_, bwlq, type) in BUILDIO_MEM()
375 #define __BUILDIO(bwlq, type) \ in BUILDIO_MEM() argument
377 __BUILD_MEMORY_SINGLE(____raw_, bwlq, type, 1, 0, 0) in BUILDIO_MEM()
421 #define __BUILD_MEMORY_STRING(bwlq, type) \ in BUILDIO_MEM() argument
423 static inline void writes##bwlq(volatile void __iomem *mem, \ in BUILDIO_MEM()
429 __mem_write##bwlq(*__addr, mem); \ in BUILDIO_MEM()
434 static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \
440 *__addr = __mem_read##bwlq(mem); \
445 #define __BUILD_IOPORT_STRING(bwlq, type) \ argument
447 static inline void outs##bwlq(unsigned long port, const void *addr, \
453 __mem_out##bwlq(*__addr, port); \
458 static inline void ins##bwlq(unsigned long port, void *addr, \
464 *__addr = __mem_in##bwlq(port); \
469 #define BUILDSTRING(bwlq, type) \ argument
471 __BUILD_MEMORY_STRING(bwlq, type) \
472 __BUILD_IOPORT_STRING(bwlq, type)