Lines Matching refs:io
35 static int io = 0x3e8; variable
66 return inb(io + offset); in sinp()
71 outb(value, io + offset); in soutp()
139 outb(UART_FCR_CLEAR_RCVR, io + UART_FCR); in sir_timeout()
164 while ((iir = inb(io + UART_IIR) & UART_IIR_ID)) { in sir_interrupt()
172 (void)inb(io + UART_MSR); in sir_interrupt()
176 (void)inb(io + UART_LSR); in sir_interrupt()
183 data = inb(io + UART_RX); in sir_interrupt()
234 lsr = inb(io + UART_LSR); in sir_interrupt()
259 outb(PULSE, io + UART_TX); in send_pulse()
261 while (!(inb(io + UART_LSR) & UART_LSR_THRE)) in send_pulse()
297 outb(0, io + UART_MCR); in init_hardware()
298 outb(0, io + UART_IER); in init_hardware()
301 outb(UART_LCR_DLAB | UART_LCR_WLEN7, io + UART_LCR); in init_hardware()
302 outb(1, io + UART_DLL); outb(0, io + UART_DLM); in init_hardware()
304 outb(UART_LCR_WLEN7, io + UART_LCR); in init_hardware()
306 outb(UART_FCR_ENABLE_FIFO, io + UART_FCR); in init_hardware()
309 outb(UART_IER_RDI, io + UART_IER); in init_hardware()
311 outb(UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2, io + UART_MCR); in init_hardware()
324 outb(0, io + UART_IER); in drop_hardware()
354 if (!devm_request_region(&sir_ir_dev->dev, io, 8, KBUILD_MODNAME)) { in sir_ir_probe()
355 pr_err("i/o port 0x%.4x already in use.\n", io); in sir_ir_probe()
371 pr_info("I/O port 0x%.4x, IRQ %d.\n", io, irq); in sir_ir_probe()
435 module_param_hw(io, int, ioport, 0444);
436 MODULE_PARM_DESC(io, "I/O address base (0x3f8 or 0x2f8)");