Lines Matching refs:addr
31 static __inline__ u8 readb(unsigned long addr) in readb() argument
33 return *(volatile u8 *)addr; in readb()
36 static __inline__ u16 readw(unsigned long addr) in readw() argument
38 return flip_word(*(volatile u16 *)addr); in readw()
41 static __inline__ u32 readl(unsigned long addr) in readl() argument
43 return flip_dword(*(volatile u32 *)addr); in readl()
46 static __inline__ void writeb(u8 b, unsigned long addr) in writeb() argument
48 *(volatile u8 *)addr = b; in writeb()
51 static __inline__ void writew(u16 b, unsigned long addr) in writew() argument
53 *(volatile u16 *)addr = flip_word(b); in writew()
56 static __inline__ void writel(u32 b, unsigned long addr) in writel() argument
58 *(volatile u32 *)addr = flip_dword(b); in writel()
62 static __inline__ u8 __raw_readb(unsigned long addr) in __raw_readb() argument
64 return *(volatile u8 *)addr; in __raw_readb()
67 static __inline__ u16 __raw_readw(unsigned long addr) in __raw_readw() argument
69 return *(volatile u16 *)addr; in __raw_readw()
72 static __inline__ u32 __raw_readl(unsigned long addr) in __raw_readl() argument
74 return *(volatile u32 *)addr; in __raw_readl()
77 static __inline__ void __raw_writeb(u8 b, unsigned long addr) in __raw_writeb() argument
79 *(volatile u8 *)addr = b; in __raw_writeb()
82 static __inline__ void __raw_writew(u16 b, unsigned long addr) in __raw_writew() argument
84 *(volatile u16 *)addr = b; in __raw_writew()
87 static __inline__ void __raw_writel(u32 b, unsigned long addr) in __raw_writel() argument
89 *(volatile u32 *)addr = b; in __raw_writel()
109 #define inb_local(addr) readb(addr) argument
110 #define inb(addr) readb(addr) argument
111 #define inw(addr) readw(addr) argument
112 #define inl(addr) readl(addr) argument
113 #define inb_p(addr) readb(addr) argument
115 #define outb_local(b, addr) writeb(b, addr) argument
116 #define outb(b, addr) writeb(b, addr) argument
117 #define outw(b, addr) writew(b, addr) argument
118 #define outl(b, addr) writel(b, addr) argument
119 #define outb_p(b, addr) writeb(b, addr) argument
121 extern void outsb(unsigned long addr, const void *src, unsigned long cnt);
122 extern void outsw(unsigned long addr, const void *src, unsigned long cnt);
123 extern void outsl(unsigned long addr, const void *src, unsigned long cnt);
124 extern void insb(unsigned long addr, void *dst, unsigned long count);
125 extern void insw(unsigned long addr, void *dst, unsigned long count);
126 extern void insl(unsigned long addr, void *dst, unsigned long count);
136 static __inline__ u8 _sbus_readb(unsigned long addr) in _sbus_readb() argument
138 return *(volatile u8 *)addr; in _sbus_readb()
141 static __inline__ u16 _sbus_readw(unsigned long addr) in _sbus_readw() argument
143 return *(volatile u16 *)addr; in _sbus_readw()
146 static __inline__ u32 _sbus_readl(unsigned long addr) in _sbus_readl() argument
148 return *(volatile u32 *)addr; in _sbus_readl()
151 static __inline__ void _sbus_writeb(u8 b, unsigned long addr) in _sbus_writeb() argument
153 *(volatile u8 *)addr = b; in _sbus_writeb()
156 static __inline__ void _sbus_writew(u16 b, unsigned long addr) in _sbus_writew() argument
158 *(volatile u16 *)addr = b; in _sbus_writew()
161 static __inline__ void _sbus_writel(u32 b, unsigned long addr) in _sbus_writel() argument
163 *(volatile u32 *)addr = b; in _sbus_writel()
196 extern void iounmap(void *addr);