Lines Matching defs:hdc
726 static void lcd_write_cmd_s(struct hd44780_common *hdc, int cmd)
737 static void lcd_write_data_s(struct hd44780_common *hdc, int data)
748 static void lcd_write_cmd_p8(struct hd44780_common *hdc, int cmd)
770 static void lcd_write_data_p8(struct hd44780_common *hdc, int data)
792 static void lcd_write_cmd_tilcd(struct hd44780_common *hdc, int cmd)
802 static void lcd_write_data_tilcd(struct hd44780_common *hdc, int data)
832 struct hd44780_common *hdc;
834 hdc = hd44780_common_alloc();
835 if (!hdc)
840 kfree(hdc);
844 hdc->hd44780 = &lcd;
845 charlcd->drvdata = hdc;
853 hdc->bwidth = lcd_bwidth;
854 hdc->hwidth = lcd_hwidth;
865 hdc->bwidth = 40;
866 hdc->hwidth = 64;
878 hdc->bwidth = 40;
879 hdc->hwidth = 16;
891 hdc->bwidth = 40;
892 hdc->hwidth = 64;
910 hdc->bwidth = 40;
911 hdc->hwidth = 64;
922 hdc->bwidth = lcd_bwidth;
924 hdc->hwidth = lcd_hwidth;
945 if (hdc->bwidth <= 0)
946 hdc->bwidth = DEFAULT_LCD_BWIDTH;
947 if (hdc->hwidth <= 0)
948 hdc->hwidth = DEFAULT_LCD_HWIDTH;
954 hdc->write_data = lcd_write_data_s;
955 hdc->write_cmd = lcd_write_cmd_s;
964 hdc->write_data = lcd_write_data_p8;
965 hdc->write_cmd = lcd_write_cmd_p8;
975 hdc->write_data = lcd_write_data_tilcd;
976 hdc->write_cmd = lcd_write_cmd_tilcd;