Lines Matching refs:tty

14     driver::{base::device::device_number::DeviceNumber, tty::pty::ptm_driver},
170 pub fn tty_mode_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in tty_mode_ioctl()
171 let core = tty.core(); in tty_mode_ioctl()
177 tty in tty_mode_ioctl()
212 tty: Arc<TtyCore>, in core_set_termios()
218 let mut tmp_termios = *tty.core().termios(); in core_set_termios()
236 let ld = tty.ldisc(); in core_set_termios()
237 let _ = ld.flush_buffer(tty.clone()); in core_set_termios()
244 TtyCore::set_termios_next(tty, tmp_termios)?; in core_set_termios()
248 fn set_termios_next(tty: Arc<TtyCore>, new_termios: Termios) -> Result<(), SystemError> { in set_termios_next()
249 let mut termios = tty.core().termios_write(); in set_termios_next()
257 let ret = tty.set_termios(tty.clone(), old_termios); in set_termios_next()
258 let mut termios = tty.core().termios_write(); in set_termios_next()
268 let ld = tty.ldisc(); in set_termios_next()
269 ld.set_termios(tty, Some(old_termios)).ok(); in set_termios_next()
551 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in open()
552 return self.core().tty_driver.driver_funcs().open(tty); in open()
556 fn write_room(&self, tty: &TtyCoreData) -> usize { in write_room()
557 return self.core().tty_driver.driver_funcs().write_room(tty); in write_room()
561 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write()
562 return self.core().tty_driver.driver_funcs().write(tty, buf, nr); in write()
566 fn flush_chars(&self, tty: &TtyCoreData) { in flush_chars()
567 self.core().tty_driver.driver_funcs().flush_chars(tty); in flush_chars()
571 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char()
572 return self.core().tty_driver.driver_funcs().put_char(tty, ch); in put_char()
576 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
577 return self.core().tty_driver.driver_funcs().install(driver, tty); in install()
581 fn start(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in start()
582 return self.core().tty_driver.driver_funcs().start(tty); in start()
586 fn stop(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in stop()
587 return self.core().tty_driver.driver_funcs().stop(tty); in stop()
591 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError> { in ioctl()
592 return self.core().tty_driver.driver_funcs().ioctl(tty, cmd, arg); in ioctl()
601 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios()
606 .set_termios(tty, old_termios); in set_termios()
609 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in close()
610 self.core().tty_driver.driver_funcs().close(tty) in close()
613 fn resize(&self, tty: Arc<TtyCore>, winsize: WindowSize) -> Result<(), SystemError> { in resize()
614 self.core.tty_driver.driver_funcs().resize(tty, winsize) in resize()