Lines Matching refs:iobase
136 inline void bt3c_address(unsigned int iobase, unsigned short addr) in bt3c_address() argument
138 outb(addr & 0xff, iobase + ADDR_L); in bt3c_address()
139 outb((addr >> 8) & 0xff, iobase + ADDR_H); in bt3c_address()
143 inline void bt3c_put(unsigned int iobase, unsigned short value) in bt3c_put() argument
145 outb(value & 0xff, iobase + DATA_L); in bt3c_put()
146 outb((value >> 8) & 0xff, iobase + DATA_H); in bt3c_put()
150 inline void bt3c_io_write(unsigned int iobase, unsigned short addr, unsigned short value) in bt3c_io_write() argument
152 bt3c_address(iobase, addr); in bt3c_io_write()
153 bt3c_put(iobase, value); in bt3c_io_write()
157 inline unsigned short bt3c_get(unsigned int iobase) in bt3c_get() argument
159 unsigned short value = inb(iobase + DATA_L); in bt3c_get()
161 value |= inb(iobase + DATA_H) << 8; in bt3c_get()
167 inline unsigned short bt3c_read(unsigned int iobase, unsigned short addr) in bt3c_read() argument
169 bt3c_address(iobase, addr); in bt3c_read()
171 return bt3c_get(iobase); in bt3c_read()
179 static int bt3c_write(unsigned int iobase, int fifo_size, __u8 *buf, int len) in bt3c_write() argument
183 bt3c_address(iobase, 0x7080); in bt3c_write()
188 bt3c_put(iobase, buf[actual]); in bt3c_write()
192 bt3c_io_write(iobase, 0x7005, actual); in bt3c_write()
213 register unsigned int iobase = info->link.io.BasePort1; in bt3c_write_wakeup() local
227 len = bt3c_write(iobase, 256, skb->data, skb->len); in bt3c_write_wakeup()
245 unsigned int iobase; in bt3c_receive() local
253 iobase = info->link.io.BasePort1; in bt3c_receive()
255 avail = bt3c_read(iobase, 0x7006); in bt3c_receive()
258 bt3c_address(iobase, 0x7480); in bt3c_receive()
277 info->rx_skb->pkt_type = inb(iobase + DATA_L); in bt3c_receive()
278 inb(iobase + DATA_H); in bt3c_receive()
312 __u8 x = inb(iobase + DATA_L); in bt3c_receive()
315 inb(iobase + DATA_H); in bt3c_receive()
359 bt3c_io_write(iobase, 0x7006, 0x0000); in bt3c_receive()
366 unsigned int iobase; in bt3c_interrupt() local
374 iobase = info->link.io.BasePort1; in bt3c_interrupt()
378 iir = inb(iobase + CONTROL); in bt3c_interrupt()
380 int stat = bt3c_read(iobase, 0x7001); in bt3c_interrupt()
386 int stat = bt3c_read(iobase, 0x7002) & 0x10; in bt3c_interrupt()
397 bt3c_io_write(iobase, 0x7001, 0x0000); in bt3c_interrupt()
399 outb(iir, iobase + CONTROL); in bt3c_interrupt()
495 unsigned int iobase, size, addr, fcs, tmp; in bt3c_load_firmware() local
498 iobase = info->link.io.BasePort1; in bt3c_load_firmware()
502 bt3c_io_write(iobase, 0x8040, 0x0404); in bt3c_load_firmware()
503 bt3c_io_write(iobase, 0x8040, 0x0400); in bt3c_load_firmware()
507 bt3c_io_write(iobase, 0x8040, 0x0404); in bt3c_load_firmware()
545 bt3c_address(iobase, addr); in bt3c_load_firmware()
551 bt3c_put(iobase, tmp); in bt3c_load_firmware()
563 bt3c_address(iobase, 0x3000); in bt3c_load_firmware()
564 outb(inb(iobase + CONTROL) | 0x40, iobase + CONTROL); in bt3c_load_firmware()
571 bt3c_io_write(iobase, 0x7006, 0x0000); in bt3c_load_firmware()
572 bt3c_io_write(iobase, 0x7005, 0x0000); in bt3c_load_firmware()
573 bt3c_io_write(iobase, 0x7001, 0x0000); in bt3c_load_firmware()