Lines Matching refs:addr
116 static inline u##size name(const volatile u##size __iomem *addr) \
120 : "=r" (ret) : "r" (addr), "m" (*addr) : "memory"); \
125 static inline void name(volatile u##size __iomem *addr, u##size val) \
128 : "=m" (*addr) : "r" (val), "r" (addr) : "memory"); \
133 static inline u##size name(const volatile u##size __iomem *addr) \
137 : "=r" (ret) : "Z" (*addr) : "memory"); \
142 static inline void name(volatile u##size __iomem *addr, u##size val) \
145 : "=Z" (*addr) : "r" (val) : "memory"); \
151 static inline u##size name(const volatile u##size __iomem *addr) \
155 : "=r" (ret) : "m" (*addr) : "memory"); \
160 static inline void name(volatile u##size __iomem *addr, u##size val) \
163 : "=m" (*addr) : "r" (val) : "memory"); \
200 static inline u64 in_le64(const volatile u64 __iomem *addr) in in_le64() argument
202 return swab64(in_be64(addr)); in in_le64()
205 static inline void out_le64(volatile u64 __iomem *addr, u64 val) in out_le64() argument
207 out_be64(addr, swab64(val)); in out_le64()
214 static inline u64 in_be64(const volatile u64 __iomem *addr) in in_be64() argument
216 return swab64(in_le64(addr)); in in_be64()
219 static inline void out_be64(volatile u64 __iomem *addr, u64 val) in out_be64() argument
221 out_le64(addr, swab64(val)); in out_be64()
230 extern void _insb(const volatile u8 __iomem *addr, void *buf, long count);
231 extern void _outsb(volatile u8 __iomem *addr,const void *buf,long count);
232 extern void _insw_ns(const volatile u16 __iomem *addr, void *buf, long count);
233 extern void _outsw_ns(volatile u16 __iomem *addr, const void *buf, long count);
234 extern void _insl_ns(const volatile u32 __iomem *addr, void *buf, long count);
235 extern void _outsl_ns(volatile u32 __iomem *addr, const void *buf, long count);
250 extern void _memset_io(volatile void __iomem *addr, int c, unsigned long n);
310 #define PCI_FIX_ADDR(addr) \ argument
311 ((PCI_IO_ADDR)(((unsigned long)(addr)) & ~PCI_IO_IND_TOKEN_MASK))
312 #define PCI_GET_ADDR_TOKEN(addr) \ argument
313 (((unsigned long)(addr) & PCI_IO_IND_TOKEN_MASK) >> \
315 #define PCI_SET_ADDR_TOKEN(addr, token) \ argument
317 unsigned long __a = (unsigned long)(addr); \
320 (addr) = (void __iomem *)__a; \
323 #define PCI_FIX_ADDR(addr) (addr) argument
331 static inline unsigned char __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
333 return *(volatile unsigned char __force *)PCI_FIX_ADDR(addr); in __raw_readb()
335 static inline unsigned short __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
337 return *(volatile unsigned short __force *)PCI_FIX_ADDR(addr); in __raw_readw()
339 static inline unsigned int __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
341 return *(volatile unsigned int __force *)PCI_FIX_ADDR(addr); in __raw_readl()
343 static inline void __raw_writeb(unsigned char v, volatile void __iomem *addr) in __raw_writeb() argument
345 *(volatile unsigned char __force *)PCI_FIX_ADDR(addr) = v; in __raw_writeb()
347 static inline void __raw_writew(unsigned short v, volatile void __iomem *addr) in __raw_writew() argument
349 *(volatile unsigned short __force *)PCI_FIX_ADDR(addr) = v; in __raw_writew()
351 static inline void __raw_writel(unsigned int v, volatile void __iomem *addr) in __raw_writel() argument
353 *(volatile unsigned int __force *)PCI_FIX_ADDR(addr) = v; in __raw_writel()
357 static inline unsigned long __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
359 return *(volatile unsigned long __force *)PCI_FIX_ADDR(addr); in __raw_readq()
361 static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr) in __raw_writeq() argument
363 *(volatile unsigned long __force *)PCI_FIX_ADDR(addr) = v; in __raw_writeq()
506 #define __do_writeb(val, addr) out_8(PCI_FIX_ADDR(addr), val) argument
507 #define __do_writew(val, addr) out_le16(PCI_FIX_ADDR(addr), val) argument
508 #define __do_writel(val, addr) out_le32(PCI_FIX_ADDR(addr), val) argument
509 #define __do_writeq(val, addr) out_le64(PCI_FIX_ADDR(addr), val) argument
510 #define __do_writew_be(val, addr) out_be16(PCI_FIX_ADDR(addr), val) argument
511 #define __do_writel_be(val, addr) out_be32(PCI_FIX_ADDR(addr), val) argument
512 #define __do_writeq_be(val, addr) out_be64(PCI_FIX_ADDR(addr), val) argument
515 #define __do_readb(addr) eeh_readb(PCI_FIX_ADDR(addr)) argument
516 #define __do_readw(addr) eeh_readw(PCI_FIX_ADDR(addr)) argument
517 #define __do_readl(addr) eeh_readl(PCI_FIX_ADDR(addr)) argument
518 #define __do_readq(addr) eeh_readq(PCI_FIX_ADDR(addr)) argument
519 #define __do_readw_be(addr) eeh_readw_be(PCI_FIX_ADDR(addr)) argument
520 #define __do_readl_be(addr) eeh_readl_be(PCI_FIX_ADDR(addr)) argument
521 #define __do_readq_be(addr) eeh_readq_be(PCI_FIX_ADDR(addr)) argument
523 #define __do_readb(addr) in_8(PCI_FIX_ADDR(addr))
524 #define __do_readw(addr) in_le16(PCI_FIX_ADDR(addr))
525 #define __do_readl(addr) in_le32(PCI_FIX_ADDR(addr))
526 #define __do_readq(addr) in_le64(PCI_FIX_ADDR(addr))
527 #define __do_readw_be(addr) in_be16(PCI_FIX_ADDR(addr))
528 #define __do_readl_be(addr) in_be32(PCI_FIX_ADDR(addr))
529 #define __do_readq_be(addr) in_be64(PCI_FIX_ADDR(addr))
568 #define __do_memset_io(addr, c, n) \ argument
569 _memset_io(PCI_FIX_ADDR(addr), c, n)
651 #define readb_relaxed(addr) readb(addr) argument
652 #define readw_relaxed(addr) readw(addr) argument
653 #define readl_relaxed(addr) readl(addr) argument
654 #define readq_relaxed(addr) readq(addr) argument
655 #define writeb_relaxed(v, addr) writeb(v, addr) argument
656 #define writew_relaxed(v, addr) writew(v, addr) argument
657 #define writel_relaxed(v, addr) writel(v, addr) argument
658 #define writeq_relaxed(v, addr) writeq(v, addr) argument
754 #define ioremap_nocache(addr, size) ioremap((addr), (size)) argument
755 #define ioremap_uc(addr, size) ioremap((addr), (size)) argument
756 #define ioremap_cache(addr, size) \ argument
757 ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL))
759 extern void iounmap(volatile void __iomem *addr);
766 extern void __iounmap(volatile void __iomem *addr);
783 #define mmio_read16be(addr) readw_be(addr) argument
784 #define mmio_read32be(addr) readl_be(addr) argument
785 #define mmio_write16be(val, addr) writew_be(val, addr) argument
786 #define mmio_write32be(val, addr) writel_be(val, addr) argument
787 #define mmio_insb(addr, dst, count) readsb(addr, dst, count) argument
788 #define mmio_insw(addr, dst, count) readsw(addr, dst, count) argument
789 #define mmio_insl(addr, dst, count) readsl(addr, dst, count) argument
790 #define mmio_outsb(addr, src, count) writesb(addr, src, count) argument
791 #define mmio_outsw(addr, src, count) writesw(addr, src, count) argument
792 #define mmio_outsl(addr, src, count) writesl(addr, src, count) argument
876 #define clrsetbits(type, addr, clear, set) \ argument
877 out_##type((addr), (in_##type(addr) & ~(clear)) | (set))
880 #define clrsetbits_be64(addr, clear, set) clrsetbits(be64, addr, clear, set) argument
881 #define clrsetbits_le64(addr, clear, set) clrsetbits(le64, addr, clear, set) argument
884 #define clrsetbits_be32(addr, clear, set) clrsetbits(be32, addr, clear, set) argument
885 #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) argument
887 #define clrsetbits_be16(addr, clear, set) clrsetbits(be16, addr, clear, set) argument
888 #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) argument
890 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) argument