Lines Matching refs:tty
152 let tty = driver.open_tty(Some(index))?; in open() localVariable
156 tty: tty.clone(), in open()
160 let ret = tty.open(tty.core()); in open()
168 let driver = tty.core().driver(); in open()
176 let pcb_tty = pcb.sig_info_irqsave().tty(); in open()
177 if pcb_tty.is_none() && tty.core().contorl_info_irqsave().session.is_none() { in open()
178 TtyJobCtrlManager::proc_set_tty(tty); in open()
192 let (tty, mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in read_at()
193 (tty_priv.tty(), tty_priv.mode) in read_at()
200 let ld = tty.ldisc(); in read_at()
205 size = ld.read(tty.clone(), buf, size, &mut cookie, offset, mode)?; in read_at()
235 let (tty, mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in write_at()
236 (tty_priv.tty(), tty_priv.mode) in write_at()
241 let ld = tty.ldisc(); in write_at()
242 let core = tty.core(); in write_at()
257 let ret = ld.write(tty.clone(), &buf[written..], size, mode)?; in write_at()
302 let (tty, _mode) = if let FilePrivateData::Tty(tty_priv) = &*data { in close()
303 (tty_priv.tty(), tty_priv.mode) in close()
308 tty.close(tty.clone()) in close()
331 let (tty, _) = if let FilePrivateData::Tty(tty_priv) = data { in kernel_ioctl()
332 (tty_priv.tty(), tty_priv.mode) in kernel_ioctl()
337 let core = tty.core(); in kernel_ioctl()
345 let (tty, _) = if let FilePrivateData::Tty(tty_priv) = data { in ioctl()
346 (tty_priv.tty(), tty_priv.mode) in ioctl()
357 TtyJobCtrlManager::tty_check_change(tty.clone(), Signal::SIGTTOU)?; in ioctl()
367 let core = tty.core(); in ioctl()
391 let ret = tty.resize(tty.clone(), *user_winsize); in ioctl()
396 return tty.tty_do_resize(*user_winsize).map(|_| 0); in ioctl()
399 _ => match TtyJobCtrlManager::job_ctrl_ioctl(tty.clone(), cmd, arg) { in ioctl()
411 match tty.ioctl(tty.clone(), cmd, arg) { in ioctl()
421 tty.ldisc().ioctl(tty, cmd, arg)?; in ioctl()
427 let (tty, _) = if let FilePrivateData::Tty(tty_priv) = private_data { in poll()
428 (tty_priv.tty.clone(), tty_priv.mode) in poll()
433 tty.ldisc().poll(tty) in poll()
585 pub tty: Arc<TtyCore>, field
590 pub fn tty(&self) -> Arc<TtyCore> { in tty() method
591 self.tty.clone() in tty()