Lines Matching refs:base_addr
172 outb(0x81, LCR(dev->base_addr)); /* DLAB = 1 */ in ser12_set_divisor()
173 outb(divisor, DLL(dev->base_addr)); in ser12_set_divisor()
174 outb(0, DLM(dev->base_addr)); in ser12_set_divisor()
175 outb(0x01, LCR(dev->base_addr)); /* word length = 6 */ in ser12_set_divisor()
181 outb(0x00, THR(dev->base_addr)); in ser12_set_divisor()
207 outb(0x0e | (!!bc->modem.ser12.tx_bit), MCR(dev->base_addr)); in ser12_tx()
223 cur_s = inb(MSR(dev->base_addr)) & 0x10; /* the CTS line */ in ser12_rx()
353 outb(0x0d, MCR(dev->base_addr)); /* transmitter off */ in ser12_rx()
360 hdlcdrv_setdcd(&bc->hdrv, !((inb(MSR(dev->base_addr)) ^ bc->opt_dcd) & 0x80)); in ser12_rx()
385 if ((iir = inb(IIR(dev->base_addr))) & 1) in ser12_interrupt()
391 inb(LSR(dev->base_addr)); in ser12_interrupt()
395 inb(RBR(dev->base_addr)); in ser12_interrupt()
408 outb(0x00, THR(dev->base_addr)); in ser12_interrupt()
412 inb(MSR(dev->base_addr)); in ser12_interrupt()
415 iir = inb(IIR(dev->base_addr)); in ser12_interrupt()
476 if (!dev->base_addr || dev->base_addr > 0x1000-SER12_EXTENT || in ser12_open()
479 if (check_region(dev->base_addr, SER12_EXTENT)) in ser12_open()
483 if ((u = ser12_check_uart(dev->base_addr)) == c_uart_unknown) in ser12_open()
485 outb(0, FCR(dev->base_addr)); /* disable FIFOs */ in ser12_open()
486 outb(0x0d, MCR(dev->base_addr)); in ser12_open()
487 outb(0, IER(dev->base_addr)); in ser12_open()
491 request_region(dev->base_addr, SER12_EXTENT, "baycom_ser12"); in ser12_open()
495 outb(2, IER(dev->base_addr)); in ser12_open()
503 bc_drvname, dev->base_addr, dev->irq, uart_str[u]); in ser12_open()
519 outb(0, IER(dev->base_addr)); in ser12_close()
520 outb(1, MCR(dev->base_addr)); in ser12_close()
522 release_region(dev->base_addr, SER12_EXTENT); in ser12_close()
524 bc_drvname, dev->base_addr, dev->irq); in ser12_close()