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