Lines Matching refs:iobase
116 static inline void bt3c_address(unsigned int iobase, unsigned short addr) in bt3c_address() argument
118 outb(addr & 0xff, iobase + ADDR_L); in bt3c_address()
119 outb((addr >> 8) & 0xff, iobase + ADDR_H); in bt3c_address()
123 static inline void bt3c_put(unsigned int iobase, unsigned short value) in bt3c_put() argument
125 outb(value & 0xff, iobase + DATA_L); in bt3c_put()
126 outb((value >> 8) & 0xff, iobase + DATA_H); in bt3c_put()
130 static inline void bt3c_io_write(unsigned int iobase, unsigned short addr, unsigned short value) in bt3c_io_write() argument
132 bt3c_address(iobase, addr); in bt3c_io_write()
133 bt3c_put(iobase, value); in bt3c_io_write()
137 static inline unsigned short bt3c_get(unsigned int iobase) in bt3c_get() argument
139 unsigned short value = inb(iobase + DATA_L); in bt3c_get()
141 value |= inb(iobase + DATA_H) << 8; in bt3c_get()
147 static inline unsigned short bt3c_read(unsigned int iobase, unsigned short addr) in bt3c_read() argument
149 bt3c_address(iobase, addr); in bt3c_read()
151 return bt3c_get(iobase); in bt3c_read()
159 static int bt3c_write(unsigned int iobase, int fifo_size, __u8 *buf, int len) in bt3c_write() argument
163 bt3c_address(iobase, 0x7080); in bt3c_write()
168 bt3c_put(iobase, buf[actual]); in bt3c_write()
172 bt3c_io_write(iobase, 0x7005, actual); in bt3c_write()
189 unsigned int iobase = info->p_dev->resource[0]->start; in bt3c_write_wakeup() local
203 len = bt3c_write(iobase, 256, skb->data, skb->len); in bt3c_write_wakeup()
218 unsigned int iobase; in bt3c_receive() local
226 iobase = info->p_dev->resource[0]->start; in bt3c_receive()
228 avail = bt3c_read(iobase, 0x7006); in bt3c_receive()
230 bt3c_address(iobase, 0x7480); in bt3c_receive()
249 hci_skb_pkt_type(info->rx_skb) = inb(iobase + DATA_L); in bt3c_receive()
250 inb(iobase + DATA_H); in bt3c_receive()
283 __u8 x = inb(iobase + DATA_L); in bt3c_receive()
286 inb(iobase + DATA_H); in bt3c_receive()
330 bt3c_io_write(iobase, 0x7006, 0x0000); in bt3c_receive()
337 unsigned int iobase; in bt3c_interrupt() local
345 iobase = info->p_dev->resource[0]->start; in bt3c_interrupt()
349 iir = inb(iobase + CONTROL); in bt3c_interrupt()
351 int stat = bt3c_read(iobase, 0x7001); in bt3c_interrupt()
357 int status = bt3c_read(iobase, 0x7002) & 0x10; in bt3c_interrupt()
368 bt3c_io_write(iobase, 0x7001, 0x0000); in bt3c_interrupt()
370 outb(iir, iobase + CONTROL); in bt3c_interrupt()
451 unsigned int iobase, tmp, tn; in bt3c_load_firmware() local
455 iobase = info->p_dev->resource[0]->start; in bt3c_load_firmware()
458 bt3c_io_write(iobase, 0x8040, 0x0404); in bt3c_load_firmware()
459 bt3c_io_write(iobase, 0x8040, 0x0400); in bt3c_load_firmware()
463 bt3c_io_write(iobase, 0x8040, 0x0404); in bt3c_load_firmware()
505 bt3c_address(iobase, addr); in bt3c_load_firmware()
512 bt3c_put(iobase, tmp); in bt3c_load_firmware()
523 bt3c_address(iobase, 0x3000); in bt3c_load_firmware()
524 outb(inb(iobase + CONTROL) | 0x40, iobase + CONTROL); in bt3c_load_firmware()
530 bt3c_io_write(iobase, 0x7006, 0x0000); in bt3c_load_firmware()
531 bt3c_io_write(iobase, 0x7005, 0x0000); in bt3c_load_firmware()
532 bt3c_io_write(iobase, 0x7001, 0x0000); in bt3c_load_firmware()