Lines Matching refs:ioaddr
73 int ioaddr = dev->base_addr; in get_buffer_byte() local
75 arcnet_outb(offset >> 8, ioaddr, COM9026_REG_W_ADDR_HI); in get_buffer_byte()
76 arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO); in get_buffer_byte()
78 return arcnet_inb(ioaddr, COM9026_REG_RW_MEMDATA); in get_buffer_byte()
85 int ioaddr = dev->base_addr; in put_buffer_byte() local
87 arcnet_outb(offset >> 8, ioaddr, COM9026_REG_W_ADDR_HI); in put_buffer_byte()
88 arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO); in put_buffer_byte()
90 arcnet_outb(datum, ioaddr, COM9026_REG_RW_MEMDATA); in put_buffer_byte()
98 int ioaddr = dev->base_addr; in get_whole_buffer() local
100 arcnet_outb((offset >> 8) | AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI); in get_whole_buffer()
101 arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO); in get_whole_buffer()
107 *(dest++) = arcnet_inb(ioaddr, COM9026_REG_RW_MEMDATA); in get_whole_buffer()
114 int ioaddr = dev->base_addr; in put_whole_buffer() local
116 arcnet_outb((offset >> 8) | AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI); in put_whole_buffer()
117 arcnet_outb(offset & 0xff, ioaddr,COM9026_REG_W_ADDR_LO); in put_whole_buffer()
123 arcnet_outb(*(dest++), ioaddr, COM9026_REG_RW_MEMDATA); in put_whole_buffer()
132 int ioaddr = dev->base_addr, status; in com90io_probe() local
140 if (!ioaddr) { in com90io_probe()
144 if (!request_region(ioaddr, ARCNET_TOTAL_SIZE, "com90io probe")) { in com90io_probe()
146 ioaddr, ioaddr + ARCNET_TOTAL_SIZE - 1); in com90io_probe()
149 if (arcnet_inb(ioaddr, COM9026_REG_R_STATUS) == 0xFF) { in com90io_probe()
151 ioaddr); in com90io_probe()
154 arcnet_inb(ioaddr, COM9026_REG_R_RESET); in com90io_probe()
157 status = arcnet_inb(ioaddr, COM9026_REG_R_STATUS); in com90io_probe()
167 ioaddr, COM9026_REG_W_COMMAND); in com90io_probe()
172 status = arcnet_inb(ioaddr, COM9026_REG_R_STATUS); in com90io_probe()
180 ioaddr, COM9026_REG_RW_CONFIG); in com90io_probe()
184 arcnet_outb(AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI); in com90io_probe()
185 arcnet_outb(0, ioaddr, COM9026_REG_W_ADDR_LO); in com90io_probe()
187 status = arcnet_inb(ioaddr, COM9026_REG_RW_MEMDATA); in com90io_probe()
200 arcnet_outb(NORXflag, ioaddr, COM9026_REG_W_INTMASK); in com90io_probe()
202 arcnet_outb(0, ioaddr, COM9026_REG_W_INTMASK); in com90io_probe()
210 release_region(ioaddr, ARCNET_TOTAL_SIZE); /* end of probing */ in com90io_probe()
214 release_region(ioaddr, ARCNET_TOTAL_SIZE); in com90io_probe()
224 int ioaddr = dev->base_addr; in com90io_found() local
251 arcnet_outb(lp->config, ioaddr, COM9026_REG_RW_CONFIG); in com90io_found()
259 arcnet_outb(arcnet_inb(ioaddr, COM9026_REG_RW_CONFIG) & ~IOMAPflag, in com90io_found()
260 ioaddr, COM9026_REG_RW_CONFIG); in com90io_found()
282 short ioaddr = dev->base_addr; in com90io_reset() local
285 dev->name, arcnet_inb(ioaddr, COM9026_REG_R_STATUS)); in com90io_reset()
289 arcnet_inb(ioaddr, COM9026_REG_R_RESET); in com90io_reset()
294 arcnet_outb(lp->config, ioaddr, COM9026_REG_RW_CONFIG); in com90io_reset()
296 arcnet_outb(CFLAGScmd | RESETclear, ioaddr, COM9026_REG_W_COMMAND); in com90io_reset()
298 arcnet_outb(CFLAGScmd | CONFIGclear, ioaddr, COM9026_REG_W_COMMAND); in com90io_reset()
306 arcnet_outb(CONFIGcmd | EXTconf, ioaddr, COM9026_REG_W_COMMAND); in com90io_reset()
313 short ioaddr = dev->base_addr; in com90io_command() local
315 arcnet_outb(cmd, ioaddr, COM9026_REG_W_COMMAND); in com90io_command()
320 short ioaddr = dev->base_addr; in com90io_status() local
322 return arcnet_inb(ioaddr, COM9026_REG_R_STATUS); in com90io_status()
327 short ioaddr = dev->base_addr; in com90io_setmask() local
329 arcnet_outb(mask, ioaddr, COM9026_REG_W_INTMASK); in com90io_setmask()
408 int ioaddr = dev->base_addr; in com90io_exit() local
415 arcnet_outb(arcnet_inb(ioaddr, COM9026_REG_RW_CONFIG) & ~IOMAPflag, in com90io_exit()
416 ioaddr, COM9026_REG_RW_CONFIG); in com90io_exit()