Lines Matching refs:lcd

41 static void hd44780_backlight(struct charlcd *lcd, int on)  in hd44780_backlight()  argument
43 struct hd44780 *hd = lcd->drvdata; in hd44780_backlight()
117 static void hd44780_write_cmd_gpio8(struct charlcd *lcd, int cmd) in hd44780_write_cmd_gpio8() argument
119 struct hd44780 *hd = lcd->drvdata; in hd44780_write_cmd_gpio8()
128 static void hd44780_write_data_gpio8(struct charlcd *lcd, int data) in hd44780_write_data_gpio8() argument
130 struct hd44780 *hd = lcd->drvdata; in hd44780_write_data_gpio8()
145 static void hd44780_write_cmd_gpio4(struct charlcd *lcd, int cmd) in hd44780_write_cmd_gpio4() argument
147 struct hd44780 *hd = lcd->drvdata; in hd44780_write_cmd_gpio4()
156 static void hd44780_write_cmd_raw_gpio4(struct charlcd *lcd, int cmd) in hd44780_write_cmd_raw_gpio4() argument
159 struct hd44780 *hd = lcd->drvdata; in hd44780_write_cmd_raw_gpio4()
180 static void hd44780_write_data_gpio4(struct charlcd *lcd, int data) in hd44780_write_data_gpio4() argument
182 struct hd44780 *hd = lcd->drvdata; in hd44780_write_data_gpio4()
201 struct charlcd *lcd; in hd44780_probe() local
221 lcd = charlcd_alloc(sizeof(struct hd44780)); in hd44780_probe()
222 if (!lcd) in hd44780_probe()
225 hd = lcd->drvdata; in hd44780_probe()
265 &lcd->height); in hd44780_probe()
268 ret = device_property_read_u32(dev, "display-width-chars", &lcd->width); in hd44780_probe()
276 if (lcd->height > 2) in hd44780_probe()
277 lcd->bwidth = lcd->width; in hd44780_probe()
280 device_property_read_u32(dev, "internal-buffer-width", &lcd->bwidth); in hd44780_probe()
282 lcd->ifwidth = ifwidth; in hd44780_probe()
283 lcd->ops = ifwidth == 8 ? &hd44780_ops_gpio8 : &hd44780_ops_gpio4; in hd44780_probe()
285 ret = charlcd_register(lcd); in hd44780_probe()
289 platform_set_drvdata(pdev, lcd); in hd44780_probe()
293 kfree(lcd); in hd44780_probe()
299 struct charlcd *lcd = platform_get_drvdata(pdev); in hd44780_remove() local
301 charlcd_unregister(lcd); in hd44780_remove()