Lines Matching full:lcd
9 /* LCD commands */
39 int hd44780_common_print(struct charlcd *lcd, int c) in hd44780_common_print() argument
41 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_print()
43 if (lcd->addr.x < hdc->bwidth) { in hd44780_common_print()
52 int hd44780_common_gotoxy(struct charlcd *lcd, unsigned int x, unsigned int y) in hd44780_common_gotoxy() argument
54 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_gotoxy()
71 int hd44780_common_home(struct charlcd *lcd) in hd44780_common_home() argument
73 return hd44780_common_gotoxy(lcd, 0, 0); in hd44780_common_home()
78 int hd44780_common_clear_display(struct charlcd *lcd) in hd44780_common_clear_display() argument
80 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_clear_display()
93 return hd44780_common_home(lcd); in hd44780_common_clear_display()
97 int hd44780_common_init_display(struct charlcd *lcd) in hd44780_common_init_display() argument
99 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_init_display()
107 hdc->hd44780_common_flags = ((lcd->height > 1) ? LCD_FLAG_N : 0) | in hd44780_common_init_display()
114 * the LCD is in 8-bit mode afterwards in hd44780_common_init_display()
159 charlcd_backlight(lcd, in hd44780_common_init_display()
167 hd44780_common_clear_display(lcd); in hd44780_common_init_display()
172 int hd44780_common_shift_cursor(struct charlcd *lcd, enum charlcd_shift_dir dir) in hd44780_common_shift_cursor() argument
174 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_shift_cursor()
178 if (lcd->addr.x < hdc->bwidth) in hd44780_common_shift_cursor()
182 if (lcd->addr.x < (hdc->bwidth - 1)) in hd44780_common_shift_cursor()
191 int hd44780_common_shift_display(struct charlcd *lcd, in hd44780_common_shift_display() argument
194 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_shift_display()
218 int hd44780_common_display(struct charlcd *lcd, enum charlcd_onoff on) in hd44780_common_display() argument
220 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_display()
232 int hd44780_common_cursor(struct charlcd *lcd, enum charlcd_onoff on) in hd44780_common_cursor() argument
234 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_cursor()
246 int hd44780_common_blink(struct charlcd *lcd, enum charlcd_onoff on) in hd44780_common_blink() argument
248 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_blink()
271 int hd44780_common_fontsize(struct charlcd *lcd, enum charlcd_fontsize size) in hd44780_common_fontsize() argument
273 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_fontsize()
285 int hd44780_common_lines(struct charlcd *lcd, enum charlcd_lines lines) in hd44780_common_lines() argument
287 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_lines()
299 int hd44780_common_redefine_char(struct charlcd *lcd, char *esc) in hd44780_common_redefine_char() argument
309 struct hd44780_common *hdc = lcd->drvdata; in hd44780_common_redefine_char()
349 lcd->ops->gotoxy(lcd, lcd->addr.x, lcd->addr.y); in hd44780_common_redefine_char()