Lines Matching refs:addr
58 unsigned long addr, unsigned char shift) in hd64465_port_map() argument
63 baseport, nports, addr,endport); in hd64465_port_map()
68 DPRINTK(" maplo[0x%x] = 0x%08lx\n", port, addr); in hd64465_port_map()
69 hd64465_iomap_lo[port>>HD64465_IOMAP_LO_SHIFT] = addr; in hd64465_port_map()
71 addr += (1<<(HD64465_IOMAP_LO_SHIFT)); in hd64465_port_map()
77 DPRINTK(" maphi[0x%x] = 0x%08lx\n", port, addr); in hd64465_port_map()
78 hd64465_iomap_hi[port>>HD64465_IOMAP_HI_SHIFT] = addr; in hd64465_port_map()
80 addr += (1<<(HD64465_IOMAP_HI_SHIFT)); in hd64465_port_map()
108 unsigned long addr = 0; in hd64465_isa_port2addr() local
113 addr = hd64465_iomap_lo[port >> HD64465_IOMAP_LO_SHIFT]; in hd64465_isa_port2addr()
115 if (addr != 0) in hd64465_isa_port2addr()
116 addr += (port & HD64465_IOMAP_LO_MASK) << shift; in hd64465_isa_port2addr()
120 addr = hd64465_iomap_hi[port >> HD64465_IOMAP_HI_SHIFT]; in hd64465_isa_port2addr()
122 if (addr != 0) in hd64465_isa_port2addr()
123 addr += (port & HD64465_IOMAP_HI_MASK) << shift; in hd64465_isa_port2addr()
130 addr = CONFIG_HD64465_IOBASE + port - 0x10000; in hd64465_isa_port2addr()
134 addr = P2SEGADDR(port); in hd64465_isa_port2addr()
136 DIPRINTK(2, "PORT2ADDR(0x%08lx) = 0x%08lx\n", port, addr); in hd64465_isa_port2addr()
138 return addr; in hd64465_isa_port2addr()
148 unsigned long addr = PORT2ADDR(port); in hd64465_inb() local
149 unsigned long b = (addr == 0 ? 0 : *(volatile unsigned char*)addr); in hd64465_inb()
151 DIPRINTK(0, "inb(%08lx) = %02x\n", addr, (unsigned)b); in hd64465_inb()
158 unsigned long addr = PORT2ADDR(port); in hd64465_inb_p() local
160 v = (addr == 0 ? 0 : *(volatile unsigned char*)addr); in hd64465_inb_p()
162 DIPRINTK(0, "inb_p(%08lx) = %02x\n", addr, (unsigned)v); in hd64465_inb_p()
168 unsigned long addr = PORT2ADDR(port); in hd64465_inw() local
169 unsigned long b = (addr == 0 ? 0 : *(volatile unsigned short*)addr); in hd64465_inw()
170 DIPRINTK(0, "inw(%08lx) = %04lx\n", addr, b); in hd64465_inw()
176 unsigned long addr = PORT2ADDR(port); in hd64465_inl() local
177 unsigned int b = (addr == 0 ? 0 : *(volatile unsigned long*)addr); in hd64465_inl()
178 DIPRINTK(0, "inl(%08lx) = %08x\n", addr, b); in hd64465_inl()
202 unsigned long addr = PORT2ADDR(port); in hd64465_outb() local
204 DIPRINTK(0, "outb(%02x, %08lx)\n", (unsigned)b, addr); in hd64465_outb()
205 if (addr != 0) in hd64465_outb()
206 *(volatile unsigned char*)addr = b; in hd64465_outb()
211 unsigned long addr = PORT2ADDR(port); in hd64465_outb_p() local
213 DIPRINTK(0, "outb_p(%02x, %08lx)\n", (unsigned)b, addr); in hd64465_outb_p()
214 if (addr != 0) in hd64465_outb_p()
215 *(volatile unsigned char*)addr = b; in hd64465_outb_p()
221 unsigned long addr = PORT2ADDR(port); in hd64465_outw() local
222 DIPRINTK(0, "outw(%04x, %08lx)\n", (unsigned)b, addr); in hd64465_outw()
223 if (addr != 0) in hd64465_outw()
224 *(volatile unsigned short*)addr = b; in hd64465_outw()
229 unsigned long addr = PORT2ADDR(port); in hd64465_outl() local
230 DIPRINTK(0, "outl(%08x, %08lx)\n", b, addr); in hd64465_outl()
231 if (addr != 0) in hd64465_outl()
232 *(volatile unsigned long*)addr = b; in hd64465_outl()