Lines Matching refs:addr

13 static inline unsigned long isa_bus_to_virt(unsigned long addr) {  in isa_bus_to_virt()  argument
18 static inline unsigned long isa_virt_to_bus(void *addr) { in isa_virt_to_bus() argument
32 static inline unsigned char gsc_readb(unsigned long addr) in gsc_readb() argument
41 : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); in gsc_readb()
46 static inline unsigned short gsc_readw(unsigned long addr) in gsc_readw() argument
55 : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); in gsc_readw()
60 static inline unsigned int gsc_readl(unsigned long addr) in gsc_readl() argument
66 : "=r" (ret) : "r" (addr) ); in gsc_readl()
71 static inline unsigned long long gsc_readq(unsigned long addr) in gsc_readq() argument
78 : "=r" (ret) : "r" (addr) ); in gsc_readq()
81 ret = ((u64) gsc_readl(addr)) << 32; in gsc_readq()
82 ret |= gsc_readl(addr+4); in gsc_readq()
87 static inline void gsc_writeb(unsigned char val, unsigned long addr) in gsc_writeb() argument
94 : "=&r" (flags) : "r" (val), "r" (addr), "i" (PSW_SM_D) ); in gsc_writeb()
97 static inline void gsc_writew(unsigned short val, unsigned long addr) in gsc_writew() argument
104 : "=&r" (flags) : "r" (val), "r" (addr), "i" (PSW_SM_D) ); in gsc_writew()
107 static inline void gsc_writel(unsigned int val, unsigned long addr) in gsc_writel() argument
111 : : "r" (val), "r" (addr) ); in gsc_writel()
114 static inline void gsc_writeq(unsigned long long val, unsigned long addr) in gsc_writeq() argument
119 : : "r" (val), "r" (addr) ); in gsc_writeq()
122 gsc_writel(val >> 32, addr); in gsc_writeq()
123 gsc_writel(val, addr+4); in gsc_writeq()
134 extern void iounmap(const volatile void __iomem *addr);
136 static inline unsigned char __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
138 return (*(volatile unsigned char __force *) (addr)); in __raw_readb()
140 static inline unsigned short __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
142 return *(volatile unsigned short __force *) addr; in __raw_readw()
144 static inline unsigned int __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
146 return *(volatile unsigned int __force *) addr; in __raw_readl()
148 static inline unsigned long long __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
150 return *(volatile unsigned long long __force *) addr; in __raw_readq()
153 static inline void __raw_writeb(unsigned char b, volatile void __iomem *addr) in __raw_writeb() argument
155 *(volatile unsigned char __force *) addr = b; in __raw_writeb()
157 static inline void __raw_writew(unsigned short b, volatile void __iomem *addr) in __raw_writew() argument
159 *(volatile unsigned short __force *) addr = b; in __raw_writew()
161 static inline void __raw_writel(unsigned int b, volatile void __iomem *addr) in __raw_writel() argument
163 *(volatile unsigned int __force *) addr = b; in __raw_writel()
165 static inline void __raw_writeq(unsigned long long b, volatile void __iomem *addr) in __raw_writeq() argument
167 *(volatile unsigned long long __force *) addr = b; in __raw_writeq()
170 static inline unsigned char readb(const volatile void __iomem *addr) in readb() argument
172 return __raw_readb(addr); in readb()
174 static inline unsigned short readw(const volatile void __iomem *addr) in readw() argument
176 return le16_to_cpu((__le16 __force) __raw_readw(addr)); in readw()
178 static inline unsigned int readl(const volatile void __iomem *addr) in readl() argument
180 return le32_to_cpu((__le32 __force) __raw_readl(addr)); in readl()
182 static inline unsigned long long readq(const volatile void __iomem *addr) in readq() argument
184 return le64_to_cpu((__le64 __force) __raw_readq(addr)); in readq()
187 static inline void writeb(unsigned char b, volatile void __iomem *addr) in writeb() argument
189 __raw_writeb(b, addr); in writeb()
191 static inline void writew(unsigned short w, volatile void __iomem *addr) in writew() argument
193 __raw_writew((__u16 __force) cpu_to_le16(w), addr); in writew()
195 static inline void writel(unsigned int l, volatile void __iomem *addr) in writel() argument
197 __raw_writel((__u32 __force) cpu_to_le32(l), addr); in writel()
199 static inline void writeq(unsigned long long q, volatile void __iomem *addr) in writeq() argument
201 __raw_writeq((__u64 __force) cpu_to_le64(q), addr); in writeq()
213 #define readb_relaxed(addr) readb(addr) argument
214 #define readw_relaxed(addr) readw(addr) argument
215 #define readl_relaxed(addr) readl(addr) argument
216 #define readq_relaxed(addr) readq(addr) argument
217 #define writeb_relaxed(b, addr) writeb(b, addr) argument
218 #define writew_relaxed(w, addr) writew(w, addr) argument
219 #define writel_relaxed(l, addr) writel(l, addr) argument
220 #define writeq_relaxed(q, addr) writeq(q, addr) argument
222 void memset_io(volatile void __iomem *addr, unsigned char val, int count);
243 extern unsigned char inb(int addr);
244 extern unsigned short inw(int addr);
245 extern unsigned int inl(int addr);
247 extern void outb(unsigned char b, int addr);
248 extern void outw(unsigned short b, int addr);
249 extern void outl(unsigned int b, int addr);
258 static inline char inb(unsigned long addr) in inb() argument
264 static inline short inw(unsigned long addr) in inw() argument
270 static inline int inl(unsigned long addr) in inl() argument
306 extern u64 ioread64(const void __iomem *addr);
307 extern u64 ioread64be(const void __iomem *addr);
308 extern void iowrite64(u64 val, void __iomem *addr);
309 extern void iowrite64be(u64 val, void __iomem *addr);