Lines Matching full: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()
114 static inline unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument
116 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb()
119 static inline void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument
121 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb()
125 static inline unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument
130 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb()
131 return __kernel_extbl(result, addr & 3); in jensen_bus_inb()
134 static inline void jensen_bus_outb(u8 b, unsigned long addr) in jensen_bus_outb() argument
137 *(vuip)((addr << 7) + EISA_IO + 0x00) = b * 0x01010101; in jensen_bus_outb()
147 #define jensen_is_local(addr) ( \ argument
148 /* keyboard */ (addr == 0x60 || addr == 0x64) || \
149 /* RTC */ (addr == 0x170 || addr == 0x171) || \
150 /* mb COM2 */ (addr >= 0x2f8 && addr <= 0x2ff) || \
151 /* mb LPT1 */ (addr >= 0x3bc && addr <= 0x3be) || \
152 /* mb COM2 */ (addr >= 0x3f8 && addr <= 0x3ff))
154 __EXTERN_INLINE u8 jensen_inb(unsigned long addr) in jensen_inb() argument
156 if (jensen_is_local(addr)) in jensen_inb()
157 return jensen_local_inb(addr); in jensen_inb()
159 return jensen_bus_inb(addr); in jensen_inb()
162 __EXTERN_INLINE void jensen_outb(u8 b, unsigned long addr) in jensen_outb() argument
164 if (jensen_is_local(addr)) in jensen_outb()
165 jensen_local_outb(b, addr); in jensen_outb()
167 jensen_bus_outb(b, addr); in jensen_outb()
170 __EXTERN_INLINE u16 jensen_inw(unsigned long addr) in jensen_inw() argument
175 result = *(volatile int *) ((addr << 7) + EISA_IO + 0x20); in jensen_inw()
176 result >>= (addr & 3) * 8; in jensen_inw()
180 __EXTERN_INLINE u32 jensen_inl(unsigned long addr) in jensen_inl() argument
183 return *(vuip) ((addr << 7) + EISA_IO + 0x60); in jensen_inl()
186 __EXTERN_INLINE void jensen_outw(u16 b, unsigned long addr) in jensen_outw() argument
189 *(vuip) ((addr << 7) + EISA_IO + 0x20) = b * 0x00010001; in jensen_outw()
193 __EXTERN_INLINE void jensen_outl(u32 b, unsigned long addr) in jensen_outl() argument
196 *(vuip) ((addr << 7) + EISA_IO + 0x60) = b; in jensen_outl()
206 unsigned long addr = (unsigned long) xaddr; in jensen_readb() local
209 jensen_set_hae(addr); in jensen_readb()
210 addr &= JENSEN_HAE_MASK; in jensen_readb()
211 result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x00); in jensen_readb()
212 result >>= (addr & 3) * 8; in jensen_readb()
218 unsigned long addr = (unsigned long) xaddr; in jensen_readw() local
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()
230 unsigned long addr = (unsigned long) xaddr; in jensen_readl() local
231 jensen_set_hae(addr); in jensen_readl()
232 addr &= JENSEN_HAE_MASK; in jensen_readl()
233 return *(vuip) ((addr << 7) + EISA_MEM + 0x60); in jensen_readl()
238 unsigned long addr = (unsigned long) xaddr; in jensen_readq() local
241 jensen_set_hae(addr); in jensen_readq()
242 addr &= JENSEN_HAE_MASK; in jensen_readq()
243 addr = (addr << 7) + EISA_MEM + 0x60; in jensen_readq()
244 r0 = *(vuip) (addr); in jensen_readq()
245 r1 = *(vuip) (addr + (4 << 7)); in jensen_readq()
251 unsigned long addr = (unsigned long) xaddr; in jensen_writeb() local
252 jensen_set_hae(addr); in jensen_writeb()
253 addr &= JENSEN_HAE_MASK; in jensen_writeb()
254 *(vuip) ((addr << 7) + EISA_MEM + 0x00) = b * 0x01010101; in jensen_writeb()
259 unsigned long addr = (unsigned long) xaddr; in jensen_writew() local
260 jensen_set_hae(addr); in jensen_writew()
261 addr &= JENSEN_HAE_MASK; in jensen_writew()
262 *(vuip) ((addr << 7) + EISA_MEM + 0x20) = b * 0x00010001; in jensen_writew()
267 unsigned long addr = (unsigned long) xaddr; in jensen_writel() local
268 jensen_set_hae(addr); in jensen_writel()
269 addr &= JENSEN_HAE_MASK; in jensen_writel()
270 *(vuip) ((addr << 7) + EISA_MEM + 0x60) = b; in jensen_writel()
275 unsigned long addr = (unsigned long) xaddr; in jensen_writeq() local
276 jensen_set_hae(addr); in jensen_writeq()
277 addr &= JENSEN_HAE_MASK; in jensen_writeq()
278 addr = (addr << 7) + EISA_MEM + 0x60; in jensen_writeq()
279 *(vuip) (addr) = b; in jensen_writeq()
280 *(vuip) (addr + (4 << 7)) = b >> 32; in jensen_writeq()
283 __EXTERN_INLINE void __iomem *jensen_ioportmap(unsigned long addr) in jensen_ioportmap() argument
285 return (void __iomem *)addr; in jensen_ioportmap()
288 __EXTERN_INLINE void __iomem *jensen_ioremap(unsigned long addr, in jensen_ioremap() argument
291 return (void __iomem *)(addr + 0x100000000ul); in jensen_ioremap()
294 __EXTERN_INLINE int jensen_is_ioaddr(unsigned long addr) in jensen_is_ioaddr() argument
296 return (long)addr >= 0; in jensen_is_ioaddr()
299 __EXTERN_INLINE int jensen_is_mmio(const volatile void __iomem *addr) in jensen_is_mmio() argument
301 return (unsigned long)addr >= 0x100000000ul; in jensen_is_mmio()