• Home
  • Raw
  • Download

Lines Matching +full:0 +full:x1b

31 #define LCD_FLAG_B		0x0004	/* Blink on */
32 #define LCD_FLAG_C 0x0008 /* Cursor on */
33 #define LCD_FLAG_D 0x0010 /* Display on */
34 #define LCD_FLAG_F 0x0020 /* Large font mode */
35 #define LCD_FLAG_N 0x0040 /* 2-rows mode */
36 #define LCD_FLAG_L 0x0080 /* Backlight enabled */
39 #define LCD_CMD_DISPLAY_CLEAR 0x01 /* Clear entire display */
41 #define LCD_CMD_ENTRY_MODE 0x04 /* Set entry mode */
42 #define LCD_CMD_CURSOR_INC 0x02 /* Increment cursor */
44 #define LCD_CMD_DISPLAY_CTRL 0x08 /* Display control */
45 #define LCD_CMD_DISPLAY_ON 0x04 /* Set display on */
46 #define LCD_CMD_CURSOR_ON 0x02 /* Set cursor on */
47 #define LCD_CMD_BLINK_ON 0x01 /* Set blink on */
49 #define LCD_CMD_SHIFT 0x10 /* Shift cursor/display */
50 #define LCD_CMD_DISPLAY_SHIFT 0x08 /* Shift display instead of cursor */
51 #define LCD_CMD_SHIFT_RIGHT 0x04 /* Shift display/cursor to the right */
53 #define LCD_CMD_FUNCTION_SET 0x20 /* Set function */
54 #define LCD_CMD_DATA_LEN_8BITS 0x10 /* Set data length to 8 bits */
55 #define LCD_CMD_TWO_LINES 0x08 /* Set to two display lines */
56 #define LCD_CMD_FONT_5X10_DOTS 0x04 /* Set char font to 5x10 dots */
58 #define LCD_CMD_SET_CGRAM_ADDR 0x40 /* Set char generator RAM address */
60 #define LCD_CMD_SET_DDRAM_ADDR 0x80 /* Set display data RAM address */
127 priv->lcd.ops->backlight(&priv->lcd, 0); in charlcd_bl_off()
173 priv->addr.x = 0; in charlcd_home()
174 priv->addr.y = 0; in charlcd_home()
203 for (pos = 0; pos < min(2, lcd->height) * lcd->hwidth; pos++) in charlcd_clear_fast()
215 priv->addr.x = 0; in charlcd_clear_display()
216 priv->addr.y = 0; in charlcd_clear_display()
230 priv->flags = ((lcd->height > 1) ? LCD_FLAG_N : 0) | LCD_FLAG_D | in charlcd_init_display()
262 ((lcd->ifwidth == 8) ? LCD_CMD_DATA_LEN_8BITS : 0) | in charlcd_init_display()
263 ((priv->flags & LCD_FLAG_F) ? LCD_CMD_FONT_5X10_DOTS : 0) | in charlcd_init_display()
264 ((priv->flags & LCD_FLAG_N) ? LCD_CMD_TWO_LINES : 0)); in charlcd_init_display()
273 ((priv->flags & LCD_FLAG_D) ? LCD_CMD_DISPLAY_ON : 0) | in charlcd_init_display()
274 ((priv->flags & LCD_FLAG_C) ? LCD_CMD_CURSOR_ON : 0) | in charlcd_init_display()
275 ((priv->flags & LCD_FLAG_B) ? LCD_CMD_BLINK_ON : 0)); in charlcd_init_display()
277 charlcd_backlight(lcd, (priv->flags & LCD_FLAG_L) ? 1 : 0); in charlcd_init_display()
285 return 0; in charlcd_init_display()
290 * any number of subcommands of the form "(x|y)[0-9]+".
354 int processed = 0; in handle_lcd_special_code()
414 if (priv->addr.x > 0) { in handle_lcd_special_code()
458 /* Generator : LGcxxxxx...xx; must have <c> between '0' in handle_lcd_special_code()
478 cgaddr = *(esc++) - '0'; in handle_lcd_special_code()
484 cgoffset = 0; in handle_lcd_special_code()
485 shift = 0; in handle_lcd_special_code()
486 value = 0; in handle_lcd_special_code()
493 if (half < 0) in handle_lcd_special_code()
497 if (shift == 0) { in handle_lcd_special_code()
499 value = 0; in handle_lcd_special_code()
504 for (addr = 0; addr < cgoffset; addr++) in handle_lcd_special_code()
537 ((priv->flags & LCD_FLAG_D) ? LCD_CMD_DISPLAY_ON : 0) | in handle_lcd_special_code()
538 ((priv->flags & LCD_FLAG_C) ? LCD_CMD_CURSOR_ON : 0) | in handle_lcd_special_code()
539 ((priv->flags & LCD_FLAG_B) ? LCD_CMD_BLINK_ON : 0)); in handle_lcd_special_code()
544 ((lcd->ifwidth == 8) ? LCD_CMD_DATA_LEN_8BITS : 0) | in handle_lcd_special_code()
545 ((priv->flags & LCD_FLAG_F) ? LCD_CMD_FONT_5X10_DOTS : 0) | in handle_lcd_special_code()
546 ((priv->flags & LCD_FLAG_N) ? LCD_CMD_TWO_LINES : 0)); in handle_lcd_special_code()
559 if ((c != '\n') && priv->esc_seq.len >= 0) { in charlcd_write_char()
562 priv->esc_seq.buf[priv->esc_seq.len] = '\0'; in charlcd_write_char()
570 priv->esc_seq.len = 0; in charlcd_write_char()
571 priv->esc_seq.buf[priv->esc_seq.len] = '\0'; in charlcd_write_char()
575 if (priv->addr.x > 0) { in charlcd_write_char()
601 priv->addr.x = 0; in charlcd_write_char()
607 priv->addr.x = 0; in charlcd_write_char()
626 int processed = 0; in charlcd_write_char()
639 (priv->esc_seq.buf[0] == '[') && in charlcd_write_char()
662 for (; count-- > 0; (*ppos)++, tmp++) { in charlcd_write()
663 if (!in_interrupt() && (((count + 1) & 0x1f) == 0)) in charlcd_write()
706 return 0; in charlcd_release()
727 for (; count-- > 0; tmp++) { in charlcd_puts()
728 if (!in_interrupt() && (((count + 1) & 0x1f) == 0)) in charlcd_puts()
746 #define LCD_INIT_BL "\x1b[L+"
748 #define LCD_INIT_BL "\x1b[L*"
750 #define LCD_INIT_BL "\x1b[L-"
774 charlcd_puts(lcd, "\x1b[Lc\x1b[Lb" LCD_INIT_BL LCD_INIT_TEXT); in charlcd_init()
779 return 0; in charlcd_init()
817 "\x0cReloading\nSystem...\x1b[Lc\x1b[Lb\x1b[L+"); in panel_notify_sys()
820 charlcd_puts(lcd, "\x0cSystem Halted.\x1b[Lc\x1b[Lb\x1b[L+"); in panel_notify_sys()
823 charlcd_puts(lcd, "\x0cPower off.\x1b[Lc\x1b[Lb\x1b[L+"); in panel_notify_sys()
834 0
851 return 0; in charlcd_register()
860 charlcd_puts(lcd, "\x0cLCD driver unloaded.\x1b[Lc\x1b[Lb\x1b[L-"); in charlcd_unregister()
865 priv->lcd.ops->backlight(&priv->lcd, 0); in charlcd_unregister()
868 return 0; in charlcd_unregister()