• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/bluetooth/

Lines Matching refs:iobase

120 static inline void bt3c_address(unsigned int iobase, unsigned short addr)
122 outb(addr & 0xff, iobase + ADDR_L);
123 outb((addr >> 8) & 0xff, iobase + ADDR_H);
127 static inline void bt3c_put(unsigned int iobase, unsigned short value)
129 outb(value & 0xff, iobase + DATA_L);
130 outb((value >> 8) & 0xff, iobase + DATA_H);
134 static inline void bt3c_io_write(unsigned int iobase, unsigned short addr, unsigned short value)
136 bt3c_address(iobase, addr);
137 bt3c_put(iobase, value);
141 static inline unsigned short bt3c_get(unsigned int iobase)
143 unsigned short value = inb(iobase + DATA_L);
145 value |= inb(iobase + DATA_H) << 8;
151 static inline unsigned short bt3c_read(unsigned int iobase, unsigned short addr)
153 bt3c_address(iobase, addr);
155 return bt3c_get(iobase);
163 static int bt3c_write(unsigned int iobase, int fifo_size, __u8 *buf, int len)
167 bt3c_address(iobase, 0x7080);
172 bt3c_put(iobase, buf[actual]);
176 bt3c_io_write(iobase, 0x7005, actual);
193 register unsigned int iobase = info->p_dev->io.BasePort1;
207 len = bt3c_write(iobase, 256, skb->data, skb->len);
223 unsigned int iobase;
231 iobase = info->p_dev->io.BasePort1;
233 avail = bt3c_read(iobase, 0x7006);
236 bt3c_address(iobase, 0x7480);
255 bt_cb(info->rx_skb)->pkt_type = inb(iobase + DATA_L);
256 inb(iobase + DATA_H);
290 __u8 x = inb(iobase + DATA_L);
293 inb(iobase + DATA_H);
337 bt3c_io_write(iobase, 0x7006, 0x0000);
344 unsigned int iobase;
352 iobase = info->p_dev->io.BasePort1;
356 iir = inb(iobase + CONTROL);
358 int stat = bt3c_read(iobase, 0x7001);
364 int stat = bt3c_read(iobase, 0x7002) & 0x10;
376 bt3c_io_write(iobase, 0x7001, 0x0000);
378 outb(iir, iobase + CONTROL);
480 unsigned int iobase, size, addr, fcs, tmp;
483 iobase = info->p_dev->io.BasePort1;
486 bt3c_io_write(iobase, 0x8040, 0x0404);
487 bt3c_io_write(iobase, 0x8040, 0x0400);
491 bt3c_io_write(iobase, 0x8040, 0x0404);
528 bt3c_address(iobase, addr);
534 bt3c_put(iobase, tmp);
545 bt3c_address(iobase, 0x3000);
546 outb(inb(iobase + CONTROL) | 0x40, iobase + CONTROL);
552 bt3c_io_write(iobase, 0x7006, 0x0000);
553 bt3c_io_write(iobase, 0x7005, 0x0000);
554 bt3c_io_write(iobase, 0x7001, 0x0000);