Lines Matching refs:tty

3 use crate::driver::tty::tty_device::TtyDevice;
31 tty: Arc<TtyDevice>, field
36 pub fn new(tty: Arc<TtyDevice>) -> Self { in new()
40 tty, in new()
49 .parse(scancode, &mut self.status, &self.tty); in parse()
76 tty: &Arc<TtyDevice>, in parse()
81 return self.handle_start(scancode, scancode_status, tty); in parse()
84 return self.handle_pause_break(*n, scancode_status, tty); in parse()
87 return self.handle_func0(scancode, scancode_status, tty); in parse()
90 return self.handle_type3(scancode, scancode_status, tty); in parse()
93 return self.handle_prtsc_press(*n, scancode_status, tty) in parse()
96 return self.handle_prtsc_release(*n, scancode_status, tty) in parse()
106 tty: &Arc<TtyDevice>, in handle_start()
118 return TypeOneFSMState::Type3.handle_type3(scancode, scancode_status, tty); in handle_start()
128 tty: &Arc<TtyDevice>, in handle_pause_break()
134 return self.handle_type3(scancode, scancode_status, tty); in handle_pause_break()
138 return self.handle_type3(scancode, scancode_status, tty); in handle_pause_break()
153 tty: &Arc<TtyDevice>, in handle_func0()
217 Self::emit(tty, 127); in handle_func0()
236 Self::emit(tty, 224); in handle_func0()
237 Self::emit(tty, 72); in handle_func0()
244 Self::emit(tty, 224); in handle_func0()
245 Self::emit(tty, 75); in handle_func0()
252 Self::emit(tty, 224); in handle_func0()
253 Self::emit(tty, 80); in handle_func0()
260 Self::emit(tty, 224); in handle_func0()
261 Self::emit(tty, 77); in handle_func0()
272 Self::emit(tty, ch); in handle_func0()
279 Self::emit(tty, '\n' as u8); in handle_func0()
295 tty: &Arc<TtyDevice>, in handle_type3()
364 Self::emit(tty, ch); in handle_type3()
370 fn emit(tty: &Arc<TtyDevice>, ch: u8) { in emit()
372 tty.input(&[ch]).ok(); in emit()
380 tty: &Arc<TtyDevice>, in handle_prtsc_press()
392 return self.handle_type3(scancode, scancode_status, tty); in handle_prtsc_press()
408 tty: &Arc<TtyDevice>, in handle_prtsc_release()
420 return self.handle_type3(scancode, scancode_status, tty); in handle_prtsc_release()