Home
last modified time | relevance | path

Searched refs:TtyCore (Results 1 – 12 of 12) sorted by relevance

/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs10 tty_core::{TtyCore, TtyCoreData, TtyFlag},
16 fn open(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in open()
17 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close()
18 fn flush_buffer(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in flush_buffer()
30 tty: Arc<TtyCore>, in read() argument
39 tty: Arc<TtyCore>, in write() argument
44 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError>; in ioctl() argument
49 fn set_termios(&self, tty: Arc<TtyCore>, old: Option<Termios>) -> Result<(), SystemError>; in set_termios() argument
51 fn poll(&self, tty: Arc<TtyCore>) -> Result<usize, SystemError>; in poll()
52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup()
[all …]
H A Dntty.rs13 tty_core::{EchoOperation, TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
54 fn ioctl_helper(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in ioctl_helper() argument
63 return TtyCore::tty_mode_ioctl(tty.clone(), cmd, arg); in ioctl_helper()
125 tty: Weak<TtyCore>,
173 tty: Arc<TtyCore>, in receive_buf_common() argument
237 tty: Arc<TtyCore>, in receive_buf() argument
324 pub fn flush_echoes(&mut self, tty: Arc<TtyCore>) { in flush_echoes() argument
340 tty: Arc<TtyCore>, in receive_buf_standard() argument
403 pub fn receive_special_char(&mut self, mut c: u8, tty: Arc<TtyCore>, lookahead_done: bool) { in receive_special_char() argument
736 pub fn is_flow_ctrl_char(&mut self, tty: Arc<TtyCore>, c: u8, lookahead_done: bool) -> bool { in is_flow_ctrl_char() argument
[all …]
/DragonOS/kernel/src/driver/tty/
H A Dtty_port.rs12 use super::tty_core::TtyCore;
23 tty: Weak<TtyCore>,
25 internal_tty: Weak<TtyCore>,
47 pub fn internal_tty(&self) -> Option<Arc<TtyCore>> { in internal_tty() argument
51 pub fn tty(&self) -> Option<Arc<TtyCore>> { in tty() argument
76 fn setup_internal_tty(&self, tty: Weak<TtyCore>) { in setup_internal_tty() argument
H A Dtty_driver.rs37 tty_core::{TtyCore, TtyCoreData},
132 ttys: SpinLock<HashMap<usize, Arc<TtyCore>>>,
192 pub fn add_tty(&self, tty_core: Arc<TtyCore>) { in add_tty() argument
242 pub fn ttys(&self) -> SpinLockGuard<HashMap<usize, Arc<TtyCore>>> { in ttys() argument
257 fn lookup_tty(&self, index: usize) -> Option<Arc<TtyCore>> { in lookup_tty() argument
268 pub fn standard_install(&self, tty_core: Arc<TtyCore>) -> Result<(), SystemError> { in standard_install()
280 fn driver_install_tty(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in driver_install_tty()
301 pub fn init_tty_device(&self, index: Option<usize>) -> Result<Arc<TtyCore>, SystemError> { in init_tty_device() argument
313 let tty = TtyCore::new(self.self_ref(), idx); in init_tty_device()
341 pub fn open_tty(&self, index: Option<usize>) -> Result<Arc<TtyCore>, SystemError> { in open_tty() argument
[all …]
H A Dtty_core.rs38 pub struct TtyCore { struct
44 impl Drop for TtyCore { argument
52 impl TtyCore { impl
170 pub fn tty_mode_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in tty_mode_ioctl() argument
192 return TtyCore::core_set_termios( in tty_mode_ioctl()
199 return TtyCore::core_set_termios( in tty_mode_ioctl()
212 tty: Arc<TtyCore>, in core_set_termios() argument
244 TtyCore::set_termios_next(tty, tmp_termios)?; in core_set_termios()
248 fn set_termios_next(tty: Arc<TtyCore>, new_termios: Termios) -> Result<(), SystemError> { in set_termios_next() argument
326 link: RwLock<Weak<TtyCore>>,
[all …]
H A Dtty_job_control.rs14 use super::tty_core::{TtyCore, TtyIoctlCmd};
20 pub fn proc_set_tty(tty: Arc<TtyCore>) { in proc_set_tty() argument
35 pub fn tty_check_change(tty: Arc<TtyCore>, sig: Signal) -> Result<(), SystemError> { in tty_check_change() argument
72 pub fn job_ctrl_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in job_ctrl_ioctl() argument
H A Dtty_device.rs47 tty_core::{TtyCore, TtyFlag, TtyIoctlCmd},
585 pub tty: Arc<TtyCore>,
590 pub fn tty(&self) -> Arc<TtyCore> { in tty() argument
/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs7 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
38 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
76 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError> { in ioctl() argument
107 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios() argument
205 ) -> Result<Arc<TtyCore>, SystemError> { in lookup() argument
217 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in close()
232 tty: Arc<TtyCore>, in resize() argument
H A Dmod.rs24 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyPacketStatus},
97 tty: Arc<TtyCore>, in pty_common_install() argument
102 let other_tty = TtyCore::new(other_driver.clone(), core.index()); in pty_common_install()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs25 tty_core::{TtyCore, TtyCoreData},
350 tty: Arc<TtyCore>, in do_install() argument
384 fn ioctl(&self, _tty: Arc<TtyCore>, _cmd: u32, _arg: usize) -> Result<(), SystemError> { in ioctl() argument
388 fn close(&self, _tty: Arc<TtyCore>) -> Result<(), SystemError> { in close()
392 fn resize(&self, tty: Arc<TtyCore>, winsize: WindowSize) -> Result<(), SystemError> { in resize() argument
397 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs30 tty_core::{TtyCore, TtyCoreData},
303 fn do_install(&self, tty: Arc<TtyCore>, vc: &Arc<VirtConsole>) -> Result<(), SystemError> { in do_install() argument
354 fn install(&self, _driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install()
397 fn ioctl(&self, _tty: Arc<TtyCore>, _cmd: u32, _arg: usize) -> Result<(), SystemError> { in ioctl() argument
402 fn close(&self, _tty: Arc<TtyCore>) -> Result<(), SystemError> { in close()
408 _tty: Arc<TtyCore>, in resize() argument
/DragonOS/kernel/src/process/
H A Dmod.rs28 driver::tty::tty_core::TtyCore,
1531 tty: Option<Arc<TtyCore>>,
1559 pub fn tty(&self) -> Option<Arc<TtyCore>> { in tty() argument
1563 pub fn set_tty(&mut self, tty: Option<Arc<TtyCore>>) { in set_tty() argument