• Home
  • Raw
  • Download

Lines Matching refs:iobase

111 static int btuart_write(unsigned int iobase, int fifo_size, __u8 *buf, int len)  in btuart_write()  argument
116 if (!(inb(iobase + UART_LSR) & UART_LSR_THRE)) in btuart_write()
122 outb(buf[actual], iobase + UART_TX); in btuart_write()
143 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_write_wakeup() local
157 len = btuart_write(iobase, 16, skb->data, skb->len); in btuart_write_wakeup()
177 unsigned int iobase; in btuart_receive() local
185 iobase = info->p_dev->resource[0]->start; in btuart_receive()
203 hci_skb_pkt_type(info->rx_skb) = inb(iobase + UART_RX); in btuart_receive()
236 *skb_put(info->rx_skb, 1) = inb(iobase + UART_RX); in btuart_receive()
283 } while (inb(iobase + UART_LSR) & UART_LSR_DR); in btuart_receive()
290 unsigned int iobase; in btuart_interrupt() local
299 iobase = info->p_dev->resource[0]->start; in btuart_interrupt()
303 iir = inb(iobase + UART_IIR) & UART_IIR_ID; in btuart_interrupt()
308 lsr = inb(iobase + UART_LSR); in btuart_interrupt()
333 iir = inb(iobase + UART_IIR) & UART_IIR_ID; in btuart_interrupt()
347 unsigned int iobase; in btuart_change_speed() local
357 iobase = info->p_dev->resource[0]->start; in btuart_change_speed()
362 outb(0, iobase + UART_IER); in btuart_change_speed()
382 outb(UART_LCR_DLAB | lcr, iobase + UART_LCR); /* Set DLAB */ in btuart_change_speed()
383 outb(divisor & 0xff, iobase + UART_DLL); /* Set speed */ in btuart_change_speed()
384 outb(divisor >> 8, iobase + UART_DLM); in btuart_change_speed()
385 outb(lcr, iobase + UART_LCR); /* Set 8N1 */ in btuart_change_speed()
386 outb(fcr, iobase + UART_FCR); /* Enable FIFO's */ in btuart_change_speed()
389 outb(UART_IER_RLSI | UART_IER_RDI | UART_IER_THRI, iobase + UART_IER); in btuart_change_speed()
457 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_open() local
489 outb(0, iobase + UART_MCR); in btuart_open()
492 outb(0, iobase + UART_IER); in btuart_open()
495 outb(UART_LCR_WLEN8, iobase + UART_LCR); /* Reset DLAB */ in btuart_open()
496 outb((UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2), iobase + UART_MCR); in btuart_open()
523 unsigned int iobase = info->p_dev->resource[0]->start; in btuart_close() local
534 outb(0, iobase + UART_MCR); in btuart_close()
537 outb(0, iobase + UART_IER); in btuart_close()