Lines Matching defs:offset

89 	   u8 bar, unsigned int offset, int regshift)
102 port->port.mapbase = pci_resource_start(dev, bar) + offset;
103 port->port.membase = pcim_iomap_table(dev)[bar] + offset;
107 port->port.iobase = pci_resource_start(dev, bar) + offset;
122 unsigned int bar = 0, offset = board->first_offset;
126 offset += idx * board->uart_offset;
129 offset += ((idx - 2) * board->uart_offset);
132 offset += ((idx - 4) * board->uart_offset);
135 offset += ((idx - 6) * board->uart_offset);
138 return setup_port(priv, port, bar, offset, board->reg_shift);
149 unsigned int bar, offset = board->first_offset;
156 offset += (idx - 4) * board->uart_offset;
159 return setup_port(priv, port, bar, offset, board->reg_shift);
204 unsigned int offset = board->first_offset;
220 offset = 0x18;
222 offset += idx * board->uart_offset;
224 return setup_port(priv, port, bar, offset, board->reg_shift);
373 unsigned int bar, offset = board->first_offset;
379 offset += idx * board->uart_offset;
382 offset += idx * board->uart_offset + 0xC00;
386 return setup_port(priv, port, bar, offset, board->reg_shift);
396 /* global control register offset for SBS PMC-OctalPro */
528 unsigned int bar = FL_GET_BASE(board->flags) + idx, offset = 0;
532 offset = (idx - 4) * 8;
535 return setup_port(priv, port, bar, offset, 0);
621 unsigned int bar = 0, offset = board->first_offset;
628 offset = board->uart_offset;
635 offset = board->uart_offset;
644 return setup_port(priv, port, bar, offset, board->reg_shift);
655 unsigned int bar, offset = board->first_offset;
666 offset = (idx - 2) * board->uart_offset;
669 return setup_port(priv, port, bar, offset, board->reg_shift);
758 unsigned int bar, offset = board->first_offset;
764 offset += idx * board->uart_offset;
771 writeb(readb(p + offset + NI8430_PORTCON) | NI8430_PORTCON_TXVR_ENABLE,
772 p + offset + NI8430_PORTCON);
776 return setup_port(priv, port, bar, offset, board->reg_shift);
1300 unsigned int bar, offset = board->first_offset, maxnr;
1306 offset += idx * board->uart_offset;
1314 return setup_port(priv, port, bar, offset, board->reg_shift);
1354 unsigned int bar, offset = board->first_offset, maxnr;
1360 offset += idx * board->uart_offset;
1371 return setup_port(priv, port, bar, offset, board->reg_shift);
1378 unsigned int bar, offset = board->first_offset, maxnr;
1384 offset += idx * board->uart_offset;
1387 offset = 0x38;
1397 return setup_port(priv, port, bar, offset, board->reg_shift);
1550 /* UART0 configuration offset start from 0x40 */
1583 static void f815xxa_mem_serial_out(struct uart_port *p, int offset, int value)
1589 writeb(value, p->membase + offset);
1641 /* UART0 configuration offset start from 0x2A0 */
1678 static unsigned int kt_serial_in(struct uart_port *p, int offset)
1693 val = inb(p->iobase + offset);
1694 if (offset == UART_IER) {
1789 int offset;
1796 offset = idx * board->uart_offset;
1800 idx = div_s64_rem(idx, 4, &offset);
1801 offset = idx * 64 + offset * board->uart_offset;
1804 return setup_port(priv, port, bar, offset, 0);
1813 int offset;
1816 offset = 7 * board->uart_offset;
1818 offset = idx * board->uart_offset;
1820 return setup_port(priv, port, bar, offset, 0);
2192 * Pericom (Only 7954 - It have a offset jump for port 4)
2790 * offsetinhex = offset for each sequential port (in hex)
2953 * offset 0x10 from the UART base, while UART_IER is defined as 1