Lines Matching refs:addr
46 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
48 return __builtin_read8((volatile void __iomem *)addr); in __raw_readb()
51 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
53 return __builtin_read16((volatile void __iomem *)addr); in __raw_readw()
56 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
58 return __builtin_read32((volatile void __iomem *)addr); in __raw_readl()
61 #define __raw_writeb(datum, addr) __builtin_write8(addr, datum) argument
62 #define __raw_writew(datum, addr) __builtin_write16(addr, datum) argument
63 #define __raw_writel(datum, addr) __builtin_write32(addr, datum) argument
65 static inline void io_outsb(unsigned int addr, const void *buf, int len) in io_outsb() argument
67 unsigned long __ioaddr = (unsigned long) addr; in io_outsb()
74 static inline void io_outsw(unsigned int addr, const void *buf, int len) in io_outsw() argument
76 unsigned long __ioaddr = (unsigned long) addr; in io_outsw()
83 extern void __outsl_ns(unsigned int addr, const void *buf, int len);
84 extern void __outsl_sw(unsigned int addr, const void *buf, int len);
85 static inline void __outsl(unsigned int addr, const void *buf, int len, int swap) in __outsl() argument
87 unsigned long __ioaddr = (unsigned long) addr; in __outsl()
95 static inline void io_insb(unsigned long addr, void *buf, int len) in io_insb() argument
100 *bp++ = __builtin_read8((volatile void __iomem *) addr); in io_insb()
103 static inline void io_insw(unsigned long addr, void *buf, int len) in io_insw() argument
108 *bp++ = __builtin_read16((volatile void __iomem *) addr); in io_insw()
111 extern void __insl_ns(unsigned long addr, void *buf, int len);
112 extern void __insl_sw(unsigned long addr, void *buf, int len);
113 static inline void __insl(unsigned long addr, void *buf, int len, int swap) in __insl() argument
116 __insl_ns(addr, buf, len); in __insl()
118 __insl_sw(addr, buf, len); in __insl()
128 static inline void memset_io(volatile void __iomem *addr, unsigned char val, int count) in memset_io() argument
130 memset((void __force *) addr, val, count); in memset_io()
143 static inline uint8_t inb(unsigned long addr) in inb() argument
145 return __builtin_read8((void __iomem *)addr); in inb()
148 static inline uint16_t inw(unsigned long addr) in inw() argument
150 uint16_t ret = __builtin_read16((void __iomem *)addr); in inw()
152 if (__is_PCI_IO(addr)) in inw()
158 static inline uint32_t inl(unsigned long addr) in inl() argument
160 uint32_t ret = __builtin_read32((void __iomem *)addr); in inl()
162 if (__is_PCI_IO(addr)) in inl()
168 static inline void outb(uint8_t datum, unsigned long addr) in outb() argument
170 __builtin_write8((void __iomem *)addr, datum); in outb()
173 static inline void outw(uint16_t datum, unsigned long addr) in outw() argument
175 if (__is_PCI_IO(addr)) in outw()
177 __builtin_write16((void __iomem *)addr, datum); in outw()
180 static inline void outl(uint32_t datum, unsigned long addr) in outl() argument
182 if (__is_PCI_IO(addr)) in outl()
184 __builtin_write32((void __iomem *)addr, datum); in outl()
187 #define inb_p(addr) inb(addr) argument
188 #define inw_p(addr) inw(addr) argument
189 #define inl_p(addr) inl(addr) argument
190 #define outb_p(x,addr) outb(x,addr) argument
191 #define outw_p(x,addr) outw(x,addr) argument
192 #define outl_p(x,addr) outl(x,addr) argument
204 static inline uint8_t readb(const volatile void __iomem *addr) in readb() argument
206 return __builtin_read8((__force void volatile __iomem *) addr); in readb()
209 static inline uint16_t readw(const volatile void __iomem *addr) in readw() argument
211 uint16_t ret = __builtin_read16((__force void volatile __iomem *)addr); in readw()
213 if (__is_PCI_MEM(addr)) in readw()
218 static inline uint32_t readl(const volatile void __iomem *addr) in readl() argument
220 uint32_t ret = __builtin_read32((__force void volatile __iomem *)addr); in readl()
222 if (__is_PCI_MEM(addr)) in readl()
232 static inline void writeb(uint8_t datum, volatile void __iomem *addr) in writeb() argument
234 __builtin_write8(addr, datum); in writeb()
235 if (__is_PCI_MEM(addr)) in writeb()
239 static inline void writew(uint16_t datum, volatile void __iomem *addr) in writew() argument
241 if (__is_PCI_MEM(addr)) in writew()
244 __builtin_write16(addr, datum); in writew()
245 if (__is_PCI_MEM(addr)) in writew()
249 static inline void writel(uint32_t datum, volatile void __iomem *addr) in writel() argument
251 if (__is_PCI_MEM(addr)) in writel()
254 __builtin_write32(addr, datum); in writel()
255 if (__is_PCI_MEM(addr)) in writel()
294 extern void iounmap(void volatile __iomem *addr);
359 #define ioread16be(addr) be16_to_cpu(ioread16(addr)) argument
360 #define ioread32be(addr) be32_to_cpu(ioread32(addr)) argument
361 #define iowrite16be(v, addr) iowrite16(cpu_to_be16(v), (addr)) argument
362 #define iowrite32be(v, addr) iowrite32(cpu_to_be32(v), (addr)) argument