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