Home
last modified time | relevance | path

Searched refs:TtyCoreData (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs7 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
42 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in open()
46 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write() argument
56 fn write_room(&self, tty: &TtyCoreData) -> usize { in write_room()
65 fn flush_buffer(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in flush_buffer()
161 fn start(&self, core: &TtyCoreData) -> Result<(), SystemError> { in start()
179 fn stop(&self, core: &TtyCoreData) -> Result<(), SystemError> { in stop()
197 fn flush_chars(&self, _tty: &TtyCoreData) { in flush_chars() argument
H A Dmod.rs24 tty_core::{TtyCore, TtyCoreData, TtyFlag, TtyPacketStatus},
142 pub fn pty_common_open(core: &TtyCoreData) -> Result<(), SystemError> { in pty_common_open()
173 pub fn pty_set_lock(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_set_lock() argument
186 pub fn pty_get_lock(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_get_lock() argument
193 pub fn pty_set_packet_mode(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_set_packet_mode() argument
210 pub fn pty_get_packet_mode(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_get_packet_mode() argument
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs39 core: TtyCoreData,
59 let core = TtyCoreData { in new()
89 pub fn core(&self) -> &TtyCoreData { in core() argument
302 pub struct TtyCoreData { struct
335 impl TtyCoreData { argument
551 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in open()
556 fn write_room(&self, tty: &TtyCoreData) -> usize { in write_room()
561 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write() argument
566 fn flush_chars(&self, tty: &TtyCoreData) { in flush_chars() argument
571 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() argument
[all …]
H A Dtty_driver.rs37 tty_core::{TtyCore, TtyCoreData},
464 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError>; in open()
467 fn write_room(&self, _tty: &TtyCoreData) -> usize { in write_room()
472 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError>; in write() argument
474 fn flush_chars(&self, tty: &TtyCoreData); in flush_chars() argument
476 fn put_char(&self, _tty: &TtyCoreData, _ch: u8) -> Result<(), SystemError> { in put_char() argument
480 fn start(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in start()
484 fn stop(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in stop()
488 fn flush_buffer(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in flush_buffer()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs10 tty_core::{TtyCore, TtyCoreData, TtyFlag},
73 fn write_wakeup(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in write_wakeup()
H A Dntty.rs13 tty_core::{EchoOperation, TtyCore, TtyCoreData, TtyFlag, TtyIoctlCmd, TtyPacketStatus},
1162 core: &TtyCoreData, in process_output_block() argument
1527 fn packet_mode_flush(&self, tty: &TtyCoreData) { in packet_mode_flush() argument
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs30 tty_core::{TtyCore, TtyCoreData},
365 fn open(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in open()
369 fn write_room(&self, _tty: &TtyCoreData) -> usize { in write_room()
375 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write() argument
386 fn flush_chars(&self, tty: &TtyCoreData) { in flush_chars() argument
392 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() argument
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs25 tty_core::{TtyCore, TtyCoreData},
363 fn open(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in open()
367 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write() argument
378 fn flush_chars(&self, _tty: &TtyCoreData) {} in flush_chars() argument
380 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() argument