Home
last modified time | relevance | path

Searched refs:vc_data (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs48 fn get_color(&self, vc_data: &VirtualConsoleData, c: u16, is_fg: bool) -> u32 { in get_color()
56 let fg_shift = if vc_data.hi_font_mask != 0 { 9 } else { 8 }; in get_color()
59 let bg_shift = if vc_data.hi_font_mask != 0 { 13 } else { 12 }; in get_color()
123 vc_data: &VirtualConsoleData, in bit_put_string()
130 let charmask = if vc_data.hi_font_mask != 0 { in bit_put_string()
139 let byte_width = vc_data.font.width as usize / 8; in bit_put_string()
140 let font_height = vc_data.font.height as usize; in bit_put_string()
150 let src = &vc_data.font.data[font_offset..font_offset_end]; in bit_put_string()
155 attr.update_attr(&mut dst, src, vc_data) in bit_put_string()
178 vc_data: &mut VirtualConsoleData, in con_init()
[all …]
H A Dmod.rs381 vc_data: &VirtualConsoleData, in bmove()
399 vc_data: &VirtualConsoleData, in clear()
416 vc_data: &VirtualConsoleData, in put_string()
425 fn cursor(&self, vc_data: &VirtualConsoleData, op: CursorOperation, fg: u32, bg: u32); in cursor()
477 pub fn update_attr(&self, dst: &mut [u8], src: &[u8], vc_data: &VirtualConsoleData) { in update_attr()
478 let mut offset = if vc_data.font.height < 10 { 1 } else { 2 } as usize; in update_attr()
480 let width = (vc_data.font.width + 7) / 8; in update_attr()
481 let cellsize = (vc_data.font.height * width) as usize; in update_attr()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs68 vc_data: Option<Arc<SpinLock<VirtualConsoleData>>>, field
79 pub fn new(vc_data: Option<Arc<SpinLock<VirtualConsoleData>>>) -> Arc<Self> { in new()
81 vc_data, in new()
88 pub fn vc_data(&self) -> Option<Arc<SpinLock<VirtualConsoleData>>> { in vc_data() method
89 self.vc_data.clone() in vc_data()
169 if let Some(vc_data) = vc.vc_data.as_ref() { in alloc()
170 vc_data.lock().vc_index = index; in alloc()
306 let binding = vc.vc_data().unwrap(); in do_install()
307 let mut vc_data = binding.lock(); in do_install() localVariable
309 self.console.con_init(vc, &mut vc_data, true)?; in do_install()
[all …]
/DragonOS/kernel/src/driver/tty/
H A Dconsole.rs15 vc_data: &mut VirtualConsoleData, in con_init()
33 vc_data: &mut VirtualConsoleData, in con_clear()
48 vc_data: &VirtualConsoleData, in con_putc()
63 vc_data: &VirtualConsoleData, in con_putcs()
85 fn con_cursor(&self, vc_data: &VirtualConsoleData, op: CursorOperation); in con_cursor()
116 vc_data: &VirtualConsoleData, in con_set_palette()
128 vc_data: &mut VirtualConsoleData, in con_scroll()
H A Dtty_core.rs438 pub fn vc_data(&self) -> Option<Arc<SpinLock<VirtualConsoleData>>> { in vc_data() method
439 vc_manager().get(self.vc_index()?).unwrap().vc_data() in vc_data()
499 if let Some(vc_data) = self.vc_data() { in do_write()
500 let mut vc_data_guard = vc_data.lock_irqsave(); in do_write()
/DragonOS/kernel/src/driver/video/console/
H A Ddummycon.rs58 vc_data: &mut VirtualConsoleData, in con_init()
61 vc_data.color_mode = true; in con_init()
64 vc_data.cols = Self::COLUNMS; in con_init()
65 vc_data.rows = Self::ROWS; in con_init()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs403 let vc_data = Arc::new(SpinLock::new(VirtualConsoleData::new(usize::MAX))); in install() localVariable
404 let mut vc_data_guard = vc_data.lock_irqsave(); in install()
412 let vc = VirtConsole::new(Some(vc_data)); in install()