Lines Matching full:addr
104 static inline u##size name(const volatile u##size __iomem *addr) \
108 : "=r" (ret) : "Z" (*addr) : "memory"); \
113 static inline void name(volatile u##size __iomem *addr, u##size val) \
116 : "=Z" (*addr) : "r" (val) : "memory"); \
121 static inline u##size name(const volatile u##size __iomem *addr) \
125 : "=r" (ret) : "m" (*addr) : "memory"); \
130 static inline void name(volatile u##size __iomem *addr, u##size val) \
133 : "=m" (*addr) : "r" (val) : "memory"); \
170 static inline u64 in_le64(const volatile u64 __iomem *addr) in in_le64() argument
172 return swab64(in_be64(addr)); in in_le64()
175 static inline void out_le64(volatile u64 __iomem *addr, u64 val) in out_le64() argument
177 out_be64(addr, swab64(val)); in out_le64()
184 static inline u64 in_be64(const volatile u64 __iomem *addr) in in_be64() argument
186 return swab64(in_le64(addr)); in in_be64()
189 static inline void out_be64(volatile u64 __iomem *addr, u64 val) in out_be64() argument
191 out_le64(addr, swab64(val)); in out_be64()
200 extern void _insb(const volatile u8 __iomem *addr, void *buf, long count);
201 extern void _outsb(volatile u8 __iomem *addr,const void *buf,long count);
202 extern void _insw_ns(const volatile u16 __iomem *addr, void *buf, long count);
203 extern void _outsw_ns(volatile u16 __iomem *addr, const void *buf, long count);
204 extern void _insl_ns(const volatile u32 __iomem *addr, void *buf, long count);
205 extern void _outsl_ns(volatile u32 __iomem *addr, const void *buf, long count);
220 extern void _memset_io(volatile void __iomem *addr, int c, unsigned long n);
280 #define PCI_FIX_ADDR(addr) \ argument
281 ((PCI_IO_ADDR)(((unsigned long)(addr)) & ~PCI_IO_IND_TOKEN_MASK))
282 #define PCI_GET_ADDR_TOKEN(addr) \ argument
283 (((unsigned long)(addr) & PCI_IO_IND_TOKEN_MASK) >> \
285 #define PCI_SET_ADDR_TOKEN(addr, token) \ argument
287 unsigned long __a = (unsigned long)(addr); \
290 (addr) = (void __iomem *)__a; \
293 #define PCI_FIX_ADDR(addr) (addr) argument
301 static inline unsigned char __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
303 return *(volatile unsigned char __force *)PCI_FIX_ADDR(addr); in __raw_readb()
305 static inline unsigned short __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
307 return *(volatile unsigned short __force *)PCI_FIX_ADDR(addr); in __raw_readw()
309 static inline unsigned int __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
311 return *(volatile unsigned int __force *)PCI_FIX_ADDR(addr); in __raw_readl()
313 static inline void __raw_writeb(unsigned char v, volatile void __iomem *addr) in __raw_writeb() argument
315 *(volatile unsigned char __force *)PCI_FIX_ADDR(addr) = v; in __raw_writeb()
317 static inline void __raw_writew(unsigned short v, volatile void __iomem *addr) in __raw_writew() argument
319 *(volatile unsigned short __force *)PCI_FIX_ADDR(addr) = v; in __raw_writew()
321 static inline void __raw_writel(unsigned int v, volatile void __iomem *addr) in __raw_writel() argument
323 *(volatile unsigned int __force *)PCI_FIX_ADDR(addr) = v; in __raw_writel()
327 static inline unsigned long __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
329 return *(volatile unsigned long __force *)PCI_FIX_ADDR(addr); in __raw_readq()
331 static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr) in __raw_writeq() argument
333 *(volatile unsigned long __force *)PCI_FIX_ADDR(addr) = v; in __raw_writeq()
336 static inline void __raw_writeq_be(unsigned long v, volatile void __iomem *addr) in __raw_writeq_be() argument
338 __raw_writeq((__force unsigned long)cpu_to_be64(v), addr); in __raw_writeq_be()
486 #define __do_writeb(val, addr) out_8(PCI_FIX_ADDR(addr), val) argument
487 #define __do_writew(val, addr) out_le16(PCI_FIX_ADDR(addr), val) argument
488 #define __do_writel(val, addr) out_le32(PCI_FIX_ADDR(addr), val) argument
489 #define __do_writeq(val, addr) out_le64(PCI_FIX_ADDR(addr), val) argument
490 #define __do_writew_be(val, addr) out_be16(PCI_FIX_ADDR(addr), val) argument
491 #define __do_writel_be(val, addr) out_be32(PCI_FIX_ADDR(addr), val) argument
492 #define __do_writeq_be(val, addr) out_be64(PCI_FIX_ADDR(addr), val) argument
495 #define __do_readb(addr) eeh_readb(PCI_FIX_ADDR(addr)) argument
496 #define __do_readw(addr) eeh_readw(PCI_FIX_ADDR(addr)) argument
497 #define __do_readl(addr) eeh_readl(PCI_FIX_ADDR(addr)) argument
498 #define __do_readq(addr) eeh_readq(PCI_FIX_ADDR(addr)) argument
499 #define __do_readw_be(addr) eeh_readw_be(PCI_FIX_ADDR(addr)) argument
500 #define __do_readl_be(addr) eeh_readl_be(PCI_FIX_ADDR(addr)) argument
501 #define __do_readq_be(addr) eeh_readq_be(PCI_FIX_ADDR(addr)) argument
503 #define __do_readb(addr) in_8(PCI_FIX_ADDR(addr))
504 #define __do_readw(addr) in_le16(PCI_FIX_ADDR(addr))
505 #define __do_readl(addr) in_le32(PCI_FIX_ADDR(addr))
506 #define __do_readq(addr) in_le64(PCI_FIX_ADDR(addr))
507 #define __do_readw_be(addr) in_be16(PCI_FIX_ADDR(addr))
508 #define __do_readl_be(addr) in_be32(PCI_FIX_ADDR(addr))
509 #define __do_readq_be(addr) in_be64(PCI_FIX_ADDR(addr))
548 #define __do_memset_io(addr, c, n) \ argument
549 _memset_io(PCI_FIX_ADDR(addr), c, n)
631 #define readb_relaxed(addr) readb(addr) argument
632 #define readw_relaxed(addr) readw(addr) argument
633 #define readl_relaxed(addr) readl(addr) argument
634 #define readq_relaxed(addr) readq(addr) argument
635 #define writeb_relaxed(v, addr) writeb(v, addr) argument
636 #define writew_relaxed(v, addr) writew(v, addr) argument
637 #define writel_relaxed(v, addr) writel(v, addr) argument
638 #define writeq_relaxed(v, addr) writeq(v, addr) argument
711 #define ioremap_uc(addr, size) ioremap((addr), (size)) argument
712 #define ioremap_cache(addr, size) \ argument
713 ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL))
715 extern void iounmap(volatile void __iomem *addr);
738 #define mmio_read16be(addr) readw_be(addr) argument
739 #define mmio_read32be(addr) readl_be(addr) argument
740 #define mmio_read64be(addr) readq_be(addr) argument
741 #define mmio_write16be(val, addr) writew_be(val, addr) argument
742 #define mmio_write32be(val, addr) writel_be(val, addr) argument
743 #define mmio_write64be(val, addr) writeq_be(val, addr) argument
744 #define mmio_insb(addr, dst, count) readsb(addr, dst, count) argument
745 #define mmio_insw(addr, dst, count) readsw(addr, dst, count) argument
746 #define mmio_insl(addr, dst, count) readsl(addr, dst, count) argument
747 #define mmio_outsb(addr, src, count) writesb(addr, src, count) argument
748 #define mmio_outsw(addr, src, count) writesw(addr, src, count) argument
749 #define mmio_outsl(addr, src, count) writesl(addr, src, count) argument
842 #define clrsetbits(type, addr, clear, set) \ argument
843 out_##type((addr), (in_##type(addr) & ~(clear)) | (set))
846 #define clrsetbits_be64(addr, clear, set) clrsetbits(be64, addr, clear, set) argument
847 #define clrsetbits_le64(addr, clear, set) clrsetbits(le64, addr, clear, set) argument
850 #define clrsetbits_be32(addr, clear, set) clrsetbits(be32, addr, clear, set) argument
851 #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) argument
853 #define clrsetbits_be16(addr, clear, set) clrsetbits(be16, addr, clear, set) argument
854 #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) argument
856 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) argument