Lines Matching refs:addr
92 __EXTERN_INLINE void jensen_set_hae(unsigned long addr) in jensen_set_hae() argument
95 addr >>= 25; in jensen_set_hae()
96 if (addr != alpha_mv.hae_cache) in jensen_set_hae()
97 set_hae(addr); in jensen_set_hae()
115 __EXTERN_INLINE unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument
117 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb()
120 __EXTERN_INLINE void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument
122 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb()
126 __EXTERN_INLINE unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument
131 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb()
132 return __kernel_extbl(result, addr & 3); in jensen_bus_inb()
135 __EXTERN_INLINE void jensen_bus_outb(u8 b, unsigned long addr) in jensen_bus_outb() argument
138 *(vuip)((addr << 7) + EISA_IO + 0x00) = b * 0x01010101; in jensen_bus_outb()
148 #define jensen_is_local(addr) ( \ argument
149 /* keyboard */ (addr == 0x60 || addr == 0x64) || \
150 /* RTC */ (addr == 0x170 || addr == 0x171) || \
151 /* mb COM2 */ (addr >= 0x2f8 && addr <= 0x2ff) || \
152 /* mb LPT1 */ (addr >= 0x3bc && addr <= 0x3be) || \
153 /* mb COM2 */ (addr >= 0x3f8 && addr <= 0x3ff))
155 __EXTERN_INLINE u8 jensen_inb(unsigned long addr) in jensen_inb() argument
157 if (jensen_is_local(addr)) in jensen_inb()
158 return jensen_local_inb(addr); in jensen_inb()
160 return jensen_bus_inb(addr); in jensen_inb()
163 __EXTERN_INLINE void jensen_outb(u8 b, unsigned long addr) in jensen_outb() argument
165 if (jensen_is_local(addr)) in jensen_outb()
166 jensen_local_outb(b, addr); in jensen_outb()
168 jensen_bus_outb(b, addr); in jensen_outb()
171 __EXTERN_INLINE u16 jensen_inw(unsigned long addr) in jensen_inw() argument
176 result = *(volatile int *) ((addr << 7) + EISA_IO + 0x20); in jensen_inw()
177 result >>= (addr & 3) * 8; in jensen_inw()
181 __EXTERN_INLINE u32 jensen_inl(unsigned long addr) in jensen_inl() argument
184 return *(vuip) ((addr << 7) + EISA_IO + 0x60); in jensen_inl()
187 __EXTERN_INLINE u64 jensen_inq(unsigned long addr) in jensen_inq() argument
190 return *(vulp) ((addr << 7) + EISA_IO + 0x60); in jensen_inq()
193 __EXTERN_INLINE void jensen_outw(u16 b, unsigned long addr) in jensen_outw() argument
196 *(vuip) ((addr << 7) + EISA_IO + 0x20) = b * 0x00010001; in jensen_outw()
200 __EXTERN_INLINE void jensen_outl(u32 b, unsigned long addr) in jensen_outl() argument
203 *(vuip) ((addr << 7) + EISA_IO + 0x60) = b; in jensen_outl()
207 __EXTERN_INLINE void jensen_outq(u64 b, unsigned long addr) in jensen_outq() argument
210 *(vulp) ((addr << 7) + EISA_IO + 0x60) = b; in jensen_outq()
220 unsigned long addr = (unsigned long) xaddr; in jensen_readb() local
223 jensen_set_hae(addr); in jensen_readb()
224 addr &= JENSEN_HAE_MASK; in jensen_readb()
225 result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x00); in jensen_readb()
226 result >>= (addr & 3) * 8; in jensen_readb()
232 unsigned long addr = (unsigned long) xaddr; in jensen_readw() local
235 jensen_set_hae(addr); in jensen_readw()
236 addr &= JENSEN_HAE_MASK; in jensen_readw()
237 result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x20); in jensen_readw()
238 result >>= (addr & 3) * 8; in jensen_readw()
244 unsigned long addr = (unsigned long) xaddr; in jensen_readl() local
245 jensen_set_hae(addr); in jensen_readl()
246 addr &= JENSEN_HAE_MASK; in jensen_readl()
247 return *(vuip) ((addr << 7) + EISA_MEM + 0x60); in jensen_readl()
252 unsigned long addr = (unsigned long) xaddr; in jensen_readq() local
255 jensen_set_hae(addr); in jensen_readq()
256 addr &= JENSEN_HAE_MASK; in jensen_readq()
257 addr = (addr << 7) + EISA_MEM + 0x60; in jensen_readq()
258 r0 = *(vuip) (addr); in jensen_readq()
259 r1 = *(vuip) (addr + (4 << 7)); in jensen_readq()
265 unsigned long addr = (unsigned long) xaddr; in jensen_writeb() local
266 jensen_set_hae(addr); in jensen_writeb()
267 addr &= JENSEN_HAE_MASK; in jensen_writeb()
268 *(vuip) ((addr << 7) + EISA_MEM + 0x00) = b * 0x01010101; in jensen_writeb()
273 unsigned long addr = (unsigned long) xaddr; in jensen_writew() local
274 jensen_set_hae(addr); in jensen_writew()
275 addr &= JENSEN_HAE_MASK; in jensen_writew()
276 *(vuip) ((addr << 7) + EISA_MEM + 0x20) = b * 0x00010001; in jensen_writew()
281 unsigned long addr = (unsigned long) xaddr; in jensen_writel() local
282 jensen_set_hae(addr); in jensen_writel()
283 addr &= JENSEN_HAE_MASK; in jensen_writel()
284 *(vuip) ((addr << 7) + EISA_MEM + 0x60) = b; in jensen_writel()
289 unsigned long addr = (unsigned long) xaddr; in jensen_writeq() local
290 jensen_set_hae(addr); in jensen_writeq()
291 addr &= JENSEN_HAE_MASK; in jensen_writeq()
292 addr = (addr << 7) + EISA_MEM + 0x60; in jensen_writeq()
293 *(vuip) (addr) = b; in jensen_writeq()
294 *(vuip) (addr + (4 << 7)) = b >> 32; in jensen_writeq()
297 __EXTERN_INLINE void __iomem *jensen_ioportmap(unsigned long addr) in jensen_ioportmap() argument
299 return (void __iomem *)addr; in jensen_ioportmap()
302 __EXTERN_INLINE void __iomem *jensen_ioremap(unsigned long addr, in jensen_ioremap() argument
305 return (void __iomem *)(addr + 0x100000000ul); in jensen_ioremap()
308 __EXTERN_INLINE int jensen_is_ioaddr(unsigned long addr) in jensen_is_ioaddr() argument
310 return (long)addr >= 0; in jensen_is_ioaddr()
313 __EXTERN_INLINE int jensen_is_mmio(const volatile void __iomem *addr) in jensen_is_mmio() argument
315 return (unsigned long)addr >= 0x100000000ul; in jensen_is_mmio()