Searched refs:green (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | multiboot2.rs | 114 multiboot2::FramebufferType::RGB { red, green, blue } => { in early_init_framebuffer_info() 121 scinfo.green_pos = green.position; in early_init_framebuffer_info() 122 scinfo.green_size = green.size; in early_init_framebuffer_info()
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | mod.rs | 247 pub green: u16, field 257 color.green = if col & 2 != 0 { 0xaa } else { 0x00 }; in from_256() 261 color.green = if col & 2 != 0 { 0xff } else { 0x55 }; in from_256() 265 color.green = ((col - 16) / 6 % 6 * 85 / 2) as u16; in from_256() 270 color.green = col; in from_256()
|
H A D | virtual_console.rs | 294 color.green = DEFAULT_GREEN[idx]; in reset_palette() 1069 let mut max = color.red.max(color.green); in csi_m() 1076 if color.green > max / 2 { in csi_m() 1103 | ((color.green as u8 & 0x80) >> 2) in csi_m() 1247 green: self.par[idx + 2] as u16, in t416_color() 1511 self.palette[i].green = self.par[j] as u16; in do_control() 1518 self.palette[i].green = self.par[j] as u16; in do_control()
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 288 mut green: u16, in fb_set_color_register() 305 | ((green as u32 & 0xf800) >> 6) in fb_set_color_register() 309 | ((green as u32 & 0xfc00) >> 5) in fb_set_color_register() 315 green >>= 8; in fb_set_color_register() 318 | ((green as u32) << var.green.offset) in fb_set_color_register() 981 fb_var.green.length = boottime_screen_info.green_size as u32; in vesa_fb_device_init() 985 fb_var.green.offset = boottime_screen_info.green_pos as u32; in vesa_fb_device_init() 990 fb_var.green.offset = 8; in vesa_fb_device_init() 995 fb_var.green.length = fb_var.bits_per_pixel; in vesa_fb_device_init()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | mod.rs | 359 .fb_set_color_register(idx as u16, color.red, color.green, color.blue) in set_color_map() 414 green: u16, in fb_set_color_register() 604 pub green: FbBitfield, field 653 green: Default::default(), in default()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 112 .green in mono_color() 386 col.green = (vc_palette[i].green << 8) | vc_palette[i].green; in con_set_palette()
|