Lines Matching refs:tty
25 tty::tty_port::TtyPortState,
269 let tty = tty_core.core(); in standard_install() localVariable
270 tty.init_termios(); in standard_install()
273 tty.add_count(); in standard_install()
275 self.ttys.lock().insert(tty.index(), tty_core); in standard_install()
280 fn driver_install_tty(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in driver_install_tty()
281 let res = tty.install(self.self_ref(), tty.clone()); in driver_install_tty()
285 return self.standard_install(tty); in driver_install_tty()
289 tty.core().name(), in driver_install_tty()
296 self.add_tty(tty); in driver_install_tty()
313 let tty = TtyCore::new(self.self_ref(), idx); in init_tty_device() localVariable
315 self.driver_install_tty(tty.clone())?; in init_tty_device()
317 let core = tty.core(); in init_tty_device()
321 ports[core.index()].setup_internal_tty(Arc::downgrade(&tty)); in init_tty_device()
322 tty.set_port(ports[core.index()].clone()); in init_tty_device()
325 TtyLdiscManager::ldisc_setup(tty.clone(), tty.core().link())?; in init_tty_device()
337 Ok(tty) in init_tty_device()
342 let mut tty: Option<Arc<TtyCore>> = None; in open_tty() localVariable
353 tty = Some(t); in open_tty()
356 if tty.is_none() { in open_tty()
357 tty = Some(self.init_tty_device(index)?); in open_tty()
359 let tty = tty.ok_or(SystemError::ENODEV)?; in open_tty() localVariable
361 return Ok(tty); in open_tty()
464 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError>; in open()
472 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError>; in write()
474 fn flush_chars(&self, tty: &TtyCoreData); in flush_chars()
492 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError>; in ioctl()
510 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close()