Lines Matching refs:bwlq
196 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, barrier, relax, irq) \ argument
198 static inline void pfx##write##bwlq(type val, \
209 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
211 __val = pfx##ioswab##bwlq(__mem, val); \
238 static inline type pfx##read##bwlq(const volatile void __iomem *mem) \
243 __mem = (void *)__swizzle_addr_##bwlq((unsigned long)(mem)); \
274 return pfx##ioswab##bwlq(__mem, __val); \
277 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, barrier, relax) \ argument
279 static inline void pfx##out##bwlq(type val, unsigned long port) \
289 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
291 __val = pfx##ioswab##bwlq(__addr, val); \
299 static inline type pfx##in##bwlq(unsigned long port) \
304 __addr = (void *)__swizzle_addr_##bwlq(mips_io_port_base + port); \
316 return pfx##ioswab##bwlq(__addr, __val); \
319 #define __BUILD_MEMORY_PFX(bus, bwlq, type, relax) \ argument
321 __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1, relax, 1)
323 #define BUILDIO_MEM(bwlq, type) \ argument
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) \ argument
341 __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0)
343 #define BUILDIO_IOPORT(bwlq, type) \ argument
344 __BUILD_IOPORT_PFX(_, bwlq, type) \
345 __BUILD_IOPORT_PFX(__mem_, bwlq, type)
354 #define __BUILDIO(bwlq, type) \ argument
356 __BUILD_MEMORY_SINGLE(____raw_, bwlq, type, 1, 0, 0)
392 #define __BUILD_MEMORY_STRING(bwlq, type) \ argument
394 static inline void writes##bwlq(volatile void __iomem *mem, \
400 __mem_write##bwlq(*__addr, mem); \
405 static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \
411 *__addr = __mem_read##bwlq(mem); \
416 #define __BUILD_IOPORT_STRING(bwlq, type) \ argument
418 static inline void outs##bwlq(unsigned long port, const void *addr, \
424 __mem_out##bwlq(*__addr, port); \
429 static inline void ins##bwlq(unsigned long port, void *addr, \
435 *__addr = __mem_in##bwlq(port); \
440 #define BUILDSTRING(bwlq, type) \ argument
442 __BUILD_MEMORY_STRING(bwlq, type) \
443 __BUILD_IOPORT_STRING(bwlq, type)