Lines Matching refs:base_addr

158 	outb(0x81, LCR(dev->base_addr));	/* DLAB = 1 */  in ser12_set_divisor()
159 outb(divisor, DLL(dev->base_addr)); in ser12_set_divisor()
160 outb(0, DLM(dev->base_addr)); in ser12_set_divisor()
161 outb(0x01, LCR(dev->base_addr)); /* word length = 6 */ in ser12_set_divisor()
167 outb(0x00, THR(dev->base_addr)); in ser12_set_divisor()
193 outb(0x0e | (!!bc->modem.ser12.tx_bit), MCR(dev->base_addr)); in ser12_tx()
209 cur_s = inb(MSR(dev->base_addr)) & 0x10; /* the CTS line */ in ser12_rx()
339 outb(0x0d, MCR(dev->base_addr)); /* transmitter off */ in ser12_rx()
346 hdlcdrv_setdcd(&bc->hdrv, !((inb(MSR(dev->base_addr)) ^ bc->opt_dcd) & 0x80)); in ser12_rx()
371 if ((iir = inb(IIR(dev->base_addr))) & 1) in ser12_interrupt()
377 inb(LSR(dev->base_addr)); in ser12_interrupt()
381 inb(RBR(dev->base_addr)); in ser12_interrupt()
394 outb(0x00, THR(dev->base_addr)); in ser12_interrupt()
398 inb(MSR(dev->base_addr)); in ser12_interrupt()
401 iir = inb(IIR(dev->base_addr)); in ser12_interrupt()
463 if (!dev->base_addr || dev->base_addr > 0x1000-SER12_EXTENT || in ser12_open()
466 if (!request_region(dev->base_addr, SER12_EXTENT, "baycom_ser12")) in ser12_open()
470 if ((u = ser12_check_uart(dev->base_addr)) == c_uart_unknown) { in ser12_open()
471 release_region(dev->base_addr, SER12_EXTENT); in ser12_open()
474 outb(0, FCR(dev->base_addr)); /* disable FIFOs */ in ser12_open()
475 outb(0x0d, MCR(dev->base_addr)); in ser12_open()
476 outb(0, IER(dev->base_addr)); in ser12_open()
479 release_region(dev->base_addr, SER12_EXTENT); in ser12_open()
485 outb(2, IER(dev->base_addr)); in ser12_open()
493 bc_drvname, dev->base_addr, dev->irq, uart_str[u]); in ser12_open()
508 outb(0, IER(dev->base_addr)); in ser12_close()
509 outb(1, MCR(dev->base_addr)); in ser12_close()
511 release_region(dev->base_addr, SER12_EXTENT); in ser12_close()
513 bc_drvname, dev->base_addr, dev->irq); in ser12_close()