Lines Matching refs:addr
40 extern void iounmap(void *addr);
47 extern __inline__ unsigned char __raw_readb(unsigned long addr) in __raw_readb() argument
56 : "=&r" (flags), "=r" (ret) : "r" (addr) ); in __raw_readb()
61 extern __inline__ unsigned short __raw_readw(unsigned long addr) in __raw_readw() argument
70 : "=&r" (flags), "=r" (ret) : "r" (addr) ); in __raw_readw()
75 extern __inline__ unsigned int __raw_readl(unsigned long addr) in __raw_readl() argument
81 : "=r" (ret) : "r" (addr) ); in __raw_readl()
86 extern __inline__ unsigned long long __raw_readq(unsigned long addr) in __raw_readq() argument
92 : "=r" (ret) : "r" (addr) ); in __raw_readq()
95 ret = ((u64) __raw_readl(addr)) << 32; in __raw_readq()
96 ret |= __raw_readl(addr+4); in __raw_readq()
101 extern __inline__ void __raw_writeb(unsigned char val, unsigned long addr) in __raw_writeb() argument
108 : "=&r" (flags) : "r" (val), "r" (addr) ); in __raw_writeb()
111 extern __inline__ void __raw_writew(unsigned short val, unsigned long addr) in __raw_writew() argument
118 : "=&r" (flags) : "r" (val), "r" (addr) ); in __raw_writew()
121 extern __inline__ void __raw_writel(unsigned int val, unsigned long addr) in __raw_writel() argument
125 : : "r" (val), "r" (addr) ); in __raw_writel()
128 extern __inline__ void __raw_writeq(unsigned long long val, unsigned long addr) in __raw_writeq() argument
133 : : "r" (val), "r" (addr) ); in __raw_writeq()
136 __raw_writel(val >> 32, addr); in __raw_writeq()
137 __raw_writel(val, addr+4); in __raw_writeq()
142 #define readb(addr) (*(volatile unsigned char *) (addr)) argument
143 #define readw(addr) (*(volatile unsigned short *) (addr)) argument
144 #define readl(addr) (*(volatile unsigned int *) (addr)) argument
145 #define readq(addr) (*(volatile u64 *) (addr)) argument
146 #define writeb(b,addr) (*(volatile unsigned char *) (addr) = (b)) argument
147 #define writew(b,addr) (*(volatile unsigned short *) (addr) = (b)) argument
148 #define writel(b,addr) (*(volatile unsigned int *) (addr) = (b)) argument
149 #define writeq(b,addr) (*(volatile u64 *) (addr) = (b)) argument
151 #define readb(addr) __raw_readb((unsigned long)(addr)) argument
152 #define readw(addr) le16_to_cpu(__raw_readw((unsigned long)(addr))) argument
153 #define readl(addr) le32_to_cpu(__raw_readl((unsigned long)(addr))) argument
154 #define readq(addr) le64_to_cpu(__raw_readq((unsigned long)(addr))) argument
155 #define writeb(b,addr) __raw_writeb(b,(unsigned long)(addr)) argument
156 #define writew(b,addr) __raw_writew(cpu_to_le16(b),(unsigned long)(addr)) argument
157 #define writel(b,addr) __raw_writel(cpu_to_le32(b),(unsigned long)(addr)) argument
158 #define writeq(b,addr) __raw_writeq(cpu_to_le64(b),(unsigned long)(addr)) argument
208 extern unsigned char inb(int addr);
209 extern unsigned short inw(int addr);
210 extern unsigned int inl(int addr);
212 extern void outb(unsigned char b, int addr);
213 extern void outw(unsigned short b, int addr);
214 extern void outl(unsigned int b, int addr);
223 static inline char inb(unsigned long addr) in inb() argument
229 static inline short inw(unsigned long addr) in inw() argument
235 static inline int inl(unsigned long addr) in inl() argument