Lines Matching refs:tty
97 tty: Arc<TtyCore>, in pty_common_install()
100 let core = tty.core(); in pty_common_install()
119 driver.ttys().insert(core.index(), tty.clone()); in pty_common_install()
126 o_core.set_link(Arc::downgrade(&tty)); in pty_common_install()
129 port1.setup_internal_tty(Arc::downgrade(&tty)); in pty_common_install()
131 tty.set_port(port1); in pty_common_install()
173 pub fn pty_set_lock(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_set_lock()
178 tty.flags_write().insert(TtyFlag::PTY_LOCK); in pty_set_lock()
180 tty.flags_write().remove(TtyFlag::PTY_LOCK); in pty_set_lock()
186 pub fn pty_get_lock(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_get_lock()
189 user_writer.copy_one_to_user(&tty.flags().contains(TtyFlag::PTY_LOCK), 0)?; in pty_get_lock()
193 pub fn pty_set_packet_mode(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_set_packet_mode()
197 let mut ctrl = tty.contorl_info_irqsave(); in pty_set_packet_mode()
200 tty.link().unwrap().core().contorl_info_irqsave().pktstatus = in pty_set_packet_mode()
210 pub fn pty_get_packet_mode(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_get_packet_mode()
213 user_writer.copy_one_to_user(&tty.contorl_info_irqsave().packet, 0)?; in pty_get_packet_mode()