Lines Matching refs:tty
21 tty::{
350 tty: Arc<TtyCore>, in do_install()
353 driver.standard_install(tty.clone())?; in do_install()
354 vc.port().setup_internal_tty(Arc::downgrade(&tty)); in do_install()
355 tty.set_port(vc.port()); in do_install()
367 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write()
368 let index = tty.index(); in write()
369 if tty.index() >= unsafe { PIO_PORTS.len() } { in write()
380 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char()
381 self.write(tty, &[ch], 1).map(|_| ()) in put_char()
392 fn resize(&self, tty: Arc<TtyCore>, winsize: WindowSize) -> Result<(), SystemError> { in resize()
393 *tty.core().window_size_write() = winsize; in resize()
397 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
398 if tty.core().index() >= unsafe { PIO_PORTS.len() } { in install()
402 *tty.core().window_size_write() = WindowSize::DEFAULT; in install()
407 Some(tty.core().window_size().row.into()), in install()
408 Some(tty.core().window_size().col.into()), in install()
414 self.do_install(driver, tty, vc.clone()).inspect_err(|_| { in install()