Lines Matching refs:core
1 use core::{
39 core: TtyCoreData, field
46 if self.core.driver().tty_driver_sub_type() == TtyDriverSubType::PtySlave { in drop()
47 ptm_driver().ttys().remove(&self.core().index); in drop()
59 let core = TtyCoreData { in new() localVariable
81 core, in new()
89 pub fn core(&self) -> &TtyCoreData { in core() method
90 return &self.core; in core()
94 self.core.privete_fields.lock().clone() in private_fields()
98 *self.core.privete_fields.lock() = Some(fields); in set_private_fields()
107 self.core in write_to_core()
110 .write(self.core(), buf, nr) in write_to_core()
114 let tty_core = self.core(); in reopen()
136 *self.core.port.write() = Some(port); in set_port()
140 let mut flow = self.core.flow.lock_irqsave(); in tty_start()
146 let _ = self.start(self.core()); in tty_start()
151 let mut flow = self.core.flow.lock_irqsave(); in tty_stop()
157 let _ = self.stop(self.core()); in tty_stop()
161 if self.core.flags().contains(TtyFlag::DO_WRITE_WAKEUP) { in tty_wakeup()
162 let _ = self.ldisc().write_wakeup(self.core()); in tty_wakeup()
165 self.core() in tty_wakeup()
171 let core = tty.core(); in tty_mode_ioctl() localVariable
172 let real_tty = if core.driver().tty_driver_type() == TtyDriverType::Pty in tty_mode_ioctl()
173 && core.driver().tty_driver_sub_type() == TtyDriverSubType::PtyMaster in tty_mode_ioctl()
175 core.link().unwrap() in tty_mode_ioctl()
181 let termios = PosixTermios::from_kernel_termios(*real_tty.core.termios()); in tty_mode_ioctl()
184 core::mem::size_of::<PosixTermios>(), in tty_mode_ioctl()
218 let mut tmp_termios = *tty.core().termios(); in core_set_termios()
225 core::mem::size_of::<PosixTermios>(), in core_set_termios()
249 let mut termios = tty.core().termios_write(); in set_termios_next()
258 let mut termios = tty.core().termios_write(); in set_termios_next()
276 *self.core.window_size_write() = windowsize; in tty_do_resize()
399 .fetch_add(1, core::sync::atomic::Ordering::SeqCst); in add_count()
434 self.closing.load(core::sync::atomic::Ordering::SeqCst) in is_closing()
552 return self.core().tty_driver.driver_funcs().open(tty); in open()
557 return self.core().tty_driver.driver_funcs().write_room(tty); in write_room()
562 return self.core().tty_driver.driver_funcs().write(tty, buf, nr); in write()
567 self.core().tty_driver.driver_funcs().flush_chars(tty); in flush_chars()
572 return self.core().tty_driver.driver_funcs().put_char(tty, ch); in put_char()
577 return self.core().tty_driver.driver_funcs().install(driver, tty); in install()
582 return self.core().tty_driver.driver_funcs().start(tty); in start()
587 return self.core().tty_driver.driver_funcs().stop(tty); in stop()
592 return self.core().tty_driver.driver_funcs().ioctl(tty, cmd, arg); in ioctl()
597 return self.core().tty_driver.driver_funcs().chars_in_buffer(); in chars_in_buffer()
603 .core() in set_termios()
610 self.core().tty_driver.driver_funcs().close(tty) in close()
614 self.core.tty_driver.driver_funcs().resize(tty, winsize) in resize()