Lines Matching refs:addr
98 static inline u##size name(const volatile u##size __iomem *addr) \
102 : "=r" (ret) : "r" (addr) : "memory"); \
107 static inline void name(volatile u##size __iomem *addr, u##size val) \
110 : : "r" (addr), "r" (val) : "memory"); \
115 static inline u##size name(const volatile u##size __iomem *addr) \
119 : "=r" (ret) : "b" (addr) : "memory"); \
124 static inline void name(volatile u##size __iomem *addr, u##size val) \
127 : : "b" (addr), "r" (val) : "memory"); \
132 static inline u##size name(const volatile u##size __iomem *addr) \
136 : "=r" (ret) : "Z" (*addr) : "memory"); \
141 static inline void name(volatile u##size __iomem *addr, u##size val) \
144 : "=Z" (*addr) : "r" (val) : "memory"); \
149 static inline u##size name(const volatile u##size __iomem *addr) \
153 : "=r" (ret) : "m<>" (*addr) : "memory"); \
158 static inline void name(volatile u##size __iomem *addr, u##size val) \
161 : "=m<>" (*addr) : "r" (val) : "memory"); \
199 static inline u64 in_le64(const volatile u64 __iomem *addr) in in_le64() argument
201 return swab64(in_be64(addr)); in in_le64()
204 static inline void out_le64(volatile u64 __iomem *addr, u64 val) in out_le64() argument
206 out_be64(addr, swab64(val)); in out_le64()
213 static inline u64 in_be64(const volatile u64 __iomem *addr) in in_be64() argument
215 return swab64(in_le64(addr)); in in_be64()
218 static inline void out_be64(volatile u64 __iomem *addr, u64 val) in out_be64() argument
220 out_le64(addr, swab64(val)); in out_be64()
229 extern void _insb(const volatile u8 __iomem *addr, void *buf, long count);
230 extern void _outsb(volatile u8 __iomem *addr,const void *buf,long count);
231 extern void _insw_ns(const volatile u16 __iomem *addr, void *buf, long count);
232 extern void _outsw_ns(volatile u16 __iomem *addr, const void *buf, long count);
233 extern void _insl_ns(const volatile u32 __iomem *addr, void *buf, long count);
234 extern void _outsl_ns(volatile u32 __iomem *addr, const void *buf, long count);
249 extern void _memset_io(volatile void __iomem *addr, int c, unsigned long n);
309 #define PCI_FIX_ADDR(addr) \ argument
310 ((PCI_IO_ADDR)(((unsigned long)(addr)) & ~PCI_IO_IND_TOKEN_MASK))
311 #define PCI_GET_ADDR_TOKEN(addr) \ argument
312 (((unsigned long)(addr) & PCI_IO_IND_TOKEN_MASK) >> \
314 #define PCI_SET_ADDR_TOKEN(addr, token) \ argument
316 unsigned long __a = (unsigned long)(addr); \
319 (addr) = (void __iomem *)__a; \
322 #define PCI_FIX_ADDR(addr) (addr) argument
330 static inline unsigned char __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
332 return *(volatile unsigned char __force *)PCI_FIX_ADDR(addr); in __raw_readb()
336 static inline unsigned short __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
338 return *(volatile unsigned short __force *)PCI_FIX_ADDR(addr); in __raw_readw()
342 static inline unsigned int __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
344 return *(volatile unsigned int __force *)PCI_FIX_ADDR(addr); in __raw_readl()
348 static inline void __raw_writeb(unsigned char v, volatile void __iomem *addr) in __raw_writeb() argument
350 *(volatile unsigned char __force *)PCI_FIX_ADDR(addr) = v; in __raw_writeb()
354 static inline void __raw_writew(unsigned short v, volatile void __iomem *addr) in __raw_writew() argument
356 *(volatile unsigned short __force *)PCI_FIX_ADDR(addr) = v; in __raw_writew()
360 static inline void __raw_writel(unsigned int v, volatile void __iomem *addr) in __raw_writel() argument
362 *(volatile unsigned int __force *)PCI_FIX_ADDR(addr) = v; in __raw_writel()
367 static inline unsigned long __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
369 return *(volatile unsigned long __force *)PCI_FIX_ADDR(addr); in __raw_readq()
373 static inline void __raw_writeq(unsigned long v, volatile void __iomem *addr) in __raw_writeq() argument
375 *(volatile unsigned long __force *)PCI_FIX_ADDR(addr) = v; in __raw_writeq()
379 static inline void __raw_writeq_be(unsigned long v, volatile void __iomem *addr) in __raw_writeq_be() argument
381 __raw_writeq((__force unsigned long)cpu_to_be64(v), addr); in __raw_writeq_be()
554 #define __do_writeb(val, addr) out_8(PCI_FIX_ADDR(addr), val) argument
555 #define __do_writew(val, addr) out_le16(PCI_FIX_ADDR(addr), val) argument
556 #define __do_writel(val, addr) out_le32(PCI_FIX_ADDR(addr), val) argument
557 #define __do_writeq(val, addr) out_le64(PCI_FIX_ADDR(addr), val) argument
558 #define __do_writew_be(val, addr) out_be16(PCI_FIX_ADDR(addr), val) argument
559 #define __do_writel_be(val, addr) out_be32(PCI_FIX_ADDR(addr), val) argument
560 #define __do_writeq_be(val, addr) out_be64(PCI_FIX_ADDR(addr), val) argument
563 #define __do_readb(addr) eeh_readb(PCI_FIX_ADDR(addr)) argument
564 #define __do_readw(addr) eeh_readw(PCI_FIX_ADDR(addr)) argument
565 #define __do_readl(addr) eeh_readl(PCI_FIX_ADDR(addr)) argument
566 #define __do_readq(addr) eeh_readq(PCI_FIX_ADDR(addr)) argument
567 #define __do_readw_be(addr) eeh_readw_be(PCI_FIX_ADDR(addr)) argument
568 #define __do_readl_be(addr) eeh_readl_be(PCI_FIX_ADDR(addr)) argument
569 #define __do_readq_be(addr) eeh_readq_be(PCI_FIX_ADDR(addr)) argument
571 #define __do_readb(addr) in_8(PCI_FIX_ADDR(addr))
572 #define __do_readw(addr) in_le16(PCI_FIX_ADDR(addr))
573 #define __do_readl(addr) in_le32(PCI_FIX_ADDR(addr))
574 #define __do_readq(addr) in_le64(PCI_FIX_ADDR(addr))
575 #define __do_readw_be(addr) in_be16(PCI_FIX_ADDR(addr))
576 #define __do_readl_be(addr) in_be32(PCI_FIX_ADDR(addr))
577 #define __do_readq_be(addr) in_be64(PCI_FIX_ADDR(addr))
616 #define __do_memset_io(addr, c, n) \ argument
617 _memset_io(PCI_FIX_ADDR(addr), c, n)
721 #define readb_relaxed(addr) readb(addr) argument
722 #define readw_relaxed(addr) readw(addr) argument
723 #define readl_relaxed(addr) readl(addr) argument
724 #define readq_relaxed(addr) readq(addr) argument
725 #define writeb_relaxed(v, addr) writeb(v, addr) argument
726 #define writew_relaxed(v, addr) writew(v, addr) argument
727 #define writel_relaxed(v, addr) writel(v, addr) argument
728 #define writeq_relaxed(v, addr) writeq(v, addr) argument
734 static inline unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument
736 return readw_be(addr); in ioread16be()
740 static inline unsigned int ioread32be(const void __iomem *addr) in ioread32be() argument
742 return readl_be(addr); in ioread32be()
747 static inline u64 ioread64_lo_hi(const void __iomem *addr) in ioread64_lo_hi() argument
749 return readq(addr); in ioread64_lo_hi()
753 static inline u64 ioread64_hi_lo(const void __iomem *addr) in ioread64_hi_lo() argument
755 return readq(addr); in ioread64_hi_lo()
759 static inline u64 ioread64be(const void __iomem *addr) in ioread64be() argument
761 return readq_be(addr); in ioread64be()
765 static inline u64 ioread64be_lo_hi(const void __iomem *addr) in ioread64be_lo_hi() argument
767 return readq_be(addr); in ioread64be_lo_hi()
771 static inline u64 ioread64be_hi_lo(const void __iomem *addr) in ioread64be_hi_lo() argument
773 return readq_be(addr); in ioread64be_hi_lo()
778 static inline void iowrite16be(u16 val, void __iomem *addr) in iowrite16be() argument
780 writew_be(val, addr); in iowrite16be()
784 static inline void iowrite32be(u32 val, void __iomem *addr) in iowrite32be() argument
786 writel_be(val, addr); in iowrite32be()
791 static inline void iowrite64_lo_hi(u64 val, void __iomem *addr) in iowrite64_lo_hi() argument
793 writeq(val, addr); in iowrite64_lo_hi()
797 static inline void iowrite64_hi_lo(u64 val, void __iomem *addr) in iowrite64_hi_lo() argument
799 writeq(val, addr); in iowrite64_hi_lo()
803 static inline void iowrite64be(u64 val, void __iomem *addr) in iowrite64be() argument
805 writeq_be(val, addr); in iowrite64be()
809 static inline void iowrite64be_lo_hi(u64 val, void __iomem *addr) in iowrite64be_lo_hi() argument
811 writeq_be(val, addr); in iowrite64be_lo_hi()
815 static inline void iowrite64be_hi_lo(u64 val, void __iomem *addr) in iowrite64be_hi_lo() argument
817 writeq_be(val, addr); in iowrite64be_hi_lo()
823 void pci_iounmap(struct pci_dev *dev, void __iomem *addr);
903 #define ioremap_uc(addr, size) ioremap((addr), (size)) argument
904 #define ioremap_cache(addr, size) \ argument
905 ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL))
928 #define mmio_read16be(addr) readw_be(addr) argument
929 #define mmio_read32be(addr) readl_be(addr) argument
930 #define mmio_read64be(addr) readq_be(addr) argument
931 #define mmio_write16be(val, addr) writew_be(val, addr) argument
932 #define mmio_write32be(val, addr) writel_be(val, addr) argument
933 #define mmio_write64be(val, addr) writeq_be(val, addr) argument
934 #define mmio_insb(addr, dst, count) readsb(addr, dst, count) argument
935 #define mmio_insw(addr, dst, count) readsw(addr, dst, count) argument
936 #define mmio_insl(addr, dst, count) readsl(addr, dst, count) argument
937 #define mmio_outsb(addr, src, count) writesb(addr, src, count) argument
938 #define mmio_outsw(addr, src, count) writesw(addr, src, count) argument
939 #define mmio_outsl(addr, src, count) writesl(addr, src, count) argument
1034 #define clrsetbits(type, addr, clear, set) \ argument
1035 out_##type((addr), (in_##type(addr) & ~(clear)) | (set))
1038 #define clrsetbits_be64(addr, clear, set) clrsetbits(be64, addr, clear, set) argument
1039 #define clrsetbits_le64(addr, clear, set) clrsetbits(le64, addr, clear, set) argument
1042 #define clrsetbits_be32(addr, clear, set) clrsetbits(be32, addr, clear, set) argument
1043 #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) argument
1045 #define clrsetbits_be16(addr, clear, set) clrsetbits(be16, addr, clear, set) argument
1046 #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) argument
1048 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) argument