Lines Matching refs:ser

53 	const struct old_serial_port *ser;  in spk_serial_init()  local
60 ser = rs_table + index; in spk_serial_init()
63 quot = ser->baud_base / baud; in spk_serial_init()
74 if (synth_request_region(ser->port, 8)) { in spk_serial_init()
77 __release_region(&ioport_resource, ser->port, 8); in spk_serial_init()
78 err = synth_request_region(ser->port, 8); in spk_serial_init()
81 ser->port, err); in spk_serial_init()
89 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init()
90 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */ in spk_serial_init()
91 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */ in spk_serial_init()
92 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init()
95 outb(0, ser->port + UART_IER); in spk_serial_init()
96 outb(UART_MCR_DTR | UART_MCR_RTS, ser->port + UART_MCR); in spk_serial_init()
99 if (inb(ser->port + UART_LSR) == 0xff) { in spk_serial_init()
100 synth_release_region(ser->port, 8); in spk_serial_init()
106 speakup_info.port_tts = ser->port; in spk_serial_init()
107 serstate = ser; in spk_serial_init()
109 start_serial_interrupt(ser->irq); in spk_serial_init()
111 return ser; in spk_serial_init()
174 const struct old_serial_port *ser; in spk_serial_synth_probe() local
177 if ((synth->ser >= SPK_LO_TTY) && (synth->ser <= SPK_HI_TTY)) { in spk_serial_synth_probe()
178 ser = spk_serial_init(synth->ser); in spk_serial_synth_probe()
179 if (!ser) { in spk_serial_synth_probe()
182 outb_p(0, ser->port); in spk_serial_synth_probe()
184 outb_p('\r', ser->port); in spk_serial_synth_probe()
188 pr_warn("ttyS%i is an invalid port\n", synth->ser); in spk_serial_synth_probe()
195 synth->long_name, synth->ser, synth->version); in spk_serial_synth_probe()