Lines Matching refs:port

21 static void early_serial_init(int port, int baud)  in early_serial_init()  argument
26 outb(0x3, port + LCR); /* 8n1 */ in early_serial_init()
27 outb(0, port + IER); /* no interrupt */ in early_serial_init()
28 outb(0, port + FCR); /* no fifo */ in early_serial_init()
29 outb(0x3, port + MCR); /* DTR + RTS */ in early_serial_init()
32 c = inb(port + LCR); in early_serial_init()
33 outb(c | DLAB, port + LCR); in early_serial_init()
34 outb(divisor & 0xff, port + DLL); in early_serial_init()
35 outb((divisor >> 8) & 0xff, port + DLH); in early_serial_init()
36 outb(c & ~DLAB, port + LCR); in early_serial_init()
38 early_serial_base = port; in early_serial_init()
46 int port = 0; in parse_earlyprintk() local
52 port = DEFAULT_SERIAL_PORT; in parse_earlyprintk()
66 port = simple_strtoull(arg + pos, &e, 16); in parse_earlyprintk()
67 if (port == 0 || arg + pos == e) in parse_earlyprintk()
68 port = DEFAULT_SERIAL_PORT; in parse_earlyprintk()
81 port = bases[idx]; in parse_earlyprintk()
92 if (port) in parse_earlyprintk()
93 early_serial_init(port, baud); in parse_earlyprintk()
97 static unsigned int probe_baud(int port) in probe_baud() argument
102 lcr = inb(port + LCR); in probe_baud()
103 outb(lcr | DLAB, port + LCR); in probe_baud()
104 dll = inb(port + DLL); in probe_baud()
105 dlh = inb(port + DLH); in probe_baud()
106 outb(lcr, port + LCR); in probe_baud()
116 int port = 0; in parse_console_uart8250() local
128 port = simple_strtoull(options + 12, &options, 0); in parse_console_uart8250()
130 port = simple_strtoull(options + 8, &options, 0); in parse_console_uart8250()
137 baud = probe_baud(port); in parse_console_uart8250()
139 if (port) in parse_console_uart8250()
140 early_serial_init(port, baud); in parse_console_uart8250()