Lines Matching refs:addr

16 #define __raw_readb(addr) \  argument
17 ({ u8 __v = (*(__force volatile u8 *) (addr)); __v; })
18 #define __raw_readw(addr) \ argument
19 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; })
20 #define __raw_readl(addr) \ argument
21 ({ u32 __v = (*(__force volatile u32 *) (addr)); __v; })
23 #define __raw_writeb(b, addr) (void)((*(__force volatile u8 *) (addr)) = (b)) argument
24 #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b)) argument
25 #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b)) argument
48 static int __cf_internalio(unsigned long addr) in __cf_internalio() argument
50 return (addr >= IOMEMBASE) && (addr <= IOMEMBASE + IOMEMSIZE - 1); in __cf_internalio()
53 static int cf_internalio(const volatile void __iomem *addr) in cf_internalio() argument
55 return __cf_internalio((unsigned long) addr); in cf_internalio()
66 static inline u16 readw(const volatile void __iomem *addr) in readw() argument
68 if (cf_internalio(addr)) in readw()
69 return __raw_readw(addr); in readw()
70 return swab16(__raw_readw(addr)); in readw()
74 static inline u32 readl(const volatile void __iomem *addr) in readl() argument
76 if (cf_internalio(addr)) in readl()
77 return __raw_readl(addr); in readl()
78 return swab32(__raw_readl(addr)); in readl()
82 static inline void writew(u16 value, volatile void __iomem *addr) in writew() argument
84 if (cf_internalio(addr)) in writew()
85 __raw_writew(value, addr); in writew()
87 __raw_writew(swab16(value), addr); in writew()
91 static inline void writel(u32 value, volatile void __iomem *addr) in writel() argument
93 if (cf_internalio(addr)) in writel()
94 __raw_writel(value, addr); in writel()
96 __raw_writel(swab32(value), addr); in writel()