Lines Matching refs:addr

94 __EXTERN_INLINE void jensen_set_hae(unsigned long addr)  in jensen_set_hae()  argument
97 addr >>= 25; in jensen_set_hae()
98 if (addr != alpha_mv.hae_cache) in jensen_set_hae()
99 set_hae(addr); in jensen_set_hae()
116 static inline unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument
118 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb()
121 static inline void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument
123 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb()
127 static inline unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument
132 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb()
133 return __kernel_extbl(result, addr & 3); in jensen_bus_inb()
136 static inline void jensen_bus_outb(u8 b, unsigned long addr) in jensen_bus_outb() argument
139 *(vuip)((addr << 7) + EISA_IO + 0x00) = b * 0x01010101; in jensen_bus_outb()
149 #define jensen_is_local(addr) ( \ argument
150 /* keyboard */ (addr == 0x60 || addr == 0x64) || \
151 /* RTC */ (addr == 0x170 || addr == 0x171) || \
152 /* mb COM2 */ (addr >= 0x2f8 && addr <= 0x2ff) || \
153 /* mb LPT1 */ (addr >= 0x3bc && addr <= 0x3be) || \
154 /* mb COM2 */ (addr >= 0x3f8 && addr <= 0x3ff))
156 __EXTERN_INLINE u8 jensen_inb(unsigned long addr) in jensen_inb() argument
158 if (jensen_is_local(addr)) in jensen_inb()
159 return jensen_local_inb(addr); in jensen_inb()
161 return jensen_bus_inb(addr); in jensen_inb()
164 __EXTERN_INLINE void jensen_outb(u8 b, unsigned long addr) in jensen_outb() argument
166 if (jensen_is_local(addr)) in jensen_outb()
167 jensen_local_outb(b, addr); in jensen_outb()
169 jensen_bus_outb(b, addr); in jensen_outb()
172 __EXTERN_INLINE u16 jensen_inw(unsigned long addr) in jensen_inw() argument
177 result = *(volatile int *) ((addr << 7) + EISA_IO + 0x20); in jensen_inw()
178 result >>= (addr & 3) * 8; in jensen_inw()
182 __EXTERN_INLINE u32 jensen_inl(unsigned long addr) in jensen_inl() argument
185 return *(vuip) ((addr << 7) + EISA_IO + 0x60); in jensen_inl()
188 __EXTERN_INLINE void jensen_outw(u16 b, unsigned long addr) in jensen_outw() argument
191 *(vuip) ((addr << 7) + EISA_IO + 0x20) = b * 0x00010001; in jensen_outw()
195 __EXTERN_INLINE void jensen_outl(u32 b, unsigned long addr) in jensen_outl() argument
198 *(vuip) ((addr << 7) + EISA_IO + 0x60) = b; in jensen_outl()
206 __EXTERN_INLINE u8 jensen_readb(unsigned long addr) in jensen_readb() argument
210 jensen_set_hae(addr); in jensen_readb()
211 addr &= JENSEN_HAE_MASK; in jensen_readb()
212 result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x00); in jensen_readb()
213 result >>= (addr & 3) * 8; in jensen_readb()
217 __EXTERN_INLINE u16 jensen_readw(unsigned long addr) in jensen_readw() argument
221 jensen_set_hae(addr); in jensen_readw()
222 addr &= JENSEN_HAE_MASK; in jensen_readw()
223 result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x20); in jensen_readw()
224 result >>= (addr & 3) * 8; in jensen_readw()
228 __EXTERN_INLINE u32 jensen_readl(unsigned long addr) in jensen_readl() argument
230 jensen_set_hae(addr); in jensen_readl()
231 addr &= JENSEN_HAE_MASK; in jensen_readl()
232 return *(vuip) ((addr << 7) + EISA_MEM + 0x60); in jensen_readl()
235 __EXTERN_INLINE u64 jensen_readq(unsigned long addr) in jensen_readq() argument
239 jensen_set_hae(addr); in jensen_readq()
240 addr &= JENSEN_HAE_MASK; in jensen_readq()
241 addr = (addr << 7) + EISA_MEM + 0x60; in jensen_readq()
242 r0 = *(vuip) (addr); in jensen_readq()
243 r1 = *(vuip) (addr + (4 << 7)); in jensen_readq()
247 __EXTERN_INLINE void jensen_writeb(u8 b, unsigned long addr) in jensen_writeb() argument
249 jensen_set_hae(addr); in jensen_writeb()
250 addr &= JENSEN_HAE_MASK; in jensen_writeb()
251 *(vuip) ((addr << 7) + EISA_MEM + 0x00) = b * 0x01010101; in jensen_writeb()
254 __EXTERN_INLINE void jensen_writew(u16 b, unsigned long addr) in jensen_writew() argument
256 jensen_set_hae(addr); in jensen_writew()
257 addr &= JENSEN_HAE_MASK; in jensen_writew()
258 *(vuip) ((addr << 7) + EISA_MEM + 0x20) = b * 0x00010001; in jensen_writew()
261 __EXTERN_INLINE void jensen_writel(u32 b, unsigned long addr) in jensen_writel() argument
263 jensen_set_hae(addr); in jensen_writel()
264 addr &= JENSEN_HAE_MASK; in jensen_writel()
265 *(vuip) ((addr << 7) + EISA_MEM + 0x60) = b; in jensen_writel()
268 __EXTERN_INLINE void jensen_writeq(u64 b, unsigned long addr) in jensen_writeq() argument
270 jensen_set_hae(addr); in jensen_writeq()
271 addr &= JENSEN_HAE_MASK; in jensen_writeq()
272 addr = (addr << 7) + EISA_MEM + 0x60; in jensen_writeq()
273 *(vuip) (addr) = b; in jensen_writeq()
274 *(vuip) (addr + (4 << 7)) = b >> 32; in jensen_writeq()
277 __EXTERN_INLINE unsigned long jensen_ioremap(unsigned long addr, in jensen_ioremap() argument
280 return addr; in jensen_ioremap()
283 __EXTERN_INLINE void jensen_iounmap(unsigned long addr) in jensen_iounmap() argument
288 __EXTERN_INLINE int jensen_is_ioaddr(unsigned long addr) in jensen_is_ioaddr() argument
290 return (long)addr >= 0; in jensen_is_ioaddr()