Lines Matching refs:termios
27 termios::{ControlMode, PosixTermios, Termios, TtySetTermiosOpt, WindowSize},
58 let termios = driver.init_termios(); in new() localVariable
61 termios: RwLock::new(termios), in new()
181 let termios = PosixTermios::from_kernel_termios(*real_tty.core.termios()); in tty_mode_ioctl() localVariable
188 user_writer.copy_one_to_user(&termios, 0)?; in tty_mode_ioctl()
218 let mut tmp_termios = *tty.core().termios(); in core_set_termios()
249 let mut termios = tty.core().termios_write(); in set_termios_next() localVariable
251 let old_termios = *termios; in set_termios_next()
252 *termios = new_termios; in set_termios_next()
253 let tmp = termios.control_mode; in set_termios_next()
254 termios.control_mode ^= (tmp ^ old_termios.control_mode) & ControlMode::ADDRB; in set_termios_next()
256 drop(termios); in set_termios_next()
258 let mut termios = tty.core().termios_write(); in set_termios_next() localVariable
260 termios.control_mode &= ControlMode::HUPCL | ControlMode::CREAD | ControlMode::CLOCAL; in set_termios_next()
261 termios.control_mode |= old_termios.control_mode in set_termios_next()
263 termios.input_speed = old_termios.input_speed; in set_termios_next()
264 termios.output_speed = old_termios.output_speed; in set_termios_next()
267 drop(termios); in set_termios_next()
304 termios: RwLock<Termios>, field
376 pub fn termios(&self) -> RwLockReadGuard<'_, Termios> { in termios() method
377 self.termios.read_irqsave() in termios()
382 self.termios.write_irqsave() in termios_write()
386 pub fn set_termios(&self, termios: Termios) { in set_termios()
388 *termios_guard = termios; in set_termios()
480 let mut termios = *t; in init_termios() localVariable
481 termios.line = driver.init_termios().line; in init_termios()
482 self.set_termios(termios); in init_termios()