Lines Matching refs:iobase

162 	unsigned int iobase = info->p_dev->resource[0]->start;
171 outb(0x08 | 0x20, iobase + 0x30);
177 unsigned int iobase = info->p_dev->resource[0]->start;
187 outb(0x18 | 0x60, iobase + 0x30);
190 outb(0x00, iobase + 0x30);
202 static int bluecard_write(unsigned int iobase, unsigned int offset, __u8 *buf, int len)
208 outb_p(actual, iobase + offset);
211 outb_p(buf[i], iobase + offset + i + 1);
233 unsigned int iobase = info->p_dev->resource[0]->start;
266 outb(info->ctrl_reg, iobase + REG_CONTROL);
273 len = bluecard_write(iobase, offset, skb->data, skb->len);
276 outb_p(command, iobase + REG_COMMAND);
309 outb(info->ctrl_reg, iobase + REG_CONTROL);
313 outb(info->ctrl_reg, iobase + REG_CONTROL);
337 static int bluecard_read(unsigned int iobase, unsigned int offset, __u8 *buf, int size)
341 outb(REG_COMMAND_RX_WIN_ONE, iobase + REG_COMMAND);
343 len = inb(iobase + offset);
350 outb(REG_COMMAND_RX_WIN_TWO, iobase + REG_COMMAND);
354 buf[n] = inb(iobase + offset + i);
368 unsigned int iobase;
377 iobase = info->p_dev->resource[0]->start;
382 len = bluecard_read(iobase, offset, buf, sizeof(buf));
497 unsigned int iobase;
507 iobase = info->p_dev->resource[0]->start;
513 outb(info->ctrl_reg, iobase + REG_CONTROL);
515 reg = inb(iobase + REG_INTERRUPT);
521 outb(0x04, iobase + REG_INTERRUPT);
522 outb(REG_COMMAND_RX_BUF_ONE, iobase + REG_COMMAND);
527 outb(0x08, iobase + REG_INTERRUPT);
528 outb(REG_COMMAND_RX_BUF_TWO, iobase + REG_COMMAND);
533 outb(0x01, iobase + REG_INTERRUPT);
539 outb(0x02, iobase + REG_INTERRUPT);
547 outb(info->ctrl_reg, iobase + REG_CONTROL);
621 unsigned int iobase = info->p_dev->resource[0]->start;
627 outb(0x08 | 0x20, iobase + 0x30);
636 unsigned int iobase = info->p_dev->resource[0]->start;
644 outb(0x00, iobase + 0x30);
682 unsigned int iobase = info->p_dev->resource[0]->start;
714 id = inb(iobase + 0x30);
727 outb(info->ctrl_reg, iobase + REG_CONTROL);
730 outb(0x80, iobase + 0x30);
736 outb(0x00, iobase + 0x30);
740 outb(info->ctrl_reg, iobase + REG_CONTROL);
743 outb(0xff, iobase + REG_INTERRUPT);
745 outb(info->ctrl_reg, iobase + REG_CONTROL);
750 outb(info->ctrl_reg, iobase + REG_CONTROL);
754 outb(info->ctrl_reg, iobase + REG_CONTROL);
758 outb(info->ctrl_reg, iobase + REG_CONTROL);
766 outb(REG_COMMAND_RX_BUF_ONE, iobase + REG_COMMAND);
767 outb(REG_COMMAND_RX_BUF_TWO, iobase + REG_COMMAND);
776 outb((0x0f << RTS_LEVEL_SHIFT_BITS) | 1, iobase + REG_RX_CONTROL);
795 unsigned int iobase = info->p_dev->resource[0]->start;
807 outb(info->ctrl_reg, iobase + REG_CONTROL);
810 outb(0x80, iobase + 0x30);