Home
last modified time | relevance | path

Searched refs:green (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/
Dmod.rs63 pub green: u16, field
73 color.green = if col & 2 != 0 { 0xaa } else { 0x00 }; in from_256()
77 color.green = if col & 2 != 0 { 0xff } else { 0x55 }; in from_256()
81 color.green = ((col - 16) / 6 % 6 * 85 / 2) as u16; in from_256()
86 color.green = col; in from_256()
Dvirtual_console.rs295 color.green = DEFAULT_GREEN[idx]; in reset_palette()
1073 let mut max = color.red.max(color.green); in csi_m()
1080 if color.green > max / 2 { in csi_m()
1108 | ((color.green as u8 & 0x80) >> 2) in csi_m()
1252 color.green = self.par[idx + 2] as u16; in t416_color()
1516 self.palette[i].green = self.par[j] as u16; in do_control()
1523 self.palette[i].green = self.par[j] as u16; in do_control()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/
Dvesafb.rs290 mut green: u16, in fb_set_color_register()
307 | ((green as u32 & 0xf800) >> 6) in fb_set_color_register()
311 | ((green as u32 & 0xfc00) >> 5) in fb_set_color_register()
317 green >>= 8; in fb_set_color_register()
320 | ((green as u32) << var.green.offset) in fb_set_color_register()
937 fb_var.green.length = boottime_screen_info.green_size as u32; in vesa_fb_device_init()
941 fb_var.green.offset = boottime_screen_info.green_pos as u32; in vesa_fb_device_init()
946 fb_var.green.offset = 8; in vesa_fb_device_init()
951 fb_var.green.length = fb_var.bits_per_pixel; in vesa_fb_device_init()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/
Dmod.rs344 .fb_set_color_register(idx as u16, color.red, color.green, color.blue) in set_color_map()
398 green: u16, in fb_set_color_register()
588 pub green: FbBitfield, field
637 green: Default::default(), in default()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/
Dframebuffer_console.rs111 .green in mono_color()
382 col.green = (vc_palette[i].green << 8) | vc_palette[i].green; in con_set_palette()
/DragonOS-0.1.9/kernel/src/driver/multiboot2/
Dmultiboot2.h194 uint8_t green; member