Lines Matching refs:hdc
43 struct hd44780_common *hdc = lcd->drvdata; in hd44780_backlight() local
44 struct hd44780 *hd = hdc->hd44780; in hd44780_backlight()
106 static void hd44780_write_cmd_gpio8(struct hd44780_common *hdc, int cmd) in hd44780_write_cmd_gpio8() argument
108 struct hd44780 *hd = hdc->hd44780; in hd44780_write_cmd_gpio8()
117 static void hd44780_write_data_gpio8(struct hd44780_common *hdc, int data) in hd44780_write_data_gpio8() argument
119 struct hd44780 *hd = hdc->hd44780; in hd44780_write_data_gpio8()
145 static void hd44780_write_cmd_gpio4(struct hd44780_common *hdc, int cmd) in hd44780_write_cmd_gpio4() argument
147 struct hd44780 *hd = hdc->hd44780; in hd44780_write_cmd_gpio4()
156 static void hd44780_write_cmd_raw_gpio4(struct hd44780_common *hdc, int cmd) in hd44780_write_cmd_raw_gpio4() argument
159 struct hd44780 *hd = hdc->hd44780; in hd44780_write_cmd_raw_gpio4()
173 static void hd44780_write_data_gpio4(struct hd44780_common *hdc, int data) in hd44780_write_data_gpio4() argument
175 struct hd44780 *hd = hdc->hd44780; in hd44780_write_data_gpio4()
205 struct hd44780_common *hdc; in hd44780_probe() local
225 hdc = hd44780_common_alloc(); in hd44780_probe()
226 if (!hdc) in hd44780_probe()
237 hdc->hd44780 = hd; in hd44780_probe()
238 lcd->drvdata = hdc; in hd44780_probe()
289 hdc->bwidth = lcd->width; in hd44780_probe()
292 device_property_read_u32(dev, "internal-buffer-width", &hdc->bwidth); in hd44780_probe()
294 hdc->ifwidth = ifwidth; in hd44780_probe()
297 hdc->write_data = hd44780_write_data_gpio8; in hd44780_probe()
298 hdc->write_cmd = hd44780_write_cmd_gpio8; in hd44780_probe()
301 hdc->write_data = hd44780_write_data_gpio4; in hd44780_probe()
302 hdc->write_cmd = hd44780_write_cmd_gpio4; in hd44780_probe()
303 hdc->write_cmd_raw4 = hd44780_write_cmd_raw_gpio4; in hd44780_probe()
318 kfree(hdc); in hd44780_probe()
325 struct hd44780_common *hdc = lcd->drvdata; in hd44780_remove() local
328 kfree(hdc->hd44780); in hd44780_remove()