lcd 61 arch/arm/mach-mmp/clock-pxa168.c static APMU_CLK(lcd, LCD, 0x7f, 312000000); lcd 43 arch/arm/mach-omap1/fb.c omapfb_config.lcd = *config; lcd 335 arch/arm/mach-pxa/palm27x.c void __init palm27x_pwm_init(int bl, int lcd) lcd 338 arch/arm/mach-pxa/palm27x.c palm_lcd_power = lcd; lcd 59 arch/arm/mach-pxa/palm27x.h extern void __init palm27x_pwm_init(int bl, int lcd); lcd 61 arch/arm/mach-pxa/palm27x.h static inline void palm27x_pwm_init(int bl, int lcd) {} lcd 182 drivers/acpi/acpi_video.c u8 lcd:1; lcd 1186 drivers/acpi/acpi_video.c data->flags.lcd = 1; lcd 1203 drivers/acpi/acpi_video.c data->flags.lcd = 1; lcd 1492 drivers/acpi/acpi_video.c if (!video_device->flags.lcd) lcd 1843 drivers/acpi/acpi_video.c return dev->flags.lcd; lcd 78 drivers/auxdisplay/arm-charlcd.c struct charlcd *lcd = data; lcd 81 drivers/auxdisplay/arm-charlcd.c status = readl(lcd->virtbase + CHAR_STAT) & 0x01; lcd 83 drivers/auxdisplay/arm-charlcd.c writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); lcd 85 drivers/auxdisplay/arm-charlcd.c complete(&lcd->complete); lcd 87 drivers/auxdisplay/arm-charlcd.c dev_info(lcd->dev, "Spurious IRQ (%02x)\n", status); lcd 92 drivers/auxdisplay/arm-charlcd.c static void charlcd_wait_complete_irq(struct charlcd *lcd) lcd 96 drivers/auxdisplay/arm-charlcd.c ret = wait_for_completion_interruptible_timeout(&lcd->complete, lcd 99 drivers/auxdisplay/arm-charlcd.c writel(0x00, lcd->virtbase + CHAR_MASK); lcd 102 drivers/auxdisplay/arm-charlcd.c dev_err(lcd->dev, lcd 109 drivers/auxdisplay/arm-charlcd.c dev_err(lcd->dev, "charlcd controller timed out " lcd 115 drivers/auxdisplay/arm-charlcd.c static u8 charlcd_4bit_read_char(struct charlcd *lcd) lcd 122 drivers/auxdisplay/arm-charlcd.c if (lcd->irq >= 0) lcd 123 drivers/auxdisplay/arm-charlcd.c charlcd_wait_complete_irq(lcd); lcd 129 drivers/auxdisplay/arm-charlcd.c val = readl(lcd->virtbase + CHAR_RAW); lcd 133 drivers/auxdisplay/arm-charlcd.c writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); lcd 138 drivers/auxdisplay/arm-charlcd.c data = readl(lcd->virtbase + CHAR_RD) & 0xf0; lcd 148 drivers/auxdisplay/arm-charlcd.c val = readl(lcd->virtbase + CHAR_RAW); lcd 151 drivers/auxdisplay/arm-charlcd.c writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); lcd 155 drivers/auxdisplay/arm-charlcd.c data |= (readl(lcd->virtbase + CHAR_RD) >> 4) & 0x0f; lcd 160 drivers/auxdisplay/arm-charlcd.c static bool charlcd_4bit_read_bf(struct charlcd *lcd) lcd 162 drivers/auxdisplay/arm-charlcd.c if (lcd->irq >= 0) { lcd 167 drivers/auxdisplay/arm-charlcd.c writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); lcd 168 drivers/auxdisplay/arm-charlcd.c init_completion(&lcd->complete); lcd 169 drivers/auxdisplay/arm-charlcd.c writel(0x01, lcd->virtbase + CHAR_MASK); lcd 171 drivers/auxdisplay/arm-charlcd.c readl(lcd->virtbase + CHAR_COM); lcd 172 drivers/auxdisplay/arm-charlcd.c return charlcd_4bit_read_char(lcd) & HD_BUSY_FLAG ? true : false; lcd 175 drivers/auxdisplay/arm-charlcd.c static void charlcd_4bit_wait_busy(struct charlcd *lcd) lcd 180 drivers/auxdisplay/arm-charlcd.c while (charlcd_4bit_read_bf(lcd) && retries) lcd 183 drivers/auxdisplay/arm-charlcd.c dev_err(lcd->dev, "timeout waiting for busyflag\n"); lcd 186 drivers/auxdisplay/arm-charlcd.c static void charlcd_4bit_command(struct charlcd *lcd, u8 cmd) lcd 191 drivers/auxdisplay/arm-charlcd.c writel(cmdhi, lcd->virtbase + CHAR_COM); lcd 193 drivers/auxdisplay/arm-charlcd.c writel(cmdlo, lcd->virtbase + CHAR_COM); lcd 194 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_wait_busy(lcd); lcd 197 drivers/auxdisplay/arm-charlcd.c static void charlcd_4bit_char(struct charlcd *lcd, u8 ch) lcd 202 drivers/auxdisplay/arm-charlcd.c writel(chhi, lcd->virtbase + CHAR_DAT); lcd 204 drivers/auxdisplay/arm-charlcd.c writel(chlo, lcd->virtbase + CHAR_DAT); lcd 205 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_wait_busy(lcd); lcd 208 drivers/auxdisplay/arm-charlcd.c static void charlcd_4bit_print(struct charlcd *lcd, int line, const char *str) lcd 226 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_SET_DDRAM | offset); lcd 230 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_char(lcd, str[i]); lcd 233 drivers/auxdisplay/arm-charlcd.c static void charlcd_4bit_init(struct charlcd *lcd) lcd 236 drivers/auxdisplay/arm-charlcd.c writel(HD_FUNCSET | HD_FUNCSET_8BIT, lcd->virtbase + CHAR_COM); lcd 238 drivers/auxdisplay/arm-charlcd.c writel(HD_FUNCSET | HD_FUNCSET_8BIT, lcd->virtbase + CHAR_COM); lcd 240 drivers/auxdisplay/arm-charlcd.c writel(HD_FUNCSET | HD_FUNCSET_8BIT, lcd->virtbase + CHAR_COM); lcd 243 drivers/auxdisplay/arm-charlcd.c writel(HD_FUNCSET, lcd->virtbase + CHAR_COM); lcd 249 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_FUNCSET | HD_FUNCSET_2_LINES); lcd 250 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_DISPCTRL | HD_DISPCTRL_ON); lcd 251 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_ENTRYMODE | HD_ENTRYMODE_INCREMENT); lcd 252 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_CLEAR); lcd 253 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_HOME); lcd 255 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_print(lcd, 0, "ARM Linux"); lcd 256 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_print(lcd, 1, UTS_RELEASE); lcd 261 drivers/auxdisplay/arm-charlcd.c struct charlcd *lcd = lcd 264 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_init(lcd); lcd 270 drivers/auxdisplay/arm-charlcd.c struct charlcd *lcd; lcd 273 drivers/auxdisplay/arm-charlcd.c lcd = kzalloc(sizeof(struct charlcd), GFP_KERNEL); lcd 274 drivers/auxdisplay/arm-charlcd.c if (!lcd) lcd 277 drivers/auxdisplay/arm-charlcd.c lcd->dev = &pdev->dev; lcd 284 drivers/auxdisplay/arm-charlcd.c lcd->phybase = res->start; lcd 285 drivers/auxdisplay/arm-charlcd.c lcd->physize = resource_size(res); lcd 287 drivers/auxdisplay/arm-charlcd.c if (request_mem_region(lcd->phybase, lcd->physize, lcd 293 drivers/auxdisplay/arm-charlcd.c lcd->virtbase = ioremap(lcd->phybase, lcd->physize); lcd 294 drivers/auxdisplay/arm-charlcd.c if (!lcd->virtbase) { lcd 299 drivers/auxdisplay/arm-charlcd.c lcd->irq = platform_get_irq(pdev, 0); lcd 301 drivers/auxdisplay/arm-charlcd.c if (lcd->irq >= 0) { lcd 302 drivers/auxdisplay/arm-charlcd.c if (request_irq(lcd->irq, charlcd_interrupt, 0, lcd 303 drivers/auxdisplay/arm-charlcd.c DRIVERNAME, lcd)) { lcd 309 drivers/auxdisplay/arm-charlcd.c platform_set_drvdata(pdev, lcd); lcd 315 drivers/auxdisplay/arm-charlcd.c INIT_DELAYED_WORK(&lcd->init_work, charlcd_init_work); lcd 316 drivers/auxdisplay/arm-charlcd.c schedule_delayed_work(&lcd->init_work, 0); lcd 319 drivers/auxdisplay/arm-charlcd.c lcd->phybase); lcd 324 drivers/auxdisplay/arm-charlcd.c iounmap(lcd->virtbase); lcd 326 drivers/auxdisplay/arm-charlcd.c release_mem_region(lcd->phybase, SZ_4K); lcd 328 drivers/auxdisplay/arm-charlcd.c kfree(lcd); lcd 334 drivers/auxdisplay/arm-charlcd.c struct charlcd *lcd = dev_get_drvdata(dev); lcd 337 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_DISPCTRL); lcd 343 drivers/auxdisplay/arm-charlcd.c struct charlcd *lcd = dev_get_drvdata(dev); lcd 346 drivers/auxdisplay/arm-charlcd.c charlcd_4bit_command(lcd, HD_DISPCTRL | HD_DISPCTRL_ON); lcd 68 drivers/auxdisplay/charlcd.c struct charlcd lcd; lcd 94 drivers/auxdisplay/charlcd.c #define charlcd_to_priv(p) container_of(p, struct charlcd_priv, lcd) lcd 106 drivers/auxdisplay/charlcd.c static void charlcd_backlight(struct charlcd *lcd, int on) lcd 108 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 110 drivers/auxdisplay/charlcd.c if (!lcd->ops->backlight) lcd 115 drivers/auxdisplay/charlcd.c lcd->ops->backlight(lcd, on); lcd 129 drivers/auxdisplay/charlcd.c priv->lcd.ops->backlight(&priv->lcd, 0); lcd 135 drivers/auxdisplay/charlcd.c void charlcd_poke(struct charlcd *lcd) lcd 137 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 139 drivers/auxdisplay/charlcd.c if (!lcd->ops->backlight) lcd 146 drivers/auxdisplay/charlcd.c lcd->ops->backlight(lcd, 1); lcd 153 drivers/auxdisplay/charlcd.c static void charlcd_gotoxy(struct charlcd *lcd) lcd 155 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 162 drivers/auxdisplay/charlcd.c addr = priv->addr.x < lcd->bwidth ? priv->addr.x & (lcd->hwidth - 1) lcd 163 drivers/auxdisplay/charlcd.c : lcd->bwidth - 1; lcd 165 drivers/auxdisplay/charlcd.c addr += lcd->hwidth; lcd 167 drivers/auxdisplay/charlcd.c addr += lcd->bwidth; lcd 168 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_SET_DDRAM_ADDR | addr); lcd 171 drivers/auxdisplay/charlcd.c static void charlcd_home(struct charlcd *lcd) lcd 173 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 177 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 180 drivers/auxdisplay/charlcd.c static void charlcd_print(struct charlcd *lcd, char c) lcd 182 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 184 drivers/auxdisplay/charlcd.c if (priv->addr.x < lcd->bwidth) { lcd 185 drivers/auxdisplay/charlcd.c if (lcd->char_conv) lcd 186 drivers/auxdisplay/charlcd.c c = lcd->char_conv[(unsigned char)c]; lcd 187 drivers/auxdisplay/charlcd.c lcd->ops->write_data(lcd, c); lcd 191 drivers/auxdisplay/charlcd.c if (priv->addr.x == lcd->bwidth) lcd 192 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 196 drivers/auxdisplay/charlcd.c static void charlcd_clear_fast(struct charlcd *lcd) lcd 200 drivers/auxdisplay/charlcd.c charlcd_home(lcd); lcd 202 drivers/auxdisplay/charlcd.c if (lcd->ops->clear_fast) lcd 203 drivers/auxdisplay/charlcd.c lcd->ops->clear_fast(lcd); lcd 205 drivers/auxdisplay/charlcd.c for (pos = 0; pos < min(2, lcd->height) * lcd->hwidth; pos++) lcd 206 drivers/auxdisplay/charlcd.c lcd->ops->write_data(lcd, ' '); lcd 208 drivers/auxdisplay/charlcd.c charlcd_home(lcd); lcd 212 drivers/auxdisplay/charlcd.c static void charlcd_clear_display(struct charlcd *lcd) lcd 214 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 216 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_DISPLAY_CLEAR); lcd 223 drivers/auxdisplay/charlcd.c static int charlcd_init_display(struct charlcd *lcd) lcd 225 drivers/auxdisplay/charlcd.c void (*write_cmd_raw)(struct charlcd *lcd, int cmd); lcd 226 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 229 drivers/auxdisplay/charlcd.c if (lcd->ifwidth != 4 && lcd->ifwidth != 8) lcd 232 drivers/auxdisplay/charlcd.c priv->flags = ((lcd->height > 1) ? LCD_FLAG_N : 0) | LCD_FLAG_D | lcd 242 drivers/auxdisplay/charlcd.c if (lcd->ifwidth == 4) { lcd 244 drivers/auxdisplay/charlcd.c write_cmd_raw = lcd->ops->write_cmd_raw4; lcd 246 drivers/auxdisplay/charlcd.c write_cmd_raw = lcd->ops->write_cmd; lcd 248 drivers/auxdisplay/charlcd.c write_cmd_raw(lcd, init); lcd 250 drivers/auxdisplay/charlcd.c write_cmd_raw(lcd, init); lcd 252 drivers/auxdisplay/charlcd.c write_cmd_raw(lcd, init); lcd 255 drivers/auxdisplay/charlcd.c if (lcd->ifwidth == 4) { lcd 257 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd_raw4(lcd, LCD_CMD_FUNCTION_SET >> 4); lcd 262 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, lcd 264 drivers/auxdisplay/charlcd.c ((lcd->ifwidth == 8) ? LCD_CMD_DATA_LEN_8BITS : 0) | lcd 270 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_DISPLAY_CTRL); lcd 273 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, lcd 279 drivers/auxdisplay/charlcd.c charlcd_backlight(lcd, (priv->flags & LCD_FLAG_L) ? 1 : 0); lcd 284 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_ENTRY_MODE | LCD_CMD_CURSOR_INC); lcd 286 drivers/auxdisplay/charlcd.c charlcd_clear_display(lcd); lcd 370 drivers/auxdisplay/charlcd.c static inline int handle_lcd_special_code(struct charlcd *lcd) lcd 372 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 416 drivers/auxdisplay/charlcd.c charlcd_poke(lcd); lcd 438 drivers/auxdisplay/charlcd.c if (priv->addr.x < lcd->bwidth) lcd 439 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_SHIFT); lcd 445 drivers/auxdisplay/charlcd.c if (priv->addr.x < lcd->width) { lcd 447 drivers/auxdisplay/charlcd.c if (priv->addr.x < (lcd->bwidth - 1)) lcd 448 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, lcd 455 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_SHIFT | LCD_CMD_DISPLAY_SHIFT); lcd 459 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, lcd 467 drivers/auxdisplay/charlcd.c for (x = priv->addr.x; x < lcd->bwidth; x++) lcd 468 drivers/auxdisplay/charlcd.c lcd->ops->write_data(lcd, ' '); lcd 471 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 476 drivers/auxdisplay/charlcd.c charlcd_init_display(lcd); lcd 530 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_SET_CGRAM_ADDR | (cgaddr * 8)); lcd 532 drivers/auxdisplay/charlcd.c lcd->ops->write_data(lcd, cgbytes[addr]); lcd 535 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 546 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 562 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, lcd 569 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, lcd 571 drivers/auxdisplay/charlcd.c ((lcd->ifwidth == 8) ? LCD_CMD_DATA_LEN_8BITS : 0) | lcd 576 drivers/auxdisplay/charlcd.c charlcd_backlight(lcd, !!(priv->flags & LCD_FLAG_L)); lcd 581 drivers/auxdisplay/charlcd.c static void charlcd_write_char(struct charlcd *lcd, char c) lcd 583 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 607 drivers/auxdisplay/charlcd.c if (priv->addr.x < lcd->bwidth) lcd 609 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_SHIFT); lcd 613 drivers/auxdisplay/charlcd.c lcd->ops->write_data(lcd, ' '); lcd 615 drivers/auxdisplay/charlcd.c lcd->ops->write_cmd(lcd, LCD_CMD_SHIFT); lcd 619 drivers/auxdisplay/charlcd.c charlcd_clear_fast(lcd); lcd 626 drivers/auxdisplay/charlcd.c for (; priv->addr.x < lcd->bwidth; priv->addr.x++) lcd 627 drivers/auxdisplay/charlcd.c lcd->ops->write_data(lcd, ' '); lcd 629 drivers/auxdisplay/charlcd.c priv->addr.y = (priv->addr.y + 1) % lcd->height; lcd 630 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 635 drivers/auxdisplay/charlcd.c charlcd_gotoxy(lcd); lcd 639 drivers/auxdisplay/charlcd.c charlcd_print(lcd, ' '); lcd 643 drivers/auxdisplay/charlcd.c charlcd_print(lcd, c); lcd 657 drivers/auxdisplay/charlcd.c charlcd_clear_fast(lcd); lcd 661 drivers/auxdisplay/charlcd.c charlcd_home(lcd); lcd 668 drivers/auxdisplay/charlcd.c processed = handle_lcd_special_code(lcd); lcd 720 drivers/auxdisplay/charlcd.c charlcd_clear_display(&priv->lcd); lcd 749 drivers/auxdisplay/charlcd.c static void charlcd_puts(struct charlcd *lcd, const char *s) lcd 762 drivers/auxdisplay/charlcd.c charlcd_write_char(lcd, *tmp); lcd 781 drivers/auxdisplay/charlcd.c static int charlcd_init(struct charlcd *lcd) lcd 783 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 786 drivers/auxdisplay/charlcd.c if (lcd->ops->backlight) { lcd 796 drivers/auxdisplay/charlcd.c ret = charlcd_init_display(lcd); lcd 801 drivers/auxdisplay/charlcd.c charlcd_puts(lcd, "\x1b[Lc\x1b[Lb" LCD_INIT_BL LCD_INIT_TEXT); lcd 805 drivers/auxdisplay/charlcd.c charlcd_home(lcd); lcd 812 drivers/auxdisplay/charlcd.c struct charlcd *lcd; lcd 820 drivers/auxdisplay/charlcd.c lcd = &priv->lcd; lcd 821 drivers/auxdisplay/charlcd.c lcd->ifwidth = 8; lcd 822 drivers/auxdisplay/charlcd.c lcd->bwidth = DEFAULT_LCD_BWIDTH; lcd 823 drivers/auxdisplay/charlcd.c lcd->hwidth = DEFAULT_LCD_HWIDTH; lcd 824 drivers/auxdisplay/charlcd.c lcd->drvdata = priv->drvdata; lcd 826 drivers/auxdisplay/charlcd.c return lcd; lcd 830 drivers/auxdisplay/charlcd.c void charlcd_free(struct charlcd *lcd) lcd 832 drivers/auxdisplay/charlcd.c kfree(charlcd_to_priv(lcd)); lcd 839 drivers/auxdisplay/charlcd.c struct charlcd *lcd = the_charlcd; lcd 843 drivers/auxdisplay/charlcd.c charlcd_puts(lcd, lcd 847 drivers/auxdisplay/charlcd.c charlcd_puts(lcd, "\x0cSystem Halted.\x1b[Lc\x1b[Lb\x1b[L+"); lcd 850 drivers/auxdisplay/charlcd.c charlcd_puts(lcd, "\x0cPower off.\x1b[Lc\x1b[Lb\x1b[L+"); lcd 864 drivers/auxdisplay/charlcd.c int charlcd_register(struct charlcd *lcd) lcd 868 drivers/auxdisplay/charlcd.c ret = charlcd_init(lcd); lcd 876 drivers/auxdisplay/charlcd.c the_charlcd = lcd; lcd 882 drivers/auxdisplay/charlcd.c int charlcd_unregister(struct charlcd *lcd) lcd 884 drivers/auxdisplay/charlcd.c struct charlcd_priv *priv = charlcd_to_priv(lcd); lcd 887 drivers/auxdisplay/charlcd.c charlcd_puts(lcd, "\x0cLCD driver unloaded.\x1b[Lc\x1b[Lb\x1b[L-"); lcd 890 drivers/auxdisplay/charlcd.c if (lcd->ops->backlight) { lcd 892 drivers/auxdisplay/charlcd.c priv->lcd.ops->backlight(&priv->lcd, 0); lcd 27 drivers/auxdisplay/charlcd.h void (*write_cmd)(struct charlcd *lcd, int cmd); lcd 28 drivers/auxdisplay/charlcd.h void (*write_data)(struct charlcd *lcd, int data); lcd 31 drivers/auxdisplay/charlcd.h void (*write_cmd_raw4)(struct charlcd *lcd, int cmd); /* 4-bit only */ lcd 32 drivers/auxdisplay/charlcd.h void (*clear_fast)(struct charlcd *lcd); lcd 33 drivers/auxdisplay/charlcd.h void (*backlight)(struct charlcd *lcd, int on); lcd 37 drivers/auxdisplay/charlcd.h void charlcd_free(struct charlcd *lcd); lcd 39 drivers/auxdisplay/charlcd.h int charlcd_register(struct charlcd *lcd); lcd 40 drivers/auxdisplay/charlcd.h int charlcd_unregister(struct charlcd *lcd); lcd 42 drivers/auxdisplay/charlcd.h void charlcd_poke(struct charlcd *lcd); lcd 40 drivers/auxdisplay/hd44780.c static void hd44780_backlight(struct charlcd *lcd, int on) lcd 42 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; lcd 104 drivers/auxdisplay/hd44780.c static void hd44780_write_cmd_gpio8(struct charlcd *lcd, int cmd) lcd 106 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; lcd 115 drivers/auxdisplay/hd44780.c static void hd44780_write_data_gpio8(struct charlcd *lcd, int data) lcd 117 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; lcd 132 drivers/auxdisplay/hd44780.c static void hd44780_write_cmd_gpio4(struct charlcd *lcd, int cmd) lcd 134 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; lcd 143 drivers/auxdisplay/hd44780.c static void hd44780_write_cmd_raw_gpio4(struct charlcd *lcd, int cmd) lcd 146 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; lcd 160 drivers/auxdisplay/hd44780.c static void hd44780_write_data_gpio4(struct charlcd *lcd, int data) lcd 162 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; lcd 181 drivers/auxdisplay/hd44780.c struct charlcd *lcd; lcd 201 drivers/auxdisplay/hd44780.c lcd = charlcd_alloc(sizeof(struct hd44780)); lcd 202 drivers/auxdisplay/hd44780.c if (!lcd) lcd 205 drivers/auxdisplay/hd44780.c hd = lcd->drvdata; lcd 245 drivers/auxdisplay/hd44780.c &lcd->height); lcd 248 drivers/auxdisplay/hd44780.c ret = device_property_read_u32(dev, "display-width-chars", &lcd->width); lcd 256 drivers/auxdisplay/hd44780.c if (lcd->height > 2) lcd 257 drivers/auxdisplay/hd44780.c lcd->bwidth = lcd->width; lcd 260 drivers/auxdisplay/hd44780.c device_property_read_u32(dev, "internal-buffer-width", &lcd->bwidth); lcd 262 drivers/auxdisplay/hd44780.c lcd->ifwidth = ifwidth; lcd 263 drivers/auxdisplay/hd44780.c lcd->ops = ifwidth == 8 ? &hd44780_ops_gpio8 : &hd44780_ops_gpio4; lcd 265 drivers/auxdisplay/hd44780.c ret = charlcd_register(lcd); lcd 269 drivers/auxdisplay/hd44780.c platform_set_drvdata(pdev, lcd); lcd 273 drivers/auxdisplay/hd44780.c charlcd_free(lcd); lcd 279 drivers/auxdisplay/hd44780.c struct charlcd *lcd = platform_get_drvdata(pdev); lcd 281 drivers/auxdisplay/hd44780.c charlcd_unregister(lcd); lcd 283 drivers/auxdisplay/hd44780.c charlcd_free(lcd); lcd 219 drivers/auxdisplay/panel.c } lcd; lcd 715 drivers/auxdisplay/panel.c if (lcd.pins.bl == PIN_NONE) lcd 917 drivers/auxdisplay/panel.c lcd.proto = LCD_PROTO_PARALLEL; lcd 918 drivers/auxdisplay/panel.c lcd.charset = LCD_CHARSET_NORMAL; lcd 919 drivers/auxdisplay/panel.c lcd.pins.e = PIN_STROBE; lcd 920 drivers/auxdisplay/panel.c lcd.pins.rs = PIN_AUTOLF; lcd 929 drivers/auxdisplay/panel.c lcd.proto = LCD_PROTO_SERIAL; lcd 930 drivers/auxdisplay/panel.c lcd.charset = LCD_CHARSET_KS0074; lcd 931 drivers/auxdisplay/panel.c lcd.pins.bl = PIN_AUTOLF; lcd 932 drivers/auxdisplay/panel.c lcd.pins.cl = PIN_STROBE; lcd 933 drivers/auxdisplay/panel.c lcd.pins.da = PIN_D0; lcd 942 drivers/auxdisplay/panel.c lcd.proto = LCD_PROTO_PARALLEL; lcd 943 drivers/auxdisplay/panel.c lcd.charset = LCD_CHARSET_NORMAL; lcd 944 drivers/auxdisplay/panel.c lcd.pins.e = PIN_AUTOLF; lcd 945 drivers/auxdisplay/panel.c lcd.pins.rs = PIN_SELECP; lcd 946 drivers/auxdisplay/panel.c lcd.pins.rw = PIN_INITP; lcd 955 drivers/auxdisplay/panel.c lcd.proto = DEFAULT_LCD_PROTO; lcd 956 drivers/auxdisplay/panel.c lcd.charset = DEFAULT_LCD_CHARSET; lcd 962 drivers/auxdisplay/panel.c lcd.proto = LCD_PROTO_PARALLEL; lcd 963 drivers/auxdisplay/panel.c lcd.charset = LCD_CHARSET_NORMAL; lcd 964 drivers/auxdisplay/panel.c lcd.pins.e = PIN_STROBE; lcd 965 drivers/auxdisplay/panel.c lcd.pins.rs = PIN_SELECP; lcd 984 drivers/auxdisplay/panel.c lcd.charset = lcd_charset; lcd 986 drivers/auxdisplay/panel.c lcd.proto = lcd_proto; lcd 988 drivers/auxdisplay/panel.c lcd.pins.e = lcd_e_pin; lcd 990 drivers/auxdisplay/panel.c lcd.pins.rs = lcd_rs_pin; lcd 992 drivers/auxdisplay/panel.c lcd.pins.rw = lcd_rw_pin; lcd 994 drivers/auxdisplay/panel.c lcd.pins.cl = lcd_cl_pin; lcd 996 drivers/auxdisplay/panel.c lcd.pins.da = lcd_da_pin; lcd 998 drivers/auxdisplay/panel.c lcd.pins.bl = lcd_bl_pin; lcd 1010 drivers/auxdisplay/panel.c if (lcd.proto == LCD_PROTO_SERIAL) { /* SERIAL */ lcd 1013 drivers/auxdisplay/panel.c if (lcd.pins.cl == PIN_NOT_SET) lcd 1014 drivers/auxdisplay/panel.c lcd.pins.cl = DEFAULT_LCD_PIN_SCL; lcd 1015 drivers/auxdisplay/panel.c if (lcd.pins.da == PIN_NOT_SET) lcd 1016 drivers/auxdisplay/panel.c lcd.pins.da = DEFAULT_LCD_PIN_SDA; lcd 1018 drivers/auxdisplay/panel.c } else if (lcd.proto == LCD_PROTO_PARALLEL) { /* PARALLEL */ lcd 1021 drivers/auxdisplay/panel.c if (lcd.pins.e == PIN_NOT_SET) lcd 1022 drivers/auxdisplay/panel.c lcd.pins.e = DEFAULT_LCD_PIN_E; lcd 1023 drivers/auxdisplay/panel.c if (lcd.pins.rs == PIN_NOT_SET) lcd 1024 drivers/auxdisplay/panel.c lcd.pins.rs = DEFAULT_LCD_PIN_RS; lcd 1025 drivers/auxdisplay/panel.c if (lcd.pins.rw == PIN_NOT_SET) lcd 1026 drivers/auxdisplay/panel.c lcd.pins.rw = DEFAULT_LCD_PIN_RW; lcd 1031 drivers/auxdisplay/panel.c if (lcd.pins.bl == PIN_NOT_SET) lcd 1032 drivers/auxdisplay/panel.c lcd.pins.bl = DEFAULT_LCD_PIN_BL; lcd 1034 drivers/auxdisplay/panel.c if (lcd.pins.e == PIN_NOT_SET) lcd 1035 drivers/auxdisplay/panel.c lcd.pins.e = PIN_NONE; lcd 1036 drivers/auxdisplay/panel.c if (lcd.pins.rs == PIN_NOT_SET) lcd 1037 drivers/auxdisplay/panel.c lcd.pins.rs = PIN_NONE; lcd 1038 drivers/auxdisplay/panel.c if (lcd.pins.rw == PIN_NOT_SET) lcd 1039 drivers/auxdisplay/panel.c lcd.pins.rw = PIN_NONE; lcd 1040 drivers/auxdisplay/panel.c if (lcd.pins.bl == PIN_NOT_SET) lcd 1041 drivers/auxdisplay/panel.c lcd.pins.bl = PIN_NONE; lcd 1042 drivers/auxdisplay/panel.c if (lcd.pins.cl == PIN_NOT_SET) lcd 1043 drivers/auxdisplay/panel.c lcd.pins.cl = PIN_NONE; lcd 1044 drivers/auxdisplay/panel.c if (lcd.pins.da == PIN_NOT_SET) lcd 1045 drivers/auxdisplay/panel.c lcd.pins.da = PIN_NONE; lcd 1047 drivers/auxdisplay/panel.c if (lcd.charset == NOT_SET) lcd 1048 drivers/auxdisplay/panel.c lcd.charset = DEFAULT_LCD_CHARSET; lcd 1050 drivers/auxdisplay/panel.c if (lcd.charset == LCD_CHARSET_KS0074) lcd 1055 drivers/auxdisplay/panel.c pin_to_bits(lcd.pins.e, lcd_bits[LCD_PORT_D][LCD_BIT_E], lcd 1057 drivers/auxdisplay/panel.c pin_to_bits(lcd.pins.rs, lcd_bits[LCD_PORT_D][LCD_BIT_RS], lcd 1059 drivers/auxdisplay/panel.c pin_to_bits(lcd.pins.rw, lcd_bits[LCD_PORT_D][LCD_BIT_RW], lcd 1061 drivers/auxdisplay/panel.c pin_to_bits(lcd.pins.bl, lcd_bits[LCD_PORT_D][LCD_BIT_BL], lcd 1063 drivers/auxdisplay/panel.c pin_to_bits(lcd.pins.cl, lcd_bits[LCD_PORT_D][LCD_BIT_CL], lcd 1065 drivers/auxdisplay/panel.c pin_to_bits(lcd.pins.da, lcd_bits[LCD_PORT_D][LCD_BIT_DA], lcd 1068 drivers/auxdisplay/panel.c lcd.charlcd = charlcd; lcd 1069 drivers/auxdisplay/panel.c lcd.initialized = true; lcd 1408 drivers/auxdisplay/panel.c if (keypressed && lcd.enabled && lcd.initialized) lcd 1409 drivers/auxdisplay/panel.c charlcd_poke(lcd.charlcd); lcd 1606 drivers/auxdisplay/panel.c if (lcd.enabled) { lcd 1608 drivers/auxdisplay/panel.c if (!lcd.charlcd || charlcd_register(lcd.charlcd)) lcd 1622 drivers/auxdisplay/panel.c if (lcd.enabled) lcd 1623 drivers/auxdisplay/panel.c charlcd_unregister(lcd.charlcd); lcd 1625 drivers/auxdisplay/panel.c charlcd_free(lcd.charlcd); lcd 1626 drivers/auxdisplay/panel.c lcd.charlcd = NULL; lcd 1649 drivers/auxdisplay/panel.c if (lcd.enabled) { lcd 1650 drivers/auxdisplay/panel.c charlcd_unregister(lcd.charlcd); lcd 1651 drivers/auxdisplay/panel.c lcd.initialized = false; lcd 1652 drivers/auxdisplay/panel.c charlcd_free(lcd.charlcd); lcd 1653 drivers/auxdisplay/panel.c lcd.charlcd = NULL; lcd 1730 drivers/auxdisplay/panel.c lcd.enabled = (selected_lcd_type > 0); lcd 1732 drivers/auxdisplay/panel.c if (lcd.enabled) { lcd 1737 drivers/auxdisplay/panel.c lcd.charset = lcd_charset; lcd 1738 drivers/auxdisplay/panel.c lcd.proto = lcd_proto; lcd 1739 drivers/auxdisplay/panel.c lcd.pins.e = lcd_e_pin; lcd 1740 drivers/auxdisplay/panel.c lcd.pins.rs = lcd_rs_pin; lcd 1741 drivers/auxdisplay/panel.c lcd.pins.rw = lcd_rw_pin; lcd 1742 drivers/auxdisplay/panel.c lcd.pins.cl = lcd_cl_pin; lcd 1743 drivers/auxdisplay/panel.c lcd.pins.da = lcd_da_pin; lcd 1744 drivers/auxdisplay/panel.c lcd.pins.bl = lcd_bl_pin; lcd 1762 drivers/auxdisplay/panel.c if (!lcd.enabled && !keypad.enabled) { lcd 3309 drivers/gpu/drm/omapdrm/dss/dispc.c int lcd; lcd 3331 drivers/gpu/drm/omapdrm/dss/dispc.c lcd = REG_GET(dispc, DISPC_DIVISORo(channel), 23, 16); lcd 3333 drivers/gpu/drm/omapdrm/dss/dispc.c return r / lcd; lcd 3397 drivers/gpu/drm/omapdrm/dss/dispc.c int lcd, pcd; lcd 3407 drivers/gpu/drm/omapdrm/dss/dispc.c dispc_mgr_get_lcd_divisor(dispc, channel, &lcd, &pcd); lcd 3410 drivers/gpu/drm/omapdrm/dss/dispc.c dispc_mgr_lclk_rate(dispc, channel), lcd); lcd 3418 drivers/gpu/drm/omapdrm/dss/dispc.c int lcd; lcd 3435 drivers/gpu/drm/omapdrm/dss/dispc.c lcd = FLD_GET(l, 23, 16); lcd 3438 drivers/gpu/drm/omapdrm/dss/dispc.c (dispc_fclk_rate(dispc)/lcd), lcd); lcd 32 drivers/gpu/drm/panel/panel-lg-lb035q02.c static int lb035q02_write(struct lb035q02_device *lcd, u16 reg, u16 val) lcd 60 drivers/gpu/drm/panel/panel-lg-lb035q02.c return spi_sync(lcd->spi, &msg); lcd 63 drivers/gpu/drm/panel/panel-lg-lb035q02.c static int lb035q02_init(struct lb035q02_device *lcd) lcd 100 drivers/gpu/drm/panel/panel-lg-lb035q02.c ret = lb035q02_write(lcd, init_data[i].index, lcd 111 drivers/gpu/drm/panel/panel-lg-lb035q02.c struct lb035q02_device *lcd = to_lb035q02_device(panel); lcd 113 drivers/gpu/drm/panel/panel-lg-lb035q02.c gpiod_set_value_cansleep(lcd->enable_gpio, 0); lcd 120 drivers/gpu/drm/panel/panel-lg-lb035q02.c struct lb035q02_device *lcd = to_lb035q02_device(panel); lcd 122 drivers/gpu/drm/panel/panel-lg-lb035q02.c gpiod_set_value_cansleep(lcd->enable_gpio, 1); lcd 179 drivers/gpu/drm/panel/panel-lg-lb035q02.c struct lb035q02_device *lcd; lcd 182 drivers/gpu/drm/panel/panel-lg-lb035q02.c lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); lcd 183 drivers/gpu/drm/panel/panel-lg-lb035q02.c if (!lcd) lcd 186 drivers/gpu/drm/panel/panel-lg-lb035q02.c spi_set_drvdata(spi, lcd); lcd 187 drivers/gpu/drm/panel/panel-lg-lb035q02.c lcd->spi = spi; lcd 189 drivers/gpu/drm/panel/panel-lg-lb035q02.c lcd->enable_gpio = devm_gpiod_get(&spi->dev, "enable", GPIOD_OUT_LOW); lcd 190 drivers/gpu/drm/panel/panel-lg-lb035q02.c if (IS_ERR(lcd->enable_gpio)) { lcd 192 drivers/gpu/drm/panel/panel-lg-lb035q02.c return PTR_ERR(lcd->enable_gpio); lcd 195 drivers/gpu/drm/panel/panel-lg-lb035q02.c ret = lb035q02_init(lcd); lcd 199 drivers/gpu/drm/panel/panel-lg-lb035q02.c drm_panel_init(&lcd->panel); lcd 200 drivers/gpu/drm/panel/panel-lg-lb035q02.c lcd->panel.dev = &lcd->spi->dev; lcd 201 drivers/gpu/drm/panel/panel-lg-lb035q02.c lcd->panel.funcs = &lb035q02_funcs; lcd 203 drivers/gpu/drm/panel/panel-lg-lb035q02.c return drm_panel_add(&lcd->panel); lcd 208 drivers/gpu/drm/panel/panel-lg-lb035q02.c struct lb035q02_device *lcd = spi_get_drvdata(spi); lcd 210 drivers/gpu/drm/panel/panel-lg-lb035q02.c drm_panel_remove(&lcd->panel); lcd 211 drivers/gpu/drm/panel/panel-lg-lb035q02.c drm_panel_disable(&lcd->panel); lcd 32 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c static int nl8048_write(struct nl8048_panel *lcd, unsigned char addr, lcd 38 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c ret = spi_write(lcd->spi, data, sizeof(data)); lcd 40 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c dev_err(&lcd->spi->dev, "SPI write to %u failed: %d\n", lcd 46 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c static int nl8048_init(struct nl8048_panel *lcd) lcd 79 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c ret = nl8048_write(lcd, nl8048_init_seq[i].addr, lcd 87 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c return nl8048_write(lcd, 2, 0x00); lcd 92 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct nl8048_panel *lcd = to_nl8048_device(panel); lcd 94 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c gpiod_set_value_cansleep(lcd->reset_gpio, 0); lcd 101 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct nl8048_panel *lcd = to_nl8048_device(panel); lcd 103 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c gpiod_set_value_cansleep(lcd->reset_gpio, 1); lcd 155 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct nl8048_panel *lcd = dev_get_drvdata(dev); lcd 157 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c nl8048_write(lcd, 2, 0x01); lcd 165 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct nl8048_panel *lcd = dev_get_drvdata(dev); lcd 168 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c spi_setup(lcd->spi); lcd 169 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c nl8048_write(lcd, 2, 0x00); lcd 170 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c nl8048_init(lcd); lcd 179 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct nl8048_panel *lcd; lcd 182 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); lcd 183 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c if (!lcd) lcd 186 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c spi_set_drvdata(spi, lcd); lcd 187 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c lcd->spi = spi; lcd 189 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c lcd->reset_gpio = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW); lcd 190 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c if (IS_ERR(lcd->reset_gpio)) { lcd 192 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c return PTR_ERR(lcd->reset_gpio); lcd 204 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c ret = nl8048_init(lcd); lcd 208 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c drm_panel_init(&lcd->panel); lcd 209 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c lcd->panel.dev = &lcd->spi->dev; lcd 210 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c lcd->panel.funcs = &nl8048_funcs; lcd 212 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c return drm_panel_add(&lcd->panel); lcd 217 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct nl8048_panel *lcd = spi_get_drvdata(spi); lcd 219 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c drm_panel_remove(&lcd->panel); lcd 220 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c drm_panel_disable(&lcd->panel); lcd 221 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c drm_panel_unprepare(&lcd->panel); lcd 85 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); lcd 87 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (!lcd->enabled) lcd 90 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c backlight_disable(lcd->backlight); lcd 92 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->enabled = false; lcd 99 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); lcd 101 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (!lcd->prepared) lcd 104 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c gpiod_set_value_cansleep(lcd->enable_gpio, 0); lcd 105 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c regulator_disable(lcd->supply); lcd 107 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->prepared = false; lcd 114 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); lcd 117 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (lcd->prepared) lcd 120 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c ret = regulator_enable(lcd->supply); lcd 124 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c gpiod_set_value_cansleep(lcd->enable_gpio, 1); lcd 125 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->prepared = true; lcd 132 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); lcd 134 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (lcd->enabled) lcd 137 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c backlight_enable(lcd->backlight); lcd 139 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->enabled = true; lcd 146 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino *lcd = to_lcd_olinuxino(panel); lcd 147 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct drm_connector *connector = lcd->panel.connector; lcd 148 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino_info *lcd_info = &lcd->eeprom.info; lcd 149 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct drm_device *drm = lcd->panel.drm; lcd 154 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c for (i = 0; i < lcd->eeprom.num_modes; i++) { lcd 156 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c &lcd->eeprom.reserved[i * sizeof(*lcd_mode)]; lcd 217 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct lcd_olinuxino *lcd; lcd 225 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd = devm_kzalloc(dev, sizeof(*lcd), GFP_KERNEL); lcd 226 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (!lcd) lcd 229 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c i2c_set_clientdata(client, lcd); lcd 230 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->dev = dev; lcd 231 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->client = client; lcd 233 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mutex_init(&lcd->mutex); lcd 237 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mutex_lock(&lcd->mutex); lcd 241 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c (u8 *)&lcd->eeprom + i); lcd 242 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mutex_unlock(&lcd->mutex); lcd 250 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c checksum = ~crc32(~0, (u8 *)&lcd->eeprom, 252); lcd 251 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (checksum != lcd->eeprom.checksum) { lcd 257 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (lcd->eeprom.header != LCD_OLINUXINO_HEADER_MAGIC) { lcd 263 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->eeprom.info.name, lcd 264 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->eeprom.revision, lcd 265 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->eeprom.serial); lcd 271 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (lcd->eeprom.num_modes > 4) { lcd 273 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->eeprom.num_modes = 4; lcd 276 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->enabled = false; lcd 277 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->prepared = false; lcd 279 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->supply = devm_regulator_get(dev, "power"); lcd 280 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (IS_ERR(lcd->supply)) lcd 281 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c return PTR_ERR(lcd->supply); lcd 283 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); lcd 284 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (IS_ERR(lcd->enable_gpio)) lcd 285 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c return PTR_ERR(lcd->enable_gpio); lcd 287 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->backlight = devm_of_find_backlight(dev); lcd 288 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (IS_ERR(lcd->backlight)) lcd 289 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c return PTR_ERR(lcd->backlight); lcd 291 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c drm_panel_init(&lcd->panel); lcd 292 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->panel.dev = dev; lcd 293 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c lcd->panel.funcs = &lcd_olinuxino_funcs; lcd 295 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c return drm_panel_add(&lcd->panel); lcd 41 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); lcd 43 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(lcd->ini_gpio, 0); lcd 44 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(lcd->resb_gpio, 0); lcd 54 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); lcd 56 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c regulator_disable(lcd->vdd); lcd 62 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); lcd 65 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c ret = regulator_enable(lcd->vdd); lcd 67 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c dev_err(&lcd->pdev->dev, "%s: failed to enable regulator\n", lcd 75 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct ls037v7dw01_panel *lcd = to_ls037v7dw01_device(panel); lcd 80 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(lcd->resb_gpio, 1); lcd 81 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(lcd->ini_gpio, 1); lcd 140 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct ls037v7dw01_panel *lcd; lcd 142 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd = devm_kzalloc(&pdev->dev, sizeof(*lcd), GFP_KERNEL); lcd 143 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (!lcd) lcd 146 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c platform_set_drvdata(pdev, lcd); lcd 147 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->pdev = pdev; lcd 149 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->vdd = devm_regulator_get(&pdev->dev, "envdd"); lcd 150 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (IS_ERR(lcd->vdd)) { lcd 152 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return PTR_ERR(lcd->vdd); lcd 155 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->ini_gpio = devm_gpiod_get(&pdev->dev, "enable", GPIOD_OUT_LOW); lcd 156 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (IS_ERR(lcd->ini_gpio)) { lcd 158 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return PTR_ERR(lcd->ini_gpio); lcd 161 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->resb_gpio = devm_gpiod_get(&pdev->dev, "reset", GPIOD_OUT_LOW); lcd 162 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (IS_ERR(lcd->resb_gpio)) { lcd 164 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return PTR_ERR(lcd->resb_gpio); lcd 167 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->mo_gpio = devm_gpiod_get_index(&pdev->dev, "mode", 0, lcd 169 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (IS_ERR(lcd->mo_gpio)) { lcd 171 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return PTR_ERR(lcd->mo_gpio); lcd 174 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->lr_gpio = devm_gpiod_get_index(&pdev->dev, "mode", 1, lcd 176 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (IS_ERR(lcd->lr_gpio)) { lcd 178 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return PTR_ERR(lcd->lr_gpio); lcd 181 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->ud_gpio = devm_gpiod_get_index(&pdev->dev, "mode", 2, lcd 183 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (IS_ERR(lcd->ud_gpio)) { lcd 185 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return PTR_ERR(lcd->ud_gpio); lcd 188 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c drm_panel_init(&lcd->panel); lcd 189 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->panel.dev = &pdev->dev; lcd 190 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c lcd->panel.funcs = &ls037v7dw01_funcs; lcd 192 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c return drm_panel_add(&lcd->panel); lcd 197 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct ls037v7dw01_panel *lcd = platform_get_drvdata(pdev); lcd 199 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c drm_panel_remove(&lcd->panel); lcd 200 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c drm_panel_disable(&lcd->panel); lcd 201 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c drm_panel_unprepare(&lcd->panel); lcd 75 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_transfer(struct acx565akm_panel *lcd, int cmd, lcd 118 drivers/gpu/drm/panel/panel-sony-acx565akm.c ret = spi_sync(lcd->spi, &m); lcd 120 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_dbg(&lcd->spi->dev, "spi_sync %d\n", ret); lcd 123 drivers/gpu/drm/panel/panel-sony-acx565akm.c static inline void acx565akm_cmd(struct acx565akm_panel *lcd, int cmd) lcd 125 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_transfer(lcd, cmd, NULL, 0, NULL, 0); lcd 128 drivers/gpu/drm/panel/panel-sony-acx565akm.c static inline void acx565akm_write(struct acx565akm_panel *lcd, lcd 131 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_transfer(lcd, reg, buf, len, NULL, 0); lcd 134 drivers/gpu/drm/panel/panel-sony-acx565akm.c static inline void acx565akm_read(struct acx565akm_panel *lcd, lcd 137 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_transfer(lcd, reg, NULL, 0, buf, len); lcd 144 drivers/gpu/drm/panel/panel-sony-acx565akm.c static unsigned int acx565akm_get_cabc_mode(struct acx565akm_panel *lcd) lcd 146 drivers/gpu/drm/panel/panel-sony-acx565akm.c return lcd->cabc_mode; lcd 149 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_set_cabc_mode(struct acx565akm_panel *lcd, lcd 154 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->cabc_mode = mode; lcd 155 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd->enabled) lcd 158 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_read(lcd, MIPID_CMD_READ_CABC, (u8 *)&cabc_ctrl, 1); lcd 161 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_write(lcd, MIPID_CMD_WRITE_CABC, (u8 *)&cabc_ctrl, 2); lcd 164 drivers/gpu/drm/panel/panel-sony-acx565akm.c static unsigned int acx565akm_get_hw_cabc_mode(struct acx565akm_panel *lcd) lcd 168 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_read(lcd, MIPID_CMD_READ_CABC, &cabc_ctrl, 1); lcd 183 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = dev_get_drvdata(dev); lcd 187 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd->has_cabc) lcd 190 drivers/gpu/drm/panel/panel-sony-acx565akm.c mode = acx565akm_get_cabc_mode(lcd); lcd 203 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = dev_get_drvdata(dev); lcd 222 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd->has_cabc && i != 0) lcd 225 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_lock(&lcd->mutex); lcd 226 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_cabc_mode(lcd, i); lcd 227 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_unlock(&lcd->mutex); lcd 236 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = dev_get_drvdata(dev); lcd 240 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd->has_cabc) lcd 269 drivers/gpu/drm/panel/panel-sony-acx565akm.c static int acx565akm_get_actual_brightness(struct acx565akm_panel *lcd) lcd 273 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_read(lcd, MIPI_DCS_GET_DISPLAY_BRIGHTNESS, &bv, 1); lcd 278 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_set_brightness(struct acx565akm_panel *lcd, int level) lcd 284 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_write(lcd, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, (u8 *)&bv, 2); lcd 286 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_read(lcd, MIPI_DCS_GET_CONTROL_DISPLAY, (u8 *)&ctrl, 1); lcd 295 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_write(lcd, MIPI_DCS_WRITE_CONTROL_DISPLAY, (u8 *)&ctrl, 2); lcd 300 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = dev_get_drvdata(&dev->dev); lcd 309 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_brightness(lcd, level); lcd 316 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = dev_get_drvdata(&dev->dev); lcd 319 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_lock(&lcd->mutex); lcd 321 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_unlock(&lcd->mutex); lcd 328 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = dev_get_drvdata(&dev->dev); lcd 331 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_lock(&lcd->mutex); lcd 335 drivers/gpu/drm/panel/panel-sony-acx565akm.c intensity = acx565akm_get_actual_brightness(lcd); lcd 339 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_unlock(&lcd->mutex); lcd 349 drivers/gpu/drm/panel/panel-sony-acx565akm.c static int acx565akm_backlight_init(struct acx565akm_panel *lcd) lcd 358 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->backlight = backlight_device_register(lcd->name, &lcd->spi->dev, lcd 359 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd, &acx565akm_bl_ops, lcd 361 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (IS_ERR(lcd->backlight)) { lcd 362 drivers/gpu/drm/panel/panel-sony-acx565akm.c ret = PTR_ERR(lcd->backlight); lcd 363 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->backlight = NULL; lcd 367 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (lcd->has_cabc) { lcd 368 drivers/gpu/drm/panel/panel-sony-acx565akm.c ret = sysfs_create_group(&lcd->backlight->dev.kobj, lcd 371 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_err(&lcd->spi->dev, lcd 373 drivers/gpu/drm/panel/panel-sony-acx565akm.c backlight_device_unregister(lcd->backlight); lcd 377 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->cabc_mode = acx565akm_get_hw_cabc_mode(lcd); lcd 380 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->backlight->props.max_brightness = 255; lcd 381 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->backlight->props.brightness = acx565akm_get_actual_brightness(lcd); lcd 383 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_bl_update_status_locked(lcd->backlight); lcd 388 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_backlight_cleanup(struct acx565akm_panel *lcd) lcd 390 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (lcd->has_cabc) lcd 391 drivers/gpu/drm/panel/panel-sony-acx565akm.c sysfs_remove_group(&lcd->backlight->dev.kobj, lcd 394 drivers/gpu/drm/panel/panel-sony-acx565akm.c backlight_device_unregister(lcd->backlight); lcd 401 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_set_sleep_mode(struct acx565akm_panel *lcd, int on) lcd 410 drivers/gpu/drm/panel/panel-sony-acx565akm.c wait = lcd->hw_guard_end - jiffies; lcd 411 drivers/gpu/drm/panel/panel-sony-acx565akm.c if ((long)wait > 0 && wait <= lcd->hw_guard_wait) { lcd 416 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_cmd(lcd, cmd); lcd 418 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->hw_guard_wait = msecs_to_jiffies(120); lcd 419 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->hw_guard_end = jiffies + lcd->hw_guard_wait; lcd 422 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_set_display_state(struct acx565akm_panel *lcd, lcd 427 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_cmd(lcd, cmd); lcd 430 drivers/gpu/drm/panel/panel-sony-acx565akm.c static int acx565akm_power_on(struct acx565akm_panel *lcd) lcd 435 drivers/gpu/drm/panel/panel-sony-acx565akm.c gpiod_set_value(lcd->reset_gpio, 1); lcd 437 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (lcd->enabled) { lcd 438 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_dbg(&lcd->spi->dev, "panel already enabled\n"); lcd 452 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_sleep_mode(lcd, 0); lcd 453 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->enabled = true; lcd 457 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_display_state(lcd, 1); lcd 458 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_cabc_mode(lcd, lcd->cabc_mode); lcd 460 drivers/gpu/drm/panel/panel-sony-acx565akm.c return acx565akm_bl_update_status_locked(lcd->backlight); lcd 463 drivers/gpu/drm/panel/panel-sony-acx565akm.c static void acx565akm_power_off(struct acx565akm_panel *lcd) lcd 465 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd->enabled) lcd 468 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_display_state(lcd, 0); lcd 469 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_set_sleep_mode(lcd, 1); lcd 470 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->enabled = false; lcd 479 drivers/gpu/drm/panel/panel-sony-acx565akm.c gpiod_set_value(lcd->reset_gpio, 0); lcd 487 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = to_acx565akm_device(panel); lcd 489 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_lock(&lcd->mutex); lcd 490 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_power_off(lcd); lcd 491 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_unlock(&lcd->mutex); lcd 498 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = to_acx565akm_device(panel); lcd 500 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_lock(&lcd->mutex); lcd 501 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_power_on(lcd); lcd 502 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_unlock(&lcd->mutex); lcd 555 drivers/gpu/drm/panel/panel-sony-acx565akm.c static int acx565akm_detect(struct acx565akm_panel *lcd) lcd 565 drivers/gpu/drm/panel/panel-sony-acx565akm.c gpiod_set_value(lcd->reset_gpio, 1); lcd 568 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_read(lcd, MIPI_DCS_GET_DISPLAY_STATUS, (u8 *)&value, 4); lcd 570 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->enabled = (status & (1 << 17)) && (status & (1 << 10)); lcd 572 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_dbg(&lcd->spi->dev, lcd 574 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->enabled ? "enabled" : "disabled ", status); lcd 576 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_read(lcd, MIPI_DCS_GET_DISPLAY_ID, lcd->display_id, 3); lcd 577 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_dbg(&lcd->spi->dev, "MIPI display ID: %02x%02x%02x\n", lcd 578 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->display_id[0], lcd->display_id[1], lcd->display_id[2]); lcd 580 drivers/gpu/drm/panel/panel-sony-acx565akm.c switch (lcd->display_id[0]) { lcd 582 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->model = MIPID_VER_ACX565AKM; lcd 583 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->name = "acx565akm"; lcd 584 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->has_bc = 1; lcd 585 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->has_cabc = 1; lcd 588 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->model = MIPID_VER_L4F00311; lcd 589 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->name = "l4f00311"; lcd 592 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->model = MIPID_VER_LPH8923; lcd 593 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->name = "lph8923"; lcd 596 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->model = MIPID_VER_LS041Y3; lcd 597 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->name = "ls041y3"; lcd 600 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->name = "unknown"; lcd 601 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_err(&lcd->spi->dev, "unknown display ID\n"); lcd 606 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->revision = lcd->display_id[1]; lcd 608 drivers/gpu/drm/panel/panel-sony-acx565akm.c dev_info(&lcd->spi->dev, "%s rev %02x panel detected\n", lcd 609 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->name, lcd->revision); lcd 612 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd->enabled) lcd 613 drivers/gpu/drm/panel/panel-sony-acx565akm.c gpiod_set_value(lcd->reset_gpio, 0); lcd 620 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd; lcd 623 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); lcd 624 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!lcd) lcd 627 drivers/gpu/drm/panel/panel-sony-acx565akm.c spi_set_drvdata(spi, lcd); lcd 630 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->spi = spi; lcd 631 drivers/gpu/drm/panel/panel-sony-acx565akm.c mutex_init(&lcd->mutex); lcd 633 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->reset_gpio = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW); lcd 634 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (IS_ERR(lcd->reset_gpio)) { lcd 636 drivers/gpu/drm/panel/panel-sony-acx565akm.c return PTR_ERR(lcd->reset_gpio); lcd 639 drivers/gpu/drm/panel/panel-sony-acx565akm.c ret = acx565akm_detect(lcd); lcd 645 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (lcd->has_bc) { lcd 646 drivers/gpu/drm/panel/panel-sony-acx565akm.c ret = acx565akm_backlight_init(lcd); lcd 651 drivers/gpu/drm/panel/panel-sony-acx565akm.c drm_panel_init(&lcd->panel); lcd 652 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->panel.dev = &lcd->spi->dev; lcd 653 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->panel.funcs = &acx565akm_funcs; lcd 655 drivers/gpu/drm/panel/panel-sony-acx565akm.c ret = drm_panel_add(&lcd->panel); lcd 657 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (lcd->has_bc) lcd 658 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_backlight_cleanup(lcd); lcd 667 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct acx565akm_panel *lcd = spi_get_drvdata(spi); lcd 669 drivers/gpu/drm/panel/panel-sony-acx565akm.c drm_panel_remove(&lcd->panel); lcd 671 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (lcd->has_bc) lcd 672 drivers/gpu/drm/panel/panel-sony-acx565akm.c acx565akm_backlight_cleanup(lcd); lcd 674 drivers/gpu/drm/panel/panel-sony-acx565akm.c drm_panel_disable(&lcd->panel); lcd 675 drivers/gpu/drm/panel/panel-sony-acx565akm.c drm_panel_unprepare(&lcd->panel); lcd 91 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c static int jbt_ret_write_0(struct td028ttec1_panel *lcd, u8 reg, int *err) lcd 93 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct spi_device *spi = lcd->spi; lcd 110 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c static int jbt_reg_write_1(struct td028ttec1_panel *lcd, lcd 113 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct spi_device *spi = lcd->spi; lcd 133 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c static int jbt_reg_write_2(struct td028ttec1_panel *lcd, lcd 136 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct spi_device *spi = lcd->spi; lcd 159 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); lcd 165 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_ret_write_0(lcd, 0x00, &ret); lcd 170 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x17, &ret); lcd 173 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE, 0x80, &ret); lcd 176 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_QUAD_RATE, 0x00, &ret); lcd 179 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x16, &ret); lcd 182 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_OUTPUT_CONTROL, 0xfff9, &ret); lcd 185 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_ret_write_0(lcd, JBT_REG_SLEEP_OUT, &ret); lcd 190 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE1, 0x01, &ret); lcd 191 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_DISPLAY_MODE2, 0x00, &ret); lcd 192 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_RGB_FORMAT, 0x60, &ret); lcd 193 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_DRIVE_SYSTEM, 0x10, &ret); lcd 194 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_BOOSTER_OP, 0x56, &ret); lcd 195 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_BOOSTER_MODE, 0x33, &ret); lcd 196 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_BOOSTER_FREQ, 0x11, &ret); lcd 197 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_BOOSTER_FREQ, 0x11, &ret); lcd 198 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_OPAMP_SYSCLK, 0x02, &ret); lcd 199 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_VSC_VOLTAGE, 0x2b, &ret); lcd 200 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_VCOM_VOLTAGE, 0x40, &ret); lcd 201 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_EXT_DISPL, 0x03, &ret); lcd 202 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_DCCLK_DCEV, 0x04, &ret); lcd 207 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_ASW_SLEW, 0x04, &ret); lcd 208 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_DUMMY_DISPLAY, 0x00, &ret); lcd 210 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_SLEEP_OUT_FR_A, 0x11, &ret); lcd 211 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_SLEEP_OUT_FR_B, 0x11, &ret); lcd 212 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_SLEEP_OUT_FR_C, 0x11, &ret); lcd 213 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_D, 0x2040, &ret); lcd 214 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_E, 0x60c0, &ret); lcd 215 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_F, 0x1020, &ret); lcd 216 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_SLEEP_IN_LCCNT_G, 0x60c0, &ret); lcd 218 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_GAMMA1_FINE_1, 0x5533, &ret); lcd 219 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_GAMMA1_FINE_2, 0x00, &ret); lcd 220 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_GAMMA1_INCLINATION, 0x00, &ret); lcd 221 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_GAMMA1_BLUE_OFFSET, 0x00, &ret); lcd 223 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_HCLOCK_VGA, 0x1f0, &ret); lcd 224 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_BLANK_CONTROL, 0x02, &ret); lcd 225 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_BLANK_TH_TV, 0x0804, &ret); lcd 227 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_CKV_ON_OFF, 0x01, &ret); lcd 228 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_CKV_1_2, 0x0000, &ret); lcd 230 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_OEV_TIMING, 0x0d0e, &ret); lcd 231 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_ASW_TIMING_1, 0x11a4, &ret); lcd 232 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_ASW_TIMING_2, 0x0e, &ret); lcd 239 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); lcd 242 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c ret = jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL); lcd 246 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c backlight_enable(lcd->backlight); lcd 253 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); lcd 255 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c backlight_disable(lcd->backlight); lcd 257 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_ret_write_0(lcd, JBT_REG_DISPLAY_OFF, NULL); lcd 264 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct td028ttec1_panel *lcd = to_td028ttec1_device(panel); lcd 266 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_2(lcd, JBT_REG_OUTPUT_CONTROL, 0x8002, NULL); lcd 267 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_ret_write_0(lcd, JBT_REG_SLEEP_IN, NULL); lcd 268 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c jbt_reg_write_1(lcd, JBT_REG_POWER_ON_OFF, 0x00, NULL); lcd 327 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct td028ttec1_panel *lcd; lcd 330 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); lcd 331 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c if (!lcd) lcd 334 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c spi_set_drvdata(spi, lcd); lcd 335 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c lcd->spi = spi; lcd 337 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c lcd->backlight = devm_of_find_backlight(&spi->dev); lcd 338 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c if (IS_ERR(lcd->backlight)) lcd 339 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c return PTR_ERR(lcd->backlight); lcd 350 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c drm_panel_init(&lcd->panel); lcd 351 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c lcd->panel.dev = &lcd->spi->dev; lcd 352 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c lcd->panel.funcs = &td028ttec1_funcs; lcd 354 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c return drm_panel_add(&lcd->panel); lcd 359 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct td028ttec1_panel *lcd = spi_get_drvdata(spi); lcd 361 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c drm_panel_remove(&lcd->panel); lcd 362 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c drm_panel_disable(&lcd->panel); lcd 363 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c drm_panel_unprepare(&lcd->panel); lcd 74 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static int td043mtea1_write(struct td043mtea1_panel *lcd, u8 addr, u8 value) lcd 91 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = spi_sync(lcd->spi, &msg); lcd 93 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c dev_warn(&lcd->spi->dev, "failed to write to LCD reg (%d)\n", lcd 99 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static void td043mtea1_write_gamma(struct td043mtea1_panel *lcd) lcd 101 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c const u16 *gamma = lcd->gamma; lcd 108 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 0x11, val); lcd 112 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 0x12, val); lcd 116 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 0x13, val); lcd 120 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 0x14 + i, gamma[i] & 0xff); lcd 123 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static int td043mtea1_write_mirror(struct td043mtea1_panel *lcd) lcd 127 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (lcd->vmirror) lcd 130 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c return td043mtea1_write(lcd, 4, reg4); lcd 133 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static int td043mtea1_power_on(struct td043mtea1_panel *lcd) lcd 137 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (lcd->powered_on) lcd 140 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = regulator_enable(lcd->vcc_reg); lcd 147 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c gpiod_set_value(lcd->reset_gpio, 0); lcd 149 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 2, TPO_R02_MODE(lcd->mode) | TPO_R02_NCLK_RISING); lcd 150 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 3, TPO_R03_VAL_NORMAL); lcd 151 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 0x20, 0xf0); lcd 152 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 0x21, 0xf0); lcd 153 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write_mirror(lcd); lcd 154 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write_gamma(lcd); lcd 156 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->powered_on = true; lcd 161 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static void td043mtea1_power_off(struct td043mtea1_panel *lcd) lcd 163 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (!lcd->powered_on) lcd 166 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 3, TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM); lcd 168 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c gpiod_set_value(lcd->reset_gpio, 1); lcd 173 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 3, TPO_R03_VAL_STANDBY); lcd 175 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c regulator_disable(lcd->vcc_reg); lcd 177 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->powered_on = false; lcd 187 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 189 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c return snprintf(buf, PAGE_SIZE, "%d\n", lcd->vmirror); lcd 195 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 203 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->vmirror = !!val; lcd 205 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = td043mtea1_write_mirror(lcd); lcd 215 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 217 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c return snprintf(buf, PAGE_SIZE, "%d\n", lcd->mode); lcd 223 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 231 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->mode = val; lcd 234 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 2, val); lcd 242 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 247 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c for (i = 0; i < ARRAY_SIZE(lcd->gamma); i++) { lcd 249 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->gamma[i]); lcd 262 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 274 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->gamma[i] = g[i]; lcd 276 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write_gamma(lcd); lcd 302 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = to_td043mtea1_device(panel); lcd 304 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (!lcd->spi_suspended) lcd 305 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_power_off(lcd); lcd 312 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = to_td043mtea1_device(panel); lcd 319 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (lcd->spi_suspended) lcd 322 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = td043mtea1_power_on(lcd); lcd 324 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c dev_err(&lcd->spi->dev, "%s: power on failed (%d)\n", lcd 388 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 390 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (lcd->powered_on) { lcd 391 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_power_off(lcd); lcd 392 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->powered_on = true; lcd 395 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->spi_suspended = true; lcd 402 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = dev_get_drvdata(dev); lcd 405 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->spi_suspended = false; lcd 407 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (lcd->powered_on) { lcd 408 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->powered_on = false; lcd 409 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = td043mtea1_power_on(lcd); lcd 422 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd; lcd 425 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); lcd 426 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (lcd == NULL) lcd 429 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c spi_set_drvdata(spi, lcd); lcd 430 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->spi = spi; lcd 431 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->mode = TPO_R02_MODE_800x480; lcd 432 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c memcpy(lcd->gamma, td043mtea1_def_gamma, sizeof(lcd->gamma)); lcd 434 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->vcc_reg = devm_regulator_get(&spi->dev, "vcc"); lcd 435 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (IS_ERR(lcd->vcc_reg)) { lcd 437 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c return PTR_ERR(lcd->vcc_reg); lcd 440 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->reset_gpio = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_HIGH); lcd 441 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (IS_ERR(lcd->reset_gpio)) { lcd 443 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c return PTR_ERR(lcd->reset_gpio); lcd 461 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c drm_panel_init(&lcd->panel); lcd 462 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->panel.dev = &lcd->spi->dev; lcd 463 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->panel.funcs = &td043mtea1_funcs; lcd 465 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = drm_panel_add(&lcd->panel); lcd 476 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct td043mtea1_panel *lcd = spi_get_drvdata(spi); lcd 478 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c drm_panel_remove(&lcd->panel); lcd 479 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c drm_panel_disable(&lcd->panel); lcd 480 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c drm_panel_unprepare(&lcd->panel); lcd 88 drivers/hid/hid-picolcd.h struct lcd_device *lcd; lcd 75 drivers/hid/hid-picolcd_lcd.c data->lcd = ldev; lcd 82 drivers/hid/hid-picolcd_lcd.c struct lcd_device *ldev = data->lcd; lcd 84 drivers/hid/hid-picolcd_lcd.c data->lcd = NULL; lcd 90 drivers/hid/hid-picolcd_lcd.c if (!data->lcd) lcd 92 drivers/hid/hid-picolcd_lcd.c return picolcd_set_contrast(data->lcd, data->lcd_contrast); lcd 50 drivers/input/misc/yealink.c u8 lcd[24]; lcd 374 drivers/input/misc/yealink.c len = sizeof(yld->master.s.lcd) - ix; lcd 545 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c CYGNUS_PIN_GROUP(lcd, 0x10, 20, 0), lcd 684 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c CYGNUS_PIN_FUNCTION(lcd), lcd 835 drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c DB8500_FUNC_GROUPS(lcd, "lcdvsi0_a_1", "lcdvsi1_a_1", "lcd_d0_d7_a_1", lcd 911 drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c FUNCTION(lcd), lcd 1410 drivers/pinctrl/sh-pfc/pfc-emev2.c SH_PFC_FUNCTION(lcd), lcd 3652 drivers/pinctrl/sh-pfc/pfc-sh73a0.c SH_PFC_FUNCTION(lcd), lcd 159 drivers/video/backlight/ams369fg06.c static int ams369fg06_spi_write_byte(struct ams369fg06 *lcd, int addr, int data) lcd 174 drivers/video/backlight/ams369fg06.c return spi_sync(lcd->spi, &msg); lcd 177 drivers/video/backlight/ams369fg06.c static int ams369fg06_spi_write(struct ams369fg06 *lcd, unsigned char address, lcd 183 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write_byte(lcd, 0x70, address); lcd 185 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write_byte(lcd, 0x72, command); lcd 190 drivers/video/backlight/ams369fg06.c static int ams369fg06_panel_send_sequence(struct ams369fg06 *lcd, lcd 197 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); lcd 209 drivers/video/backlight/ams369fg06.c static int _ams369fg06_gamma_ctl(struct ams369fg06 *lcd, lcd 216 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write(lcd, 0x40 + i, gamma[i]); lcd 217 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write(lcd, 0x50 + i, gamma[i+7*1]); lcd 218 drivers/video/backlight/ams369fg06.c ret = ams369fg06_spi_write(lcd, 0x60 + i, gamma[i+7*2]); lcd 220 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "failed to set gamma table.\n"); lcd 229 drivers/video/backlight/ams369fg06.c static int ams369fg06_gamma_ctl(struct ams369fg06 *lcd, int brightness) lcd 245 drivers/video/backlight/ams369fg06.c ret = _ams369fg06_gamma_ctl(lcd, gamma_table.gamma_22_table[gamma]); lcd 250 drivers/video/backlight/ams369fg06.c static int ams369fg06_ldi_init(struct ams369fg06 *lcd) lcd 259 drivers/video/backlight/ams369fg06.c ret = ams369fg06_panel_send_sequence(lcd, init_seq[i]); lcd 267 drivers/video/backlight/ams369fg06.c static int ams369fg06_ldi_enable(struct ams369fg06 *lcd) lcd 276 drivers/video/backlight/ams369fg06.c ret = ams369fg06_panel_send_sequence(lcd, init_seq[i]); lcd 284 drivers/video/backlight/ams369fg06.c static int ams369fg06_ldi_disable(struct ams369fg06 *lcd) lcd 294 drivers/video/backlight/ams369fg06.c ret = ams369fg06_panel_send_sequence(lcd, init_seq[i]); lcd 307 drivers/video/backlight/ams369fg06.c static int ams369fg06_power_on(struct ams369fg06 *lcd) lcd 313 drivers/video/backlight/ams369fg06.c pd = lcd->lcd_pd; lcd 314 drivers/video/backlight/ams369fg06.c bd = lcd->bd; lcd 317 drivers/video/backlight/ams369fg06.c pd->power_on(lcd->ld, 1); lcd 322 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "reset is NULL.\n"); lcd 326 drivers/video/backlight/ams369fg06.c pd->reset(lcd->ld); lcd 329 drivers/video/backlight/ams369fg06.c ret = ams369fg06_ldi_init(lcd); lcd 331 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "failed to initialize ldi.\n"); lcd 335 drivers/video/backlight/ams369fg06.c ret = ams369fg06_ldi_enable(lcd); lcd 337 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "failed to enable ldi.\n"); lcd 342 drivers/video/backlight/ams369fg06.c ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); lcd 344 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "lcd gamma setting failed.\n"); lcd 351 drivers/video/backlight/ams369fg06.c static int ams369fg06_power_off(struct ams369fg06 *lcd) lcd 356 drivers/video/backlight/ams369fg06.c pd = lcd->lcd_pd; lcd 358 drivers/video/backlight/ams369fg06.c ret = ams369fg06_ldi_disable(lcd); lcd 360 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "lcd setting failed.\n"); lcd 367 drivers/video/backlight/ams369fg06.c pd->power_on(lcd->ld, 0); lcd 372 drivers/video/backlight/ams369fg06.c static int ams369fg06_power(struct ams369fg06 *lcd, int power) lcd 377 drivers/video/backlight/ams369fg06.c !ams369fg06_power_is_on(lcd->power)) lcd 378 drivers/video/backlight/ams369fg06.c ret = ams369fg06_power_on(lcd); lcd 380 drivers/video/backlight/ams369fg06.c ams369fg06_power_is_on(lcd->power)) lcd 381 drivers/video/backlight/ams369fg06.c ret = ams369fg06_power_off(lcd); lcd 384 drivers/video/backlight/ams369fg06.c lcd->power = power; lcd 391 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = lcd_get_data(ld); lcd 393 drivers/video/backlight/ams369fg06.c return lcd->power; lcd 398 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = lcd_get_data(ld); lcd 402 drivers/video/backlight/ams369fg06.c dev_err(lcd->dev, "power value should be 0, 1 or 4.\n"); lcd 406 drivers/video/backlight/ams369fg06.c return ams369fg06_power(lcd, power); lcd 413 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = bl_get_data(bd); lcd 422 drivers/video/backlight/ams369fg06.c ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); lcd 443 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = NULL; lcd 448 drivers/video/backlight/ams369fg06.c lcd = devm_kzalloc(&spi->dev, sizeof(struct ams369fg06), GFP_KERNEL); lcd 449 drivers/video/backlight/ams369fg06.c if (!lcd) lcd 461 drivers/video/backlight/ams369fg06.c lcd->spi = spi; lcd 462 drivers/video/backlight/ams369fg06.c lcd->dev = &spi->dev; lcd 464 drivers/video/backlight/ams369fg06.c lcd->lcd_pd = dev_get_platdata(&spi->dev); lcd 465 drivers/video/backlight/ams369fg06.c if (!lcd->lcd_pd) { lcd 470 drivers/video/backlight/ams369fg06.c ld = devm_lcd_device_register(&spi->dev, "ams369fg06", &spi->dev, lcd, lcd 475 drivers/video/backlight/ams369fg06.c lcd->ld = ld; lcd 482 drivers/video/backlight/ams369fg06.c &spi->dev, lcd, lcd 488 drivers/video/backlight/ams369fg06.c lcd->bd = bd; lcd 490 drivers/video/backlight/ams369fg06.c if (!lcd->lcd_pd->lcd_enabled) { lcd 496 drivers/video/backlight/ams369fg06.c lcd->power = FB_BLANK_POWERDOWN; lcd 498 drivers/video/backlight/ams369fg06.c ams369fg06_power(lcd, FB_BLANK_UNBLANK); lcd 500 drivers/video/backlight/ams369fg06.c lcd->power = FB_BLANK_UNBLANK; lcd 503 drivers/video/backlight/ams369fg06.c spi_set_drvdata(spi, lcd); lcd 512 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = spi_get_drvdata(spi); lcd 514 drivers/video/backlight/ams369fg06.c ams369fg06_power(lcd, FB_BLANK_POWERDOWN); lcd 521 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = dev_get_drvdata(dev); lcd 523 drivers/video/backlight/ams369fg06.c dev_dbg(dev, "lcd->power = %d\n", lcd->power); lcd 529 drivers/video/backlight/ams369fg06.c return ams369fg06_power(lcd, FB_BLANK_POWERDOWN); lcd 534 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = dev_get_drvdata(dev); lcd 536 drivers/video/backlight/ams369fg06.c lcd->power = FB_BLANK_POWERDOWN; lcd 538 drivers/video/backlight/ams369fg06.c return ams369fg06_power(lcd, FB_BLANK_UNBLANK); lcd 547 drivers/video/backlight/ams369fg06.c struct ams369fg06 *lcd = spi_get_drvdata(spi); lcd 549 drivers/video/backlight/ams369fg06.c ams369fg06_power(lcd, FB_BLANK_POWERDOWN); lcd 100 drivers/video/backlight/corgi_lcd.c static int corgi_ssp_lcdtg_send(struct corgi_lcd *lcd, int reg, uint8_t val); lcd 111 drivers/video/backlight/corgi_lcd.c static void lcdtg_ssp_i2c_send(struct corgi_lcd *lcd, uint8_t data) lcd 113 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, data); lcd 117 drivers/video/backlight/corgi_lcd.c static void lcdtg_i2c_send_bit(struct corgi_lcd *lcd, uint8_t data) lcd 119 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, data); lcd 120 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, data | POWER0_COM_DCLK); lcd 121 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, data); lcd 124 drivers/video/backlight/corgi_lcd.c static void lcdtg_i2c_send_start(struct corgi_lcd *lcd, uint8_t base) lcd 126 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, base | POWER0_COM_DCLK | POWER0_COM_DOUT); lcd 127 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, base | POWER0_COM_DCLK); lcd 128 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, base); lcd 131 drivers/video/backlight/corgi_lcd.c static void lcdtg_i2c_send_stop(struct corgi_lcd *lcd, uint8_t base) lcd 133 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, base); lcd 134 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, base | POWER0_COM_DCLK); lcd 135 drivers/video/backlight/corgi_lcd.c lcdtg_ssp_i2c_send(lcd, base | POWER0_COM_DCLK | POWER0_COM_DOUT); lcd 138 drivers/video/backlight/corgi_lcd.c static void lcdtg_i2c_send_byte(struct corgi_lcd *lcd, lcd 145 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_bit(lcd, base | POWER0_COM_DOUT); lcd 147 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_bit(lcd, base); lcd 152 drivers/video/backlight/corgi_lcd.c static void lcdtg_i2c_wait_ack(struct corgi_lcd *lcd, uint8_t base) lcd 154 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_bit(lcd, base); lcd 157 drivers/video/backlight/corgi_lcd.c static void lcdtg_set_common_voltage(struct corgi_lcd *lcd, lcd 161 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_start(lcd, base_data); lcd 162 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_byte(lcd, base_data, 0x9c); lcd 163 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_wait_ack(lcd, base_data); lcd 164 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_byte(lcd, base_data, 0x00); lcd 165 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_wait_ack(lcd, base_data); lcd 166 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_byte(lcd, base_data, data); lcd 167 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_wait_ack(lcd, base_data); lcd 168 drivers/video/backlight/corgi_lcd.c lcdtg_i2c_send_stop(lcd, base_data); lcd 171 drivers/video/backlight/corgi_lcd.c static int corgi_ssp_lcdtg_send(struct corgi_lcd *lcd, int adrs, uint8_t data) lcd 177 drivers/video/backlight/corgi_lcd.c .tx_buf = lcd->buf, lcd 180 drivers/video/backlight/corgi_lcd.c lcd->buf[0] = ((adrs & 0x07) << 5) | (data & 0x1f); lcd 184 drivers/video/backlight/corgi_lcd.c return spi_sync(lcd->spi_dev, &msg); lcd 188 drivers/video/backlight/corgi_lcd.c static void lcdtg_set_phadadj(struct corgi_lcd *lcd, int mode) lcd 206 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PHACTRL_ADRS, adj); lcd 209 drivers/video/backlight/corgi_lcd.c static void corgi_lcd_power_on(struct corgi_lcd *lcd) lcd 214 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PICTRL_ADRS, lcd 219 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 223 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 227 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 232 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 238 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PICTRL_ADRS, lcd 246 drivers/video/backlight/corgi_lcd.c lcdtg_set_common_voltage(lcd, POWER0_DAC_ON | POWER0_COM_OFF | lcd 250 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 255 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 260 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PICTRL_ADRS, PICTRL_INIT_STATE); lcd 263 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 268 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 272 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PICTRL_ADRS, 0); lcd 275 drivers/video/backlight/corgi_lcd.c lcdtg_set_phadadj(lcd, lcd->mode); lcd 278 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POLCTRL_ADRS, lcd 284 drivers/video/backlight/corgi_lcd.c switch (lcd->mode) { lcd 286 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, RESCTL_ADRS, RESCTL_VGA); lcd 290 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, RESCTL_ADRS, RESCTL_QVGA); lcd 295 drivers/video/backlight/corgi_lcd.c static void corgi_lcd_power_off(struct corgi_lcd *lcd) lcd 301 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 305 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PICTRL_ADRS, PICTRL_COM_SIGNAL_OFF); lcd 306 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 310 drivers/video/backlight/corgi_lcd.c lcdtg_set_common_voltage(lcd, POWER0_DAC_ON | POWER0_COM_OFF | lcd 314 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 318 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 322 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, PICTRL_ADRS, lcd 327 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, lcd 331 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, POWERREG1_ADRS, lcd 337 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = lcd_get_data(ld); lcd 343 drivers/video/backlight/corgi_lcd.c if (lcd->mode == mode) lcd 346 drivers/video/backlight/corgi_lcd.c lcdtg_set_phadadj(lcd, mode); lcd 350 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, RESCTL_ADRS, RESCTL_VGA); lcd 354 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, RESCTL_ADRS, RESCTL_QVGA); lcd 358 drivers/video/backlight/corgi_lcd.c lcd->mode = mode; lcd 364 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = lcd_get_data(ld); lcd 366 drivers/video/backlight/corgi_lcd.c if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) lcd 367 drivers/video/backlight/corgi_lcd.c corgi_lcd_power_on(lcd); lcd 369 drivers/video/backlight/corgi_lcd.c if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) lcd 370 drivers/video/backlight/corgi_lcd.c corgi_lcd_power_off(lcd); lcd 372 drivers/video/backlight/corgi_lcd.c lcd->power = power; lcd 378 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = lcd_get_data(ld); lcd 380 drivers/video/backlight/corgi_lcd.c return lcd->power; lcd 391 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = bl_get_data(bd); lcd 393 drivers/video/backlight/corgi_lcd.c return lcd->intensity; lcd 396 drivers/video/backlight/corgi_lcd.c static int corgi_bl_set_intensity(struct corgi_lcd *lcd, int intensity) lcd 403 drivers/video/backlight/corgi_lcd.c corgi_ssp_lcdtg_send(lcd, DUTYCTRL_ADRS, intensity); lcd 406 drivers/video/backlight/corgi_lcd.c cont = !!(intensity & 0x20) ^ lcd->gpio_backlight_cont_inverted; lcd 408 drivers/video/backlight/corgi_lcd.c if (gpio_is_valid(lcd->gpio_backlight_cont)) lcd 409 drivers/video/backlight/corgi_lcd.c gpio_set_value_cansleep(lcd->gpio_backlight_cont, cont); lcd 411 drivers/video/backlight/corgi_lcd.c if (gpio_is_valid(lcd->gpio_backlight_on)) lcd 412 drivers/video/backlight/corgi_lcd.c gpio_set_value_cansleep(lcd->gpio_backlight_on, intensity); lcd 414 drivers/video/backlight/corgi_lcd.c if (lcd->kick_battery) lcd 415 drivers/video/backlight/corgi_lcd.c lcd->kick_battery(); lcd 417 drivers/video/backlight/corgi_lcd.c lcd->intensity = intensity; lcd 423 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = bl_get_data(bd); lcd 435 drivers/video/backlight/corgi_lcd.c if ((corgibl_flags & CORGIBL_BATTLOW) && intensity > lcd->limit_mask) lcd 436 drivers/video/backlight/corgi_lcd.c intensity = lcd->limit_mask; lcd 438 drivers/video/backlight/corgi_lcd.c return corgi_bl_set_intensity(lcd, intensity); lcd 460 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = dev_get_drvdata(dev); lcd 463 drivers/video/backlight/corgi_lcd.c corgi_bl_set_intensity(lcd, 0); lcd 464 drivers/video/backlight/corgi_lcd.c corgi_lcd_set_power(lcd->lcd_dev, FB_BLANK_POWERDOWN); lcd 470 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = dev_get_drvdata(dev); lcd 473 drivers/video/backlight/corgi_lcd.c corgi_lcd_set_power(lcd->lcd_dev, FB_BLANK_UNBLANK); lcd 474 drivers/video/backlight/corgi_lcd.c backlight_update_status(lcd->bl_dev); lcd 481 drivers/video/backlight/corgi_lcd.c static int setup_gpio_backlight(struct corgi_lcd *lcd, lcd 484 drivers/video/backlight/corgi_lcd.c struct spi_device *spi = lcd->spi_dev; lcd 487 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_on = -1; lcd 488 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_cont = -1; lcd 500 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_on = pdata->gpio_backlight_on; lcd 501 drivers/video/backlight/corgi_lcd.c gpio_direction_output(lcd->gpio_backlight_on, 0); lcd 514 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_cont = pdata->gpio_backlight_cont; lcd 519 drivers/video/backlight/corgi_lcd.c if (gpio_is_valid(lcd->gpio_backlight_on)) { lcd 520 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_cont_inverted = 1; lcd 521 drivers/video/backlight/corgi_lcd.c gpio_direction_output(lcd->gpio_backlight_cont, 1); lcd 523 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_cont_inverted = 0; lcd 524 drivers/video/backlight/corgi_lcd.c gpio_direction_output(lcd->gpio_backlight_cont, 0); lcd 534 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd; lcd 542 drivers/video/backlight/corgi_lcd.c lcd = devm_kzalloc(&spi->dev, sizeof(struct corgi_lcd), GFP_KERNEL); lcd 543 drivers/video/backlight/corgi_lcd.c if (!lcd) lcd 546 drivers/video/backlight/corgi_lcd.c lcd->spi_dev = spi; lcd 548 drivers/video/backlight/corgi_lcd.c lcd->lcd_dev = devm_lcd_device_register(&spi->dev, "corgi_lcd", lcd 549 drivers/video/backlight/corgi_lcd.c &spi->dev, lcd, &corgi_lcd_ops); lcd 550 drivers/video/backlight/corgi_lcd.c if (IS_ERR(lcd->lcd_dev)) lcd 551 drivers/video/backlight/corgi_lcd.c return PTR_ERR(lcd->lcd_dev); lcd 553 drivers/video/backlight/corgi_lcd.c lcd->power = FB_BLANK_POWERDOWN; lcd 554 drivers/video/backlight/corgi_lcd.c lcd->mode = (pdata) ? pdata->init_mode : CORGI_LCD_MODE_VGA; lcd 559 drivers/video/backlight/corgi_lcd.c lcd->bl_dev = devm_backlight_device_register(&spi->dev, "corgi_bl", lcd 560 drivers/video/backlight/corgi_lcd.c &spi->dev, lcd, &corgi_bl_ops, lcd 562 drivers/video/backlight/corgi_lcd.c if (IS_ERR(lcd->bl_dev)) lcd 563 drivers/video/backlight/corgi_lcd.c return PTR_ERR(lcd->bl_dev); lcd 565 drivers/video/backlight/corgi_lcd.c lcd->bl_dev->props.brightness = pdata->default_intensity; lcd 566 drivers/video/backlight/corgi_lcd.c lcd->bl_dev->props.power = FB_BLANK_UNBLANK; lcd 568 drivers/video/backlight/corgi_lcd.c ret = setup_gpio_backlight(lcd, pdata); lcd 572 drivers/video/backlight/corgi_lcd.c lcd->kick_battery = pdata->kick_battery; lcd 574 drivers/video/backlight/corgi_lcd.c spi_set_drvdata(spi, lcd); lcd 575 drivers/video/backlight/corgi_lcd.c corgi_lcd_set_power(lcd->lcd_dev, FB_BLANK_UNBLANK); lcd 576 drivers/video/backlight/corgi_lcd.c backlight_update_status(lcd->bl_dev); lcd 578 drivers/video/backlight/corgi_lcd.c lcd->limit_mask = pdata->limit_mask; lcd 579 drivers/video/backlight/corgi_lcd.c the_corgi_lcd = lcd; lcd 585 drivers/video/backlight/corgi_lcd.c struct corgi_lcd *lcd = spi_get_drvdata(spi); lcd 587 drivers/video/backlight/corgi_lcd.c lcd->bl_dev->props.power = FB_BLANK_UNBLANK; lcd 588 drivers/video/backlight/corgi_lcd.c lcd->bl_dev->props.brightness = 0; lcd 589 drivers/video/backlight/corgi_lcd.c backlight_update_status(lcd->bl_dev); lcd 590 drivers/video/backlight/corgi_lcd.c corgi_lcd_set_power(lcd->lcd_dev, FB_BLANK_POWERDOWN); lcd 217 drivers/video/backlight/hx8357.c struct hx8357_data *lcd = lcd_get_data(lcdev); lcd 253 drivers/video/backlight/hx8357.c ret = spi_sync(lcd->spi, &msg); lcd 321 drivers/video/backlight/hx8357.c struct hx8357_data *lcd = lcd_get_data(lcdev); lcd 324 drivers/video/backlight/hx8357.c gpio_set_value(lcd->reset, 1); lcd 326 drivers/video/backlight/hx8357.c gpio_set_value(lcd->reset, 0); lcd 328 drivers/video/backlight/hx8357.c gpio_set_value(lcd->reset, 1); lcd 336 drivers/video/backlight/hx8357.c struct hx8357_data *lcd = lcd_get_data(lcdev); lcd 343 drivers/video/backlight/hx8357.c if (lcd->use_im_pins) { lcd 344 drivers/video/backlight/hx8357.c gpio_set_value_cansleep(lcd->im_pins[0], 1); lcd 345 drivers/video/backlight/hx8357.c gpio_set_value_cansleep(lcd->im_pins[1], 0); lcd 346 drivers/video/backlight/hx8357.c gpio_set_value_cansleep(lcd->im_pins[2], 1); lcd 540 drivers/video/backlight/hx8357.c struct hx8357_data *lcd = lcd_get_data(lcdev); lcd 543 drivers/video/backlight/hx8357.c if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->state)) lcd 545 drivers/video/backlight/hx8357.c else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->state)) lcd 549 drivers/video/backlight/hx8357.c lcd->state = power; lcd 558 drivers/video/backlight/hx8357.c struct hx8357_data *lcd = lcd_get_data(lcdev); lcd 560 drivers/video/backlight/hx8357.c return lcd->state; lcd 584 drivers/video/backlight/hx8357.c struct hx8357_data *lcd; lcd 588 drivers/video/backlight/hx8357.c lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); lcd 589 drivers/video/backlight/hx8357.c if (!lcd) lcd 598 drivers/video/backlight/hx8357.c lcd->spi = spi; lcd 604 drivers/video/backlight/hx8357.c lcd->reset = of_get_named_gpio(spi->dev.of_node, "gpios-reset", 0); lcd 605 drivers/video/backlight/hx8357.c if (!gpio_is_valid(lcd->reset)) { lcd 610 drivers/video/backlight/hx8357.c ret = devm_gpio_request_one(&spi->dev, lcd->reset, lcd 616 drivers/video/backlight/hx8357.c lcd->reset, ret); lcd 621 drivers/video/backlight/hx8357.c lcd->use_im_pins = 1; lcd 624 drivers/video/backlight/hx8357.c lcd->im_pins[i] = of_get_named_gpio(spi->dev.of_node, lcd 626 drivers/video/backlight/hx8357.c if (lcd->im_pins[i] == -EPROBE_DEFER) { lcd 630 drivers/video/backlight/hx8357.c if (!gpio_is_valid(lcd->im_pins[i])) { lcd 635 drivers/video/backlight/hx8357.c ret = devm_gpio_request_one(&spi->dev, lcd->im_pins[i], lcd 640 drivers/video/backlight/hx8357.c lcd->im_pins[i], ret); lcd 645 drivers/video/backlight/hx8357.c lcd->use_im_pins = 0; lcd 648 drivers/video/backlight/hx8357.c lcdev = devm_lcd_device_register(&spi->dev, "mxsfb", &spi->dev, lcd, lcd 438 drivers/video/backlight/ili922x.c static int ili922x_lcd_power(struct ili922x *lcd, int power) lcd 442 drivers/video/backlight/ili922x.c if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) lcd 443 drivers/video/backlight/ili922x.c ret = ili922x_poweron(lcd->spi); lcd 444 drivers/video/backlight/ili922x.c else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) lcd 445 drivers/video/backlight/ili922x.c ret = ili922x_poweroff(lcd->spi); lcd 448 drivers/video/backlight/ili922x.c lcd->power = power; lcd 475 drivers/video/backlight/ili922x.c struct lcd_device *lcd; lcd 510 drivers/video/backlight/ili922x.c lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili, lcd 512 drivers/video/backlight/ili922x.c if (IS_ERR(lcd)) { lcd 514 drivers/video/backlight/ili922x.c return PTR_ERR(lcd); lcd 517 drivers/video/backlight/ili922x.c ili->ld = lcd; lcd 75 drivers/video/backlight/ili9320.c static void ili9320_reset(struct ili9320 *lcd) lcd 77 drivers/video/backlight/ili9320.c struct ili9320_platdata *cfg = lcd->platdata; lcd 89 drivers/video/backlight/ili9320.c static inline int ili9320_init_chip(struct ili9320 *lcd) lcd 93 drivers/video/backlight/ili9320.c ili9320_reset(lcd); lcd 95 drivers/video/backlight/ili9320.c ret = lcd->client->init(lcd, lcd->platdata); lcd 97 drivers/video/backlight/ili9320.c dev_err(lcd->dev, "failed to initialise display\n"); lcd 101 drivers/video/backlight/ili9320.c lcd->initialised = 1; lcd 105 drivers/video/backlight/ili9320.c static inline int ili9320_power_on(struct ili9320 *lcd) lcd 107 drivers/video/backlight/ili9320.c if (!lcd->initialised) lcd 108 drivers/video/backlight/ili9320.c ili9320_init_chip(lcd); lcd 110 drivers/video/backlight/ili9320.c lcd->display1 |= (ILI9320_DISPLAY1_D(3) | ILI9320_DISPLAY1_BASEE); lcd 111 drivers/video/backlight/ili9320.c ili9320_write(lcd, ILI9320_DISPLAY1, lcd->display1); lcd 116 drivers/video/backlight/ili9320.c static inline int ili9320_power_off(struct ili9320 *lcd) lcd 118 drivers/video/backlight/ili9320.c lcd->display1 &= ~(ILI9320_DISPLAY1_D(3) | ILI9320_DISPLAY1_BASEE); lcd 119 drivers/video/backlight/ili9320.c ili9320_write(lcd, ILI9320_DISPLAY1, lcd->display1); lcd 126 drivers/video/backlight/ili9320.c static int ili9320_power(struct ili9320 *lcd, int power) lcd 130 drivers/video/backlight/ili9320.c dev_dbg(lcd->dev, "power %d => %d\n", lcd->power, power); lcd 132 drivers/video/backlight/ili9320.c if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) lcd 133 drivers/video/backlight/ili9320.c ret = ili9320_power_on(lcd); lcd 134 drivers/video/backlight/ili9320.c else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) lcd 135 drivers/video/backlight/ili9320.c ret = ili9320_power_off(lcd); lcd 138 drivers/video/backlight/ili9320.c lcd->power = power; lcd 140 drivers/video/backlight/ili9320.c dev_warn(lcd->dev, "failed to set power mode %d\n", power); lcd 145 drivers/video/backlight/ili9320.c static inline struct ili9320 *to_our_lcd(struct lcd_device *lcd) lcd 147 drivers/video/backlight/ili9320.c return lcd_get_data(lcd); lcd 152 drivers/video/backlight/ili9320.c struct ili9320 *lcd = to_our_lcd(ld); lcd 154 drivers/video/backlight/ili9320.c return ili9320_power(lcd, power); lcd 159 drivers/video/backlight/ili9320.c struct ili9320 *lcd = to_our_lcd(ld); lcd 161 drivers/video/backlight/ili9320.c return lcd->power; lcd 201 drivers/video/backlight/ili9320.c struct lcd_device *lcd; lcd 233 drivers/video/backlight/ili9320.c lcd = devm_lcd_device_register(&spi->dev, "ili9320", dev, ili, lcd 235 drivers/video/backlight/ili9320.c if (IS_ERR(lcd)) { lcd 237 drivers/video/backlight/ili9320.c return PTR_ERR(lcd); lcd 240 drivers/video/backlight/ili9320.c ili->lcd = lcd; lcd 262 drivers/video/backlight/ili9320.c int ili9320_suspend(struct ili9320 *lcd) lcd 266 drivers/video/backlight/ili9320.c ret = ili9320_power(lcd, FB_BLANK_POWERDOWN); lcd 268 drivers/video/backlight/ili9320.c if (lcd->platdata->suspend == ILI9320_SUSPEND_DEEP) { lcd 269 drivers/video/backlight/ili9320.c ili9320_write(lcd, ILI9320_POWER1, lcd->power1 | lcd 272 drivers/video/backlight/ili9320.c lcd->initialised = 0; lcd 279 drivers/video/backlight/ili9320.c int ili9320_resume(struct ili9320 *lcd) lcd 281 drivers/video/backlight/ili9320.c dev_info(lcd->dev, "resuming from power state %d\n", lcd->power); lcd 283 drivers/video/backlight/ili9320.c if (lcd->platdata->suspend == ILI9320_SUSPEND_DEEP) lcd 284 drivers/video/backlight/ili9320.c ili9320_write(lcd, ILI9320_POWER1, 0x00); lcd 286 drivers/video/backlight/ili9320.c return ili9320_power(lcd, FB_BLANK_UNBLANK); lcd 292 drivers/video/backlight/ili9320.c void ili9320_shutdown(struct ili9320 *lcd) lcd 294 drivers/video/backlight/ili9320.c ili9320_power(lcd, FB_BLANK_POWERDOWN); lcd 43 drivers/video/backlight/ili9320.h struct lcd_device *lcd; /* LCD device we created. */ lcd 71 drivers/video/backlight/ili9320.h extern int ili9320_remove(struct ili9320 *lcd); lcd 72 drivers/video/backlight/ili9320.h extern void ili9320_shutdown(struct ili9320 *lcd); lcd 76 drivers/video/backlight/ili9320.h extern int ili9320_suspend(struct ili9320 *lcd); lcd 77 drivers/video/backlight/ili9320.h extern int ili9320_resume(struct ili9320 *lcd); lcd 250 drivers/video/backlight/lcd.c struct lcd_device *lcd = *(struct lcd_device **)res; lcd 252 drivers/video/backlight/lcd.c lcd_device_unregister(lcd); lcd 280 drivers/video/backlight/lcd.c struct lcd_device **ptr, *lcd; lcd 286 drivers/video/backlight/lcd.c lcd = lcd_device_register(name, parent, devdata, ops); lcd 287 drivers/video/backlight/lcd.c if (!IS_ERR(lcd)) { lcd 288 drivers/video/backlight/lcd.c *ptr = lcd; lcd 294 drivers/video/backlight/lcd.c return lcd; lcd 112 drivers/video/backlight/lms501kf03.c static int lms501kf03_spi_write_byte(struct lms501kf03 *lcd, int addr, int data) lcd 127 drivers/video/backlight/lms501kf03.c return spi_sync(lcd->spi, &msg); lcd 130 drivers/video/backlight/lms501kf03.c static int lms501kf03_spi_write(struct lms501kf03 *lcd, unsigned char address, lcd 133 drivers/video/backlight/lms501kf03.c return lms501kf03_spi_write_byte(lcd, address, command); lcd 136 drivers/video/backlight/lms501kf03.c static int lms501kf03_panel_send_sequence(struct lms501kf03 *lcd, lcd 144 drivers/video/backlight/lms501kf03.c ret = lms501kf03_spi_write(lcd, COMMAND_ONLY, wbuf[i]); lcd 146 drivers/video/backlight/lms501kf03.c ret = lms501kf03_spi_write(lcd, DATA_ONLY, wbuf[i]); lcd 155 drivers/video/backlight/lms501kf03.c static int lms501kf03_ldi_init(struct lms501kf03 *lcd) lcd 189 drivers/video/backlight/lms501kf03.c ret = lms501kf03_panel_send_sequence(lcd, init_seq[i], lcd 204 drivers/video/backlight/lms501kf03.c static int lms501kf03_ldi_enable(struct lms501kf03 *lcd) lcd 206 drivers/video/backlight/lms501kf03.c return lms501kf03_panel_send_sequence(lcd, seq_display_on, lcd 210 drivers/video/backlight/lms501kf03.c static int lms501kf03_ldi_disable(struct lms501kf03 *lcd) lcd 212 drivers/video/backlight/lms501kf03.c return lms501kf03_panel_send_sequence(lcd, seq_display_off, lcd 221 drivers/video/backlight/lms501kf03.c static int lms501kf03_power_on(struct lms501kf03 *lcd) lcd 226 drivers/video/backlight/lms501kf03.c pd = lcd->lcd_pd; lcd 229 drivers/video/backlight/lms501kf03.c dev_err(lcd->dev, "power_on is NULL.\n"); lcd 233 drivers/video/backlight/lms501kf03.c pd->power_on(lcd->ld, 1); lcd 237 drivers/video/backlight/lms501kf03.c dev_err(lcd->dev, "reset is NULL.\n"); lcd 241 drivers/video/backlight/lms501kf03.c pd->reset(lcd->ld); lcd 244 drivers/video/backlight/lms501kf03.c ret = lms501kf03_ldi_init(lcd); lcd 246 drivers/video/backlight/lms501kf03.c dev_err(lcd->dev, "failed to initialize ldi.\n"); lcd 250 drivers/video/backlight/lms501kf03.c ret = lms501kf03_ldi_enable(lcd); lcd 252 drivers/video/backlight/lms501kf03.c dev_err(lcd->dev, "failed to enable ldi.\n"); lcd 259 drivers/video/backlight/lms501kf03.c static int lms501kf03_power_off(struct lms501kf03 *lcd) lcd 264 drivers/video/backlight/lms501kf03.c pd = lcd->lcd_pd; lcd 266 drivers/video/backlight/lms501kf03.c ret = lms501kf03_ldi_disable(lcd); lcd 268 drivers/video/backlight/lms501kf03.c dev_err(lcd->dev, "lcd setting failed.\n"); lcd 274 drivers/video/backlight/lms501kf03.c pd->power_on(lcd->ld, 0); lcd 279 drivers/video/backlight/lms501kf03.c static int lms501kf03_power(struct lms501kf03 *lcd, int power) lcd 284 drivers/video/backlight/lms501kf03.c !lms501kf03_power_is_on(lcd->power)) lcd 285 drivers/video/backlight/lms501kf03.c ret = lms501kf03_power_on(lcd); lcd 287 drivers/video/backlight/lms501kf03.c lms501kf03_power_is_on(lcd->power)) lcd 288 drivers/video/backlight/lms501kf03.c ret = lms501kf03_power_off(lcd); lcd 291 drivers/video/backlight/lms501kf03.c lcd->power = power; lcd 298 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = lcd_get_data(ld); lcd 300 drivers/video/backlight/lms501kf03.c return lcd->power; lcd 305 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = lcd_get_data(ld); lcd 309 drivers/video/backlight/lms501kf03.c dev_err(lcd->dev, "power value should be 0, 1 or 4.\n"); lcd 313 drivers/video/backlight/lms501kf03.c return lms501kf03_power(lcd, power); lcd 323 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = NULL; lcd 327 drivers/video/backlight/lms501kf03.c lcd = devm_kzalloc(&spi->dev, sizeof(struct lms501kf03), GFP_KERNEL); lcd 328 drivers/video/backlight/lms501kf03.c if (!lcd) lcd 340 drivers/video/backlight/lms501kf03.c lcd->spi = spi; lcd 341 drivers/video/backlight/lms501kf03.c lcd->dev = &spi->dev; lcd 343 drivers/video/backlight/lms501kf03.c lcd->lcd_pd = dev_get_platdata(&spi->dev); lcd 344 drivers/video/backlight/lms501kf03.c if (!lcd->lcd_pd) { lcd 349 drivers/video/backlight/lms501kf03.c ld = devm_lcd_device_register(&spi->dev, "lms501kf03", &spi->dev, lcd, lcd 354 drivers/video/backlight/lms501kf03.c lcd->ld = ld; lcd 356 drivers/video/backlight/lms501kf03.c if (!lcd->lcd_pd->lcd_enabled) { lcd 362 drivers/video/backlight/lms501kf03.c lcd->power = FB_BLANK_POWERDOWN; lcd 364 drivers/video/backlight/lms501kf03.c lms501kf03_power(lcd, FB_BLANK_UNBLANK); lcd 366 drivers/video/backlight/lms501kf03.c lcd->power = FB_BLANK_UNBLANK; lcd 369 drivers/video/backlight/lms501kf03.c spi_set_drvdata(spi, lcd); lcd 378 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = spi_get_drvdata(spi); lcd 380 drivers/video/backlight/lms501kf03.c lms501kf03_power(lcd, FB_BLANK_POWERDOWN); lcd 387 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = dev_get_drvdata(dev); lcd 389 drivers/video/backlight/lms501kf03.c dev_dbg(dev, "lcd->power = %d\n", lcd->power); lcd 395 drivers/video/backlight/lms501kf03.c return lms501kf03_power(lcd, FB_BLANK_POWERDOWN); lcd 400 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = dev_get_drvdata(dev); lcd 402 drivers/video/backlight/lms501kf03.c lcd->power = FB_BLANK_POWERDOWN; lcd 404 drivers/video/backlight/lms501kf03.c return lms501kf03_power(lcd, FB_BLANK_UNBLANK); lcd 413 drivers/video/backlight/lms501kf03.c struct lms501kf03 *lcd = spi_get_drvdata(spi); lcd 415 drivers/video/backlight/lms501kf03.c lms501kf03_power(lcd, FB_BLANK_POWERDOWN); lcd 37 drivers/video/backlight/ltv350qv.c static int ltv350qv_write_reg(struct ltv350qv *lcd, u8 reg, u16 val) lcd 51 drivers/video/backlight/ltv350qv.c lcd->buffer[0] = LTV_OPC_INDEX; lcd 52 drivers/video/backlight/ltv350qv.c lcd->buffer[1] = 0x00; lcd 53 drivers/video/backlight/ltv350qv.c lcd->buffer[2] = reg & 0x7f; lcd 54 drivers/video/backlight/ltv350qv.c index_xfer.tx_buf = lcd->buffer; lcd 58 drivers/video/backlight/ltv350qv.c lcd->buffer[4] = LTV_OPC_DATA; lcd 59 drivers/video/backlight/ltv350qv.c lcd->buffer[5] = val >> 8; lcd 60 drivers/video/backlight/ltv350qv.c lcd->buffer[6] = val; lcd 61 drivers/video/backlight/ltv350qv.c value_xfer.tx_buf = lcd->buffer + 4; lcd 64 drivers/video/backlight/ltv350qv.c return spi_sync(lcd->spi, &msg); lcd 68 drivers/video/backlight/ltv350qv.c static int ltv350qv_power_on(struct ltv350qv *lcd) lcd 73 drivers/video/backlight/ltv350qv.c if (ltv350qv_write_reg(lcd, LTV_PWRCTL1, 0x0000)) lcd 78 drivers/video/backlight/ltv350qv.c if (ltv350qv_write_reg(lcd, LTV_PWRCTL1, LTV_VCOM_DISABLE)) lcd 80 drivers/video/backlight/ltv350qv.c if (ltv350qv_write_reg(lcd, LTV_PWRCTL2, LTV_VCOML_ENABLE)) lcd 84 drivers/video/backlight/ltv350qv.c if (ltv350qv_write_reg(lcd, LTV_PWRCTL1, lcd 92 drivers/video/backlight/ltv350qv.c ret = ltv350qv_write_reg(lcd, LTV_IFCTL, lcd 94 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_DATACTL, lcd 97 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_ENTRY_MODE, lcd 103 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GATECTL1, LTV_CLW(3)); lcd 104 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GATECTL2, lcd 106 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_VBP, 0x000a); lcd 107 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_HBP, 0x0021); lcd 108 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_SOTCTL, LTV_SDT(3) | LTV_EQ(0)); lcd 109 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(0), 0x0103); lcd 110 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(1), 0x0301); lcd 111 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(2), 0x1f0f); lcd 112 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(3), 0x1f0f); lcd 113 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(4), 0x0707); lcd 114 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(5), 0x0307); lcd 115 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(6), 0x0707); lcd 116 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(7), 0x0000); lcd 117 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(8), 0x0004); lcd 118 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GAMMA(9), 0x0000); lcd 126 drivers/video/backlight/ltv350qv.c ret = ltv350qv_write_reg(lcd, LTV_PWRCTL1, lcd 130 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GATECTL2, lcd 144 drivers/video/backlight/ltv350qv.c ltv350qv_write_reg(lcd, LTV_PWRCTL1, lcd 147 drivers/video/backlight/ltv350qv.c ltv350qv_write_reg(lcd, LTV_GATECTL2, lcd 152 drivers/video/backlight/ltv350qv.c ltv350qv_write_reg(lcd, LTV_PWRCTL2, 0x0000); lcd 155 drivers/video/backlight/ltv350qv.c ltv350qv_write_reg(lcd, LTV_PWRCTL1, LTV_VCOM_DISABLE); lcd 159 drivers/video/backlight/ltv350qv.c static int ltv350qv_power_off(struct ltv350qv *lcd) lcd 164 drivers/video/backlight/ltv350qv.c ret = ltv350qv_write_reg(lcd, LTV_PWRCTL1, lcd 168 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_GATECTL2, lcd 172 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_PWRCTL2, 0x0000); lcd 178 drivers/video/backlight/ltv350qv.c ret |= ltv350qv_write_reg(lcd, LTV_PWRCTL1, LTV_VCOM_DISABLE); lcd 192 drivers/video/backlight/ltv350qv.c static int ltv350qv_power(struct ltv350qv *lcd, int power) lcd 196 drivers/video/backlight/ltv350qv.c if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) lcd 197 drivers/video/backlight/ltv350qv.c ret = ltv350qv_power_on(lcd); lcd 198 drivers/video/backlight/ltv350qv.c else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) lcd 199 drivers/video/backlight/ltv350qv.c ret = ltv350qv_power_off(lcd); lcd 202 drivers/video/backlight/ltv350qv.c lcd->power = power; lcd 209 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd = lcd_get_data(ld); lcd 211 drivers/video/backlight/ltv350qv.c return ltv350qv_power(lcd, power); lcd 216 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd = lcd_get_data(ld); lcd 218 drivers/video/backlight/ltv350qv.c return lcd->power; lcd 228 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd; lcd 232 drivers/video/backlight/ltv350qv.c lcd = devm_kzalloc(&spi->dev, sizeof(struct ltv350qv), GFP_KERNEL); lcd 233 drivers/video/backlight/ltv350qv.c if (!lcd) lcd 236 drivers/video/backlight/ltv350qv.c lcd->spi = spi; lcd 237 drivers/video/backlight/ltv350qv.c lcd->power = FB_BLANK_POWERDOWN; lcd 238 drivers/video/backlight/ltv350qv.c lcd->buffer = devm_kzalloc(&spi->dev, 8, GFP_KERNEL); lcd 239 drivers/video/backlight/ltv350qv.c if (!lcd->buffer) lcd 242 drivers/video/backlight/ltv350qv.c ld = devm_lcd_device_register(&spi->dev, "ltv350qv", &spi->dev, lcd, lcd 247 drivers/video/backlight/ltv350qv.c lcd->ld = ld; lcd 249 drivers/video/backlight/ltv350qv.c ret = ltv350qv_power(lcd, FB_BLANK_UNBLANK); lcd 253 drivers/video/backlight/ltv350qv.c spi_set_drvdata(spi, lcd); lcd 260 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd = spi_get_drvdata(spi); lcd 262 drivers/video/backlight/ltv350qv.c ltv350qv_power(lcd, FB_BLANK_POWERDOWN); lcd 269 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd = dev_get_drvdata(dev); lcd 271 drivers/video/backlight/ltv350qv.c return ltv350qv_power(lcd, FB_BLANK_POWERDOWN); lcd 276 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd = dev_get_drvdata(dev); lcd 278 drivers/video/backlight/ltv350qv.c return ltv350qv_power(lcd, FB_BLANK_UNBLANK); lcd 287 drivers/video/backlight/ltv350qv.c struct ltv350qv *lcd = spi_get_drvdata(spi); lcd 289 drivers/video/backlight/ltv350qv.c ltv350qv_power(lcd, FB_BLANK_POWERDOWN); lcd 22 drivers/video/backlight/platform_lcd.c struct lcd_device *lcd; lcd 29 drivers/video/backlight/platform_lcd.c static inline struct platform_lcd *to_our_lcd(struct lcd_device *lcd) lcd 31 drivers/video/backlight/platform_lcd.c return lcd_get_data(lcd); lcd 34 drivers/video/backlight/platform_lcd.c static int platform_lcd_get_power(struct lcd_device *lcd) lcd 36 drivers/video/backlight/platform_lcd.c struct platform_lcd *plcd = to_our_lcd(lcd); lcd 41 drivers/video/backlight/platform_lcd.c static int platform_lcd_set_power(struct lcd_device *lcd, int power) lcd 43 drivers/video/backlight/platform_lcd.c struct platform_lcd *plcd = to_our_lcd(lcd); lcd 55 drivers/video/backlight/platform_lcd.c static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) lcd 57 drivers/video/backlight/platform_lcd.c struct platform_lcd *plcd = to_our_lcd(lcd); lcd 98 drivers/video/backlight/platform_lcd.c plcd->lcd = devm_lcd_device_register(&pdev->dev, dev_name(dev), dev, lcd 100 drivers/video/backlight/platform_lcd.c if (IS_ERR(plcd->lcd)) { lcd 102 drivers/video/backlight/platform_lcd.c return PTR_ERR(plcd->lcd); lcd 106 drivers/video/backlight/platform_lcd.c platform_lcd_set_power(plcd->lcd, FB_BLANK_NORMAL); lcd 117 drivers/video/backlight/platform_lcd.c platform_lcd_set_power(plcd->lcd, plcd->power); lcd 127 drivers/video/backlight/platform_lcd.c platform_lcd_set_power(plcd->lcd, plcd->power); lcd 33 drivers/video/backlight/tdo24m.c int (*adj_mode)(struct tdo24m *lcd, int mode); lcd 175 drivers/video/backlight/tdo24m.c static int tdo24m_writes(struct tdo24m *lcd, const uint32_t *array) lcd 177 drivers/video/backlight/tdo24m.c struct spi_transfer *x = &lcd->xfer; lcd 183 drivers/video/backlight/tdo24m.c if (!lcd->color_invert && *p == CMD0(0x21)) lcd 191 drivers/video/backlight/tdo24m.c lcd->buf[0] = (data >> 8) & 0xff; lcd 192 drivers/video/backlight/tdo24m.c lcd->buf[1] = data & 0xff; lcd 195 drivers/video/backlight/tdo24m.c lcd->buf[0] = (data >> 16) & 0xff; lcd 196 drivers/video/backlight/tdo24m.c lcd->buf[1] = (data >> 8) & 0xff; lcd 197 drivers/video/backlight/tdo24m.c lcd->buf[2] = data & 0xff; lcd 200 drivers/video/backlight/tdo24m.c lcd->buf[0] = (data >> 24) & 0xff; lcd 201 drivers/video/backlight/tdo24m.c lcd->buf[1] = (data >> 16) & 0xff; lcd 202 drivers/video/backlight/tdo24m.c lcd->buf[2] = (data >> 8) & 0xff; lcd 203 drivers/video/backlight/tdo24m.c lcd->buf[3] = data & 0xff; lcd 209 drivers/video/backlight/tdo24m.c err = spi_sync(lcd->spi_dev, &lcd->msg); lcd 217 drivers/video/backlight/tdo24m.c static int tdo24m_adj_mode(struct tdo24m *lcd, int mode) lcd 221 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_vga_pass_through_tdo24m); lcd 222 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_panel_config); lcd 223 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_vga_transfer_tdo24m); lcd 226 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_qvga_pass_through_tdo24m); lcd 227 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_panel_config); lcd 228 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_qvga_transfer); lcd 234 drivers/video/backlight/tdo24m.c lcd->mode = mode; lcd 238 drivers/video/backlight/tdo24m.c static int tdo35s_adj_mode(struct tdo24m *lcd, int mode) lcd 242 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_vga_pass_through_tdo35s); lcd 243 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_panel_config); lcd 244 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_vga_transfer_tdo35s); lcd 247 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_qvga_pass_through_tdo35s); lcd 248 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_panel_config); lcd 249 drivers/video/backlight/tdo24m.c tdo24m_writes(lcd, lcd_qvga_transfer); lcd 255 drivers/video/backlight/tdo24m.c lcd->mode = mode; lcd 259 drivers/video/backlight/tdo24m.c static int tdo24m_power_on(struct tdo24m *lcd) lcd 263 drivers/video/backlight/tdo24m.c err = tdo24m_writes(lcd, lcd_panel_on); lcd 267 drivers/video/backlight/tdo24m.c err = tdo24m_writes(lcd, lcd_panel_reset); lcd 271 drivers/video/backlight/tdo24m.c err = lcd->adj_mode(lcd, lcd->mode); lcd 276 drivers/video/backlight/tdo24m.c static int tdo24m_power_off(struct tdo24m *lcd) lcd 278 drivers/video/backlight/tdo24m.c return tdo24m_writes(lcd, lcd_panel_off); lcd 281 drivers/video/backlight/tdo24m.c static int tdo24m_power(struct tdo24m *lcd, int power) lcd 285 drivers/video/backlight/tdo24m.c if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) lcd 286 drivers/video/backlight/tdo24m.c ret = tdo24m_power_on(lcd); lcd 287 drivers/video/backlight/tdo24m.c else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) lcd 288 drivers/video/backlight/tdo24m.c ret = tdo24m_power_off(lcd); lcd 291 drivers/video/backlight/tdo24m.c lcd->power = power; lcd 299 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = lcd_get_data(ld); lcd 301 drivers/video/backlight/tdo24m.c return tdo24m_power(lcd, power); lcd 306 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = lcd_get_data(ld); lcd 308 drivers/video/backlight/tdo24m.c return lcd->power; lcd 313 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = lcd_get_data(ld); lcd 319 drivers/video/backlight/tdo24m.c if (lcd->mode == mode) lcd 322 drivers/video/backlight/tdo24m.c return lcd->adj_mode(lcd, mode); lcd 333 drivers/video/backlight/tdo24m.c struct tdo24m *lcd; lcd 352 drivers/video/backlight/tdo24m.c lcd = devm_kzalloc(&spi->dev, sizeof(struct tdo24m), GFP_KERNEL); lcd 353 drivers/video/backlight/tdo24m.c if (!lcd) lcd 356 drivers/video/backlight/tdo24m.c lcd->spi_dev = spi; lcd 357 drivers/video/backlight/tdo24m.c lcd->power = FB_BLANK_POWERDOWN; lcd 358 drivers/video/backlight/tdo24m.c lcd->mode = MODE_VGA; /* default to VGA */ lcd 360 drivers/video/backlight/tdo24m.c lcd->buf = devm_kzalloc(&spi->dev, TDO24M_SPI_BUFF_SIZE, GFP_KERNEL); lcd 361 drivers/video/backlight/tdo24m.c if (lcd->buf == NULL) lcd 364 drivers/video/backlight/tdo24m.c m = &lcd->msg; lcd 365 drivers/video/backlight/tdo24m.c x = &lcd->xfer; lcd 370 drivers/video/backlight/tdo24m.c x->tx_buf = &lcd->buf[0]; lcd 375 drivers/video/backlight/tdo24m.c lcd->color_invert = 1; lcd 376 drivers/video/backlight/tdo24m.c lcd->adj_mode = tdo24m_adj_mode; lcd 379 drivers/video/backlight/tdo24m.c lcd->adj_mode = tdo35s_adj_mode; lcd 380 drivers/video/backlight/tdo24m.c lcd->color_invert = 0; lcd 387 drivers/video/backlight/tdo24m.c lcd->lcd_dev = devm_lcd_device_register(&spi->dev, "tdo24m", &spi->dev, lcd 388 drivers/video/backlight/tdo24m.c lcd, &tdo24m_ops); lcd 389 drivers/video/backlight/tdo24m.c if (IS_ERR(lcd->lcd_dev)) lcd 390 drivers/video/backlight/tdo24m.c return PTR_ERR(lcd->lcd_dev); lcd 392 drivers/video/backlight/tdo24m.c spi_set_drvdata(spi, lcd); lcd 393 drivers/video/backlight/tdo24m.c err = tdo24m_power(lcd, FB_BLANK_UNBLANK); lcd 402 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = spi_get_drvdata(spi); lcd 404 drivers/video/backlight/tdo24m.c tdo24m_power(lcd, FB_BLANK_POWERDOWN); lcd 411 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = dev_get_drvdata(dev); lcd 413 drivers/video/backlight/tdo24m.c return tdo24m_power(lcd, FB_BLANK_POWERDOWN); lcd 418 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = dev_get_drvdata(dev); lcd 420 drivers/video/backlight/tdo24m.c return tdo24m_power(lcd, FB_BLANK_UNBLANK); lcd 429 drivers/video/backlight/tdo24m.c struct tdo24m *lcd = spi_get_drvdata(spi); lcd 431 drivers/video/backlight/tdo24m.c tdo24m_power(lcd, FB_BLANK_POWERDOWN); lcd 35 drivers/video/backlight/tosa_lcd.c struct lcd_device *lcd; lcd 128 drivers/video/backlight/tosa_lcd.c int tosa_lcd_set_power(struct lcd_device *lcd, int power) lcd 130 drivers/video/backlight/tosa_lcd.c struct tosa_lcd_data *data = lcd_get_data(lcd); lcd 142 drivers/video/backlight/tosa_lcd.c static int tosa_lcd_get_power(struct lcd_device *lcd) lcd 144 drivers/video/backlight/tosa_lcd.c struct tosa_lcd_data *data = lcd_get_data(lcd); lcd 149 drivers/video/backlight/tosa_lcd.c static int tosa_lcd_set_mode(struct lcd_device *lcd, struct fb_videomode *mode) lcd 151 drivers/video/backlight/tosa_lcd.c struct tosa_lcd_data *data = lcd_get_data(lcd); lcd 205 drivers/video/backlight/tosa_lcd.c data->lcd = devm_lcd_device_register(&spi->dev, "tosa-lcd", &spi->dev, lcd 208 drivers/video/backlight/tosa_lcd.c if (IS_ERR(data->lcd)) { lcd 209 drivers/video/backlight/tosa_lcd.c ret = PTR_ERR(data->lcd); lcd 210 drivers/video/backlight/tosa_lcd.c data->lcd = NULL; lcd 108 drivers/video/backlight/vgg2432a4.c static int vgg2432a4_lcd_init(struct ili9320 *lcd, lcd 115 drivers/video/backlight/vgg2432a4.c ret = ili9320_write(lcd, 0x00e5, 0x8000); lcd 120 drivers/video/backlight/vgg2432a4.c ret = ili9320_write(lcd, ILI9320_OSCILATION, ILI9320_OSCILATION_OSC); lcd 127 drivers/video/backlight/vgg2432a4.c ret = ili9320_write_regs(lcd, vgg_init0, ARRAY_SIZE(vgg_init0)); lcd 131 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_DISPLAY2, cfg->display2); lcd 132 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_DISPLAY3, cfg->display3); lcd 133 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_DISPLAY4, cfg->display4); lcd 135 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_RGB_IF1, cfg->rgb_if1); lcd 136 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_FRAMEMAKER, 0x0); lcd 137 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_RGB_IF2, cfg->rgb_if2); lcd 139 drivers/video/backlight/vgg2432a4.c ret = ili9320_write_regs(lcd, vgg_init1, ARRAY_SIZE(vgg_init1)); lcd 145 drivers/video/backlight/vgg2432a4.c ret = ili9320_write_regs(lcd, vgg_init2, ARRAY_SIZE(vgg_init2)); lcd 151 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_POWER3, 0x13c); lcd 155 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_POWER4, 0x1c00); lcd 156 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_POWER7, 0x000e); lcd 160 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_GRAM_HORIZ_ADDR, 0x00); lcd 161 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_GRAM_VERT_ADD, 0x00); lcd 163 drivers/video/backlight/vgg2432a4.c ret = ili9320_write_regs(lcd, vgg_gamma, ARRAY_SIZE(vgg_gamma)); lcd 167 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_HORIZ_START, 0x0); lcd 168 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_HORIZ_END, cfg->hsize - 1); lcd 169 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_VERT_START, 0x0); lcd 170 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_VERT_END, cfg->vsize - 1); lcd 172 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_DRIVER2, lcd 175 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_BASE_IMAGE, 0x1); lcd 176 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_VERT_SCROLL, 0x00); lcd 180 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, addr, 0x0); lcd 183 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_INTERFACE1, 0x10); lcd 184 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_INTERFACE2, cfg->interface2); lcd 185 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_INTERFACE3, cfg->interface3); lcd 186 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_INTERFACE4, cfg->interface4); lcd 187 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_INTERFACE5, cfg->interface5); lcd 188 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_INTERFACE6, cfg->interface6); lcd 190 drivers/video/backlight/vgg2432a4.c lcd->display1 = (ILI9320_DISPLAY1_D(3) | ILI9320_DISPLAY1_DTE | lcd 194 drivers/video/backlight/vgg2432a4.c ili9320_write(lcd, ILI9320_DISPLAY1, lcd->display1); lcd 179 drivers/video/fbdev/au1200fb.c static struct au1200_lcd *lcd = (struct au1200_lcd *) AU1200_LCD_ADDR; lcd 710 drivers/video/fbdev/au1200fb.c winctrl0 = lcd->window[plane].winctrl0; lcd 711 drivers/video/fbdev/au1200fb.c winctrl1 = lcd->window[plane].winctrl1; lcd 733 drivers/video/fbdev/au1200fb.c fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); lcd 758 drivers/video/fbdev/au1200fb.c winenable = lcd->winenable & (1 << plane); lcd 760 drivers/video/fbdev/au1200fb.c lcd->winenable &= ~(1 << plane); lcd 761 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl0 = winctrl0; lcd 762 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = winctrl1; lcd 763 drivers/video/fbdev/au1200fb.c lcd->window[plane].winbuf0 = lcd 764 drivers/video/fbdev/au1200fb.c lcd->window[plane].winbuf1 = fbdev->fb_phys; lcd 765 drivers/video/fbdev/au1200fb.c lcd->window[plane].winbufctrl = 0; /* select winbuf0 */ lcd 766 drivers/video/fbdev/au1200fb.c lcd->winenable |= winenable; lcd 781 drivers/video/fbdev/au1200fb.c winenable = lcd->winenable; lcd 782 drivers/video/fbdev/au1200fb.c lcd->winenable = 0; lcd 787 drivers/video/fbdev/au1200fb.c if (lcd->screen & LCD_SCREEN_SEN) { lcd 789 drivers/video/fbdev/au1200fb.c lcd->intstatus = LCD_INT_SS; lcd 790 drivers/video/fbdev/au1200fb.c while ((lcd->intstatus & LCD_INT_SS) == 0) lcd 793 drivers/video/fbdev/au1200fb.c lcd->screen &= ~LCD_SCREEN_SEN; /*disable the controller*/ lcd 796 drivers/video/fbdev/au1200fb.c lcd->intstatus = lcd->intstatus; /*clear interrupts*/ lcd 799 drivers/video/fbdev/au1200fb.c } while ((lcd->intstatus & LCD_INT_SD) == 0); lcd 839 drivers/video/fbdev/au1200fb.c lcd->screen = panel->mode_screen; lcd 840 drivers/video/fbdev/au1200fb.c lcd->horztiming = panel->mode_horztiming; lcd 841 drivers/video/fbdev/au1200fb.c lcd->verttiming = panel->mode_verttiming; lcd 842 drivers/video/fbdev/au1200fb.c lcd->clkcontrol = panel->mode_clkcontrol; lcd 843 drivers/video/fbdev/au1200fb.c lcd->pwmdiv = panel->mode_pwmdiv; lcd 844 drivers/video/fbdev/au1200fb.c lcd->pwmhi = panel->mode_pwmhi; lcd 845 drivers/video/fbdev/au1200fb.c lcd->outmask = panel->mode_outmask; lcd 846 drivers/video/fbdev/au1200fb.c lcd->fifoctrl = panel->mode_fifoctrl; lcd 857 drivers/video/fbdev/au1200fb.c lcd->winenable = winenable; lcd 862 drivers/video/fbdev/au1200fb.c lcd->screen |= LCD_SCREEN_SEN; lcd 870 drivers/video/fbdev/au1200fb.c lcd->intenable = 0; lcd 871 drivers/video/fbdev/au1200fb.c lcd->intstatus = ~0; lcd 872 drivers/video/fbdev/au1200fb.c lcd->backcolor = win->mode_backcolor; lcd 875 drivers/video/fbdev/au1200fb.c lcd->colorkey = win->mode_colorkey; lcd 876 drivers/video/fbdev/au1200fb.c lcd->colorkeymsk = win->mode_colorkeymsk; lcd 879 drivers/video/fbdev/au1200fb.c lcd->hwc.cursorctrl = 0; lcd 880 drivers/video/fbdev/au1200fb.c lcd->hwc.cursorpos = 0; lcd 881 drivers/video/fbdev/au1200fb.c lcd->hwc.cursorcolor0 = 0; lcd 882 drivers/video/fbdev/au1200fb.c lcd->hwc.cursorcolor1 = 0; lcd 883 drivers/video/fbdev/au1200fb.c lcd->hwc.cursorcolor2 = 0; lcd 884 drivers/video/fbdev/au1200fb.c lcd->hwc.cursorcolor3 = 0; lcd 889 drivers/video/fbdev/au1200fb.c D(lcd->screen); lcd 890 drivers/video/fbdev/au1200fb.c D(lcd->horztiming); lcd 891 drivers/video/fbdev/au1200fb.c D(lcd->verttiming); lcd 892 drivers/video/fbdev/au1200fb.c D(lcd->clkcontrol); lcd 893 drivers/video/fbdev/au1200fb.c D(lcd->pwmdiv); lcd 894 drivers/video/fbdev/au1200fb.c D(lcd->pwmhi); lcd 895 drivers/video/fbdev/au1200fb.c D(lcd->outmask); lcd 896 drivers/video/fbdev/au1200fb.c D(lcd->fifoctrl); lcd 897 drivers/video/fbdev/au1200fb.c D(lcd->window[0].winctrl0); lcd 898 drivers/video/fbdev/au1200fb.c D(lcd->window[0].winctrl1); lcd 899 drivers/video/fbdev/au1200fb.c D(lcd->window[0].winctrl2); lcd 900 drivers/video/fbdev/au1200fb.c D(lcd->window[0].winbuf0); lcd 901 drivers/video/fbdev/au1200fb.c D(lcd->window[0].winbuf1); lcd 902 drivers/video/fbdev/au1200fb.c D(lcd->window[0].winbufctrl); lcd 903 drivers/video/fbdev/au1200fb.c D(lcd->window[1].winctrl0); lcd 904 drivers/video/fbdev/au1200fb.c D(lcd->window[1].winctrl1); lcd 905 drivers/video/fbdev/au1200fb.c D(lcd->window[1].winctrl2); lcd 906 drivers/video/fbdev/au1200fb.c D(lcd->window[1].winbuf0); lcd 907 drivers/video/fbdev/au1200fb.c D(lcd->window[1].winbuf1); lcd 908 drivers/video/fbdev/au1200fb.c D(lcd->window[1].winbufctrl); lcd 909 drivers/video/fbdev/au1200fb.c D(lcd->window[2].winctrl0); lcd 910 drivers/video/fbdev/au1200fb.c D(lcd->window[2].winctrl1); lcd 911 drivers/video/fbdev/au1200fb.c D(lcd->window[2].winctrl2); lcd 912 drivers/video/fbdev/au1200fb.c D(lcd->window[2].winbuf0); lcd 913 drivers/video/fbdev/au1200fb.c D(lcd->window[2].winbuf1); lcd 914 drivers/video/fbdev/au1200fb.c D(lcd->window[2].winbufctrl); lcd 915 drivers/video/fbdev/au1200fb.c D(lcd->window[3].winctrl0); lcd 916 drivers/video/fbdev/au1200fb.c D(lcd->window[3].winctrl1); lcd 917 drivers/video/fbdev/au1200fb.c D(lcd->window[3].winctrl2); lcd 918 drivers/video/fbdev/au1200fb.c D(lcd->window[3].winbuf0); lcd 919 drivers/video/fbdev/au1200fb.c D(lcd->window[3].winbuf1); lcd 920 drivers/video/fbdev/au1200fb.c D(lcd->window[3].winbufctrl); lcd 921 drivers/video/fbdev/au1200fb.c D(lcd->winenable); lcd 922 drivers/video/fbdev/au1200fb.c D(lcd->intenable); lcd 923 drivers/video/fbdev/au1200fb.c D(lcd->intstatus); lcd 924 drivers/video/fbdev/au1200fb.c D(lcd->backcolor); lcd 925 drivers/video/fbdev/au1200fb.c D(lcd->winenable); lcd 926 drivers/video/fbdev/au1200fb.c D(lcd->colorkey); lcd 927 drivers/video/fbdev/au1200fb.c D(lcd->colorkeymsk); lcd 928 drivers/video/fbdev/au1200fb.c D(lcd->hwc.cursorctrl); lcd 929 drivers/video/fbdev/au1200fb.c D(lcd->hwc.cursorpos); lcd 930 drivers/video/fbdev/au1200fb.c D(lcd->hwc.cursorcolor0); lcd 931 drivers/video/fbdev/au1200fb.c D(lcd->hwc.cursorcolor1); lcd 932 drivers/video/fbdev/au1200fb.c D(lcd->hwc.cursorcolor2); lcd 933 drivers/video/fbdev/au1200fb.c D(lcd->hwc.cursorcolor3); lcd 941 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = ( 0 lcd 948 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl2 = ( 0 lcd 955 drivers/video/fbdev/au1200fb.c lcd->winenable |= win->w[plane].mode_winenable; lcd 1145 drivers/video/fbdev/au1200fb.c volatile u32 *palette = lcd->palette; lcd 1248 drivers/video/fbdev/au1200fb.c lcd->backcolor = pdata->backcolor; lcd 1256 drivers/video/fbdev/au1200fb.c divider = (lcd->pwmdiv & 0x3FFFF) + 1; lcd 1258 drivers/video/fbdev/au1200fb.c lcd->pwmhi &= 0xFFFF; lcd 1259 drivers/video/fbdev/au1200fb.c lcd->pwmhi |= (hi1 << 16); lcd 1263 drivers/video/fbdev/au1200fb.c lcd->colorkey = pdata->colorkey; lcd 1266 drivers/video/fbdev/au1200fb.c lcd->colorkeymsk = pdata->mask; lcd 1274 drivers/video/fbdev/au1200fb.c pdata->xsize = ((lcd->screen & LCD_SCREEN_SX) >> 19) + 1; lcd 1275 drivers/video/fbdev/au1200fb.c pdata->ysize = ((lcd->screen & LCD_SCREEN_SY) >> 8) + 1; lcd 1277 drivers/video/fbdev/au1200fb.c pdata->backcolor = lcd->backcolor; lcd 1278 drivers/video/fbdev/au1200fb.c pdata->colorkey = lcd->colorkey; lcd 1279 drivers/video/fbdev/au1200fb.c pdata->mask = lcd->colorkeymsk; lcd 1282 drivers/video/fbdev/au1200fb.c hi1 = (lcd->pwmhi >> 16) + 1; lcd 1283 drivers/video/fbdev/au1200fb.c divider = (lcd->pwmdiv & 0x3FFFF) + 1; lcd 1295 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl0 & ~(LCD_WINCTRL0_OX | lcd 1299 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl0 = val; lcd 1302 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl0 & ~(LCD_WINCTRL0_A); lcd 1304 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl0 = val; lcd 1307 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl0 & ~(LCD_WINCTRL0_AEN); lcd 1309 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl0 = val; lcd 1314 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_PRI); lcd 1316 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = val; lcd 1319 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_PIPE); lcd 1321 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = val; lcd 1324 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_FRM); lcd 1326 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = val; lcd 1329 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_CCO); lcd 1331 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = val; lcd 1334 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_PO); lcd 1336 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = val; lcd 1339 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_SZX | lcd 1343 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl1 = val; lcd 1346 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_BX); lcd 1348 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl2 = val; lcd 1353 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_CKMODE); lcd 1355 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl2 = val; lcd 1358 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_DBM); lcd 1360 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl2 = val; lcd 1363 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_RAM); lcd 1365 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl2 = val; lcd 1371 drivers/video/fbdev/au1200fb.c val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_SCX | lcd 1375 drivers/video/fbdev/au1200fb.c lcd->window[plane].winctrl2 = val; lcd 1379 drivers/video/fbdev/au1200fb.c val = lcd->winenable; lcd 1382 drivers/video/fbdev/au1200fb.c lcd->winenable = val; lcd 1391 drivers/video/fbdev/au1200fb.c pdata->xpos = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_OX) >> 21; lcd 1392 drivers/video/fbdev/au1200fb.c pdata->ypos = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_OY) >> 10; lcd 1393 drivers/video/fbdev/au1200fb.c pdata->alpha_color = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_A) >> 2; lcd 1394 drivers/video/fbdev/au1200fb.c pdata->alpha_mode = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_AEN) >> 1; lcd 1397 drivers/video/fbdev/au1200fb.c pdata->priority = (lcd->window[plane].winctrl1& LCD_WINCTRL1_PRI) >> 30; lcd 1398 drivers/video/fbdev/au1200fb.c pdata->channel = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_PIPE) >> 29; lcd 1399 drivers/video/fbdev/au1200fb.c pdata->buffer_format = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_FRM) >> 25; lcd 1400 drivers/video/fbdev/au1200fb.c pdata->color_order = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_CCO) >> 24; lcd 1401 drivers/video/fbdev/au1200fb.c pdata->pixel_order = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_PO) >> 22; lcd 1402 drivers/video/fbdev/au1200fb.c pdata->xsize = ((lcd->window[plane].winctrl1 & LCD_WINCTRL1_SZX) >> 11) + 1; lcd 1403 drivers/video/fbdev/au1200fb.c pdata->ysize = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_SZY) + 1; lcd 1406 drivers/video/fbdev/au1200fb.c pdata->colorkey_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_CKMODE) >> 24; lcd 1407 drivers/video/fbdev/au1200fb.c pdata->double_buffer_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_DBM) >> 23; lcd 1408 drivers/video/fbdev/au1200fb.c pdata->ram_array_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_RAM) >> 21; lcd 1410 drivers/video/fbdev/au1200fb.c pdata->enable = (lcd->winenable >> plane) & 1; lcd 1507 drivers/video/fbdev/au1200fb.c lcd->intstatus = lcd->intstatus; lcd 1798 drivers/video/fbdev/au1200fb.c lcd->outmask = 0; lcd 213 drivers/video/fbdev/clps711x-fb.c struct lcd_device *lcd; lcd 345 drivers/video/fbdev/clps711x-fb.c lcd = devm_lcd_device_register(dev, "clps711x-lcd", dev, cfb, lcd 347 drivers/video/fbdev/clps711x-fb.c if (!IS_ERR(lcd)) lcd 350 drivers/video/fbdev/clps711x-fb.c ret = PTR_ERR(lcd); lcd 849 drivers/video/fbdev/imxfb.c struct lcd_device *lcd; lcd 1025 drivers/video/fbdev/imxfb.c lcd = devm_lcd_device_register(&pdev->dev, "imxfb-lcd", &pdev->dev, fbi, lcd 1027 drivers/video/fbdev/imxfb.c if (IS_ERR(lcd)) { lcd 1028 drivers/video/fbdev/imxfb.c ret = PTR_ERR(lcd); lcd 1032 drivers/video/fbdev/imxfb.c lcd->props.max_contrast = 0xff; lcd 1580 drivers/video/fbdev/omap/omapfb_main.c strncpy(name, conf->lcd.ctrl_name, sizeof(name) - 1); lcd 3344 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int lcd; lcd 3351 drivers/video/fbdev/omap2/omapfb/dss/dispc.c lcd = FLD_GET(l, 23, 16); lcd 3376 drivers/video/fbdev/omap2/omapfb/dss/dispc.c return r / lcd; lcd 3438 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int lcd, pcd; lcd 3449 drivers/video/fbdev/omap2/omapfb/dss/dispc.c dispc_mgr_get_lcd_divisor(channel, &lcd, &pcd); lcd 3452 drivers/video/fbdev/omap2/omapfb/dss/dispc.c dispc_mgr_lclk_rate(channel), lcd); lcd 3459 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int lcd; lcd 3477 drivers/video/fbdev/omap2/omapfb/dss/dispc.c lcd = FLD_GET(l, 23, 16); lcd 3480 drivers/video/fbdev/omap2/omapfb/dss/dispc.c (dispc_fclk_rate()/lcd), lcd); lcd 72 drivers/video/fbdev/via/ioctl.h unsigned short lcd:1; lcd 502 drivers/video/fbdev/via/viafbdev.c u.active_dev.lcd = viafb_LCD_ON; lcd 24 include/linux/omapfb.h struct omap_lcd_config lcd;