Lines Matching full:addr
18 #define __raw_readb(addr) (*(volatile u8 *)(addr)) argument
19 #define __raw_readw(addr) (*(volatile u16 *)(addr)) argument
20 #define __raw_readl(addr) (*(volatile u32 *)(addr)) argument
22 #define __raw_writeb(b,addr) ((*(volatile u8 *) (addr)) = (b)) argument
23 #define __raw_writew(w,addr) ((*(volatile u16 *) (addr)) = (w)) argument
24 #define __raw_writel(l,addr) ((*(volatile u32 *) (addr)) = (l)) argument
26 #define readb(addr) in_8((volatile u8 *)(addr)) argument
27 #define writeb(b,addr) out_8((volatile u8 *)(addr), (b)) argument
29 #define readw(addr) (*(volatile u16 *) (addr)) argument
30 #define readl(addr) (*(volatile u32 *) (addr)) argument
31 #define writew(b,addr) ((*(volatile u16 *) (addr)) = (b)) argument
32 #define writel(b,addr) ((*(volatile u32 *) (addr)) = (b)) argument
34 #define readw(addr) in_be16((volatile u16 *)(addr)) argument
35 #define readl(addr) in_be32((volatile u32 *)(addr)) argument
36 #define writew(b,addr) out_be16((volatile u16 *)(addr),(b)) argument
37 #define writel(b,addr) out_be32((volatile u32 *)(addr),(b)) argument
161 static inline int in_8(volatile u8 * addr) in in_8() argument
163 return (int)*addr; in in_8()
166 static inline void out_8(volatile u8 * addr, int val) in out_8() argument
168 *addr = (u8) val; in out_8()
171 static inline int in_le16(volatile u16 * addr) in in_le16() argument
173 return __sw16(*addr); in in_le16()
176 static inline int in_be16(volatile u16 * addr) in in_be16() argument
178 return (*addr & 0xFFFF); in in_be16()
181 static inline void out_le16(volatile u16 * addr, int val) in out_le16() argument
183 *addr = __sw16(val); in out_le16()
186 static inline void out_be16(volatile u16 * addr, int val) in out_be16() argument
188 *addr = (u16) val; in out_be16()
191 static inline unsigned in_le32(volatile u32 * addr) in in_le32() argument
193 return __sw32(*addr); in in_le32()
196 static inline unsigned in_be32(volatile u32 * addr) in in_be32() argument
198 return (*addr); in in_be32()
201 static inline void out_le32(volatile unsigned *addr, int val) in out_le32() argument
203 *addr = __sw32(val); in out_le32()
206 static inline void out_be32(volatile unsigned *addr, int val) in out_be32() argument
208 *addr = val; in out_be32()
218 #define clrbits(type, addr, clear) \ argument
219 out_##type((addr), in_##type(addr) & ~(clear))
221 #define setbits(type, addr, set) \ argument
222 out_##type((addr), in_##type(addr) | (set))
224 #define clrsetbits(type, addr, clear, set) \ argument
225 out_##type((addr), (in_##type(addr) & ~(clear)) | (set))
227 #define clrbits_be32(addr, clear) clrbits(be32, addr, clear) argument
228 #define setbits_be32(addr, set) setbits(be32, addr, set) argument
229 #define clrsetbits_be32(addr, clear, set) clrsetbits(be32, addr, clear, set) argument
231 #define clrbits_le32(addr, clear) clrbits(le32, addr, clear) argument
232 #define setbits_le32(addr, set) setbits(le32, addr, set) argument
233 #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) argument
235 #define clrbits_be16(addr, clear) clrbits(be16, addr, clear) argument
236 #define setbits_be16(addr, set) setbits(be16, addr, set) argument
237 #define clrsetbits_be16(addr, clear, set) clrsetbits(be16, addr, clear, set) argument
239 #define clrbits_le16(addr, clear) clrbits(le16, addr, clear) argument
240 #define setbits_le16(addr, set) setbits(le16, addr, set) argument
241 #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) argument
243 #define clrbits_8(addr, clear) clrbits(8, addr, clear) argument
244 #define setbits_8(addr, set) setbits(8, addr, set) argument
245 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) argument