Lines Matching refs:base_addr
183 outb(0x81, LCR(dev->base_addr)); /* DLAB = 1 */ in ser12_set_divisor()
184 outb(divisor, DLL(dev->base_addr)); in ser12_set_divisor()
185 outb(divisor >> 8, DLM(dev->base_addr)); in ser12_set_divisor()
186 outb(0x01, LCR(dev->base_addr)); /* word length = 6 */ in ser12_set_divisor()
192 outb(0x00, THR(dev->base_addr)); in ser12_set_divisor()
293 if ((iir = inb(IIR(dev->base_addr))) & 1) in ser12_interrupt()
297 msr = inb(MSR(dev->base_addr)); in ser12_interrupt()
304 inb(LSR(dev->base_addr)); in ser12_interrupt()
308 inb(RBR(dev->base_addr)); in ser12_interrupt()
317 outb(0x00, THR(dev->base_addr)); in ser12_interrupt()
325 outb(0x0e | (!!bc->modem.ser12.tx_bit), MCR(dev->base_addr)); in ser12_interrupt()
327 outb(0x0d, MCR(dev->base_addr)); /* transmitter off */ in ser12_interrupt()
331 msr = inb(MSR(dev->base_addr)); in ser12_interrupt()
337 iir = inb(IIR(dev->base_addr)); in ser12_interrupt()
415 if (!dev->base_addr || dev->base_addr > 0x1000-SER12_EXTENT || in ser12_open()
420 if (!request_region(dev->base_addr, SER12_EXTENT, "baycom_ser_fdx")) { in ser12_open()
422 dev->base_addr); in ser12_open()
429 if ((u = ser12_check_uart(dev->base_addr)) == c_uart_unknown){ in ser12_open()
430 release_region(dev->base_addr, SER12_EXTENT); in ser12_open()
433 outb(0, FCR(dev->base_addr)); /* disable FIFOs */ in ser12_open()
434 outb(0x0d, MCR(dev->base_addr)); in ser12_open()
435 outb(0, IER(dev->base_addr)); in ser12_open()
438 release_region(dev->base_addr, SER12_EXTENT); in ser12_open()
452 outb(0x0a, IER(dev->base_addr)); in ser12_open()
458 outb(0x00, THR(dev->base_addr)); in ser12_open()
461 bc_drvname, dev->base_addr, dev->irq, bc->baud, uart_str[u]); in ser12_open()
477 outb(0, IER(dev->base_addr)); in ser12_close()
478 outb(1, MCR(dev->base_addr)); in ser12_close()
480 release_region(dev->base_addr, SER12_EXTENT); in ser12_close()
482 bc_drvname, dev->base_addr, dev->irq); in ser12_close()