/drivers/video/exynos/ |
D | s6e8ax0.c | 73 static void s6e8ax0_regulator_enable(struct s6e8ax0 *lcd) in s6e8ax0_regulator_enable() argument 78 pd = lcd->ddi_pd; in s6e8ax0_regulator_enable() 79 mutex_lock(&lcd->lock); in s6e8ax0_regulator_enable() 80 if (!lcd->enabled) { in s6e8ax0_regulator_enable() 85 lcd->enabled = true; in s6e8ax0_regulator_enable() 89 mutex_unlock(&lcd->lock); in s6e8ax0_regulator_enable() 92 static void s6e8ax0_regulator_disable(struct s6e8ax0 *lcd) in s6e8ax0_regulator_disable() argument 96 mutex_lock(&lcd->lock); in s6e8ax0_regulator_disable() 97 if (lcd->enabled) { in s6e8ax0_regulator_disable() 102 lcd->enabled = false; in s6e8ax0_regulator_disable() [all …]
|
/drivers/video/backlight/ |
D | corgi_lcd.c | 104 static int corgi_ssp_lcdtg_send(struct corgi_lcd *lcd, int reg, uint8_t val); 115 static void lcdtg_ssp_i2c_send(struct corgi_lcd *lcd, uint8_t data) in lcdtg_ssp_i2c_send() argument 117 corgi_ssp_lcdtg_send(lcd, POWERREG0_ADRS, data); in lcdtg_ssp_i2c_send() 121 static void lcdtg_i2c_send_bit(struct corgi_lcd *lcd, uint8_t data) in lcdtg_i2c_send_bit() argument 123 lcdtg_ssp_i2c_send(lcd, data); in lcdtg_i2c_send_bit() 124 lcdtg_ssp_i2c_send(lcd, data | POWER0_COM_DCLK); in lcdtg_i2c_send_bit() 125 lcdtg_ssp_i2c_send(lcd, data); in lcdtg_i2c_send_bit() 128 static void lcdtg_i2c_send_start(struct corgi_lcd *lcd, uint8_t base) in lcdtg_i2c_send_start() argument 130 lcdtg_ssp_i2c_send(lcd, base | POWER0_COM_DCLK | POWER0_COM_DOUT); in lcdtg_i2c_send_start() 131 lcdtg_ssp_i2c_send(lcd, base | POWER0_COM_DCLK); in lcdtg_i2c_send_start() [all …]
|
D | ltv350qv.c | 40 static int ltv350qv_write_reg(struct ltv350qv *lcd, u8 reg, u16 val) in ltv350qv_write_reg() argument 54 lcd->buffer[0] = LTV_OPC_INDEX; in ltv350qv_write_reg() 55 lcd->buffer[1] = 0x00; in ltv350qv_write_reg() 56 lcd->buffer[2] = reg & 0x7f; in ltv350qv_write_reg() 57 index_xfer.tx_buf = lcd->buffer; in ltv350qv_write_reg() 61 lcd->buffer[4] = LTV_OPC_DATA; in ltv350qv_write_reg() 62 lcd->buffer[5] = val >> 8; in ltv350qv_write_reg() 63 lcd->buffer[6] = val; in ltv350qv_write_reg() 64 value_xfer.tx_buf = lcd->buffer + 4; in ltv350qv_write_reg() 67 return spi_sync(lcd->spi, &msg); in ltv350qv_write_reg() [all …]
|
D | tdo24m.c | 36 int (*adj_mode)(struct tdo24m *lcd, int mode); 178 static int tdo24m_writes(struct tdo24m *lcd, const uint32_t *array) in tdo24m_writes() argument 180 struct spi_transfer *x = &lcd->xfer; in tdo24m_writes() 186 if (!lcd->color_invert && *p == CMD0(0x21)) in tdo24m_writes() 194 lcd->buf[0] = (data >> 8) & 0xff; in tdo24m_writes() 195 lcd->buf[1] = data & 0xff; in tdo24m_writes() 198 lcd->buf[0] = (data >> 16) & 0xff; in tdo24m_writes() 199 lcd->buf[1] = (data >> 8) & 0xff; in tdo24m_writes() 200 lcd->buf[2] = data & 0xff; in tdo24m_writes() 203 lcd->buf[0] = (data >> 24) & 0xff; in tdo24m_writes() [all …]
|
D | ams369fg06.c | 163 static int ams369fg06_spi_write_byte(struct ams369fg06 *lcd, int addr, int data) in ams369fg06_spi_write_byte() argument 178 return spi_sync(lcd->spi, &msg); in ams369fg06_spi_write_byte() 181 static int ams369fg06_spi_write(struct ams369fg06 *lcd, unsigned char address, in ams369fg06_spi_write() argument 187 ret = ams369fg06_spi_write_byte(lcd, 0x70, address); in ams369fg06_spi_write() 189 ret = ams369fg06_spi_write_byte(lcd, 0x72, command); in ams369fg06_spi_write() 194 static int ams369fg06_panel_send_sequence(struct ams369fg06 *lcd, in ams369fg06_panel_send_sequence() argument 201 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence() 213 static int _ams369fg06_gamma_ctl(struct ams369fg06 *lcd, in _ams369fg06_gamma_ctl() argument 220 ret = ams369fg06_spi_write(lcd, 0x40 + i, gamma[i]); in _ams369fg06_gamma_ctl() 221 ret = ams369fg06_spi_write(lcd, 0x50 + i, gamma[i+7*1]); in _ams369fg06_gamma_ctl() [all …]
|
D | lms501kf03.c | 116 static int lms501kf03_spi_write_byte(struct lms501kf03 *lcd, int addr, int data) in lms501kf03_spi_write_byte() argument 131 return spi_sync(lcd->spi, &msg); in lms501kf03_spi_write_byte() 134 static int lms501kf03_spi_write(struct lms501kf03 *lcd, unsigned char address, in lms501kf03_spi_write() argument 137 return lms501kf03_spi_write_byte(lcd, address, command); in lms501kf03_spi_write() 140 static int lms501kf03_panel_send_sequence(struct lms501kf03 *lcd, in lms501kf03_panel_send_sequence() argument 148 ret = lms501kf03_spi_write(lcd, COMMAND_ONLY, wbuf[i]); in lms501kf03_panel_send_sequence() 150 ret = lms501kf03_spi_write(lcd, DATA_ONLY, wbuf[i]); in lms501kf03_panel_send_sequence() 159 static int lms501kf03_ldi_init(struct lms501kf03 *lcd) in lms501kf03_ldi_init() argument 193 ret = lms501kf03_panel_send_sequence(lcd, init_seq[i], in lms501kf03_ldi_init() 208 static int lms501kf03_ldi_enable(struct lms501kf03 *lcd) in lms501kf03_ldi_enable() argument [all …]
|
D | ld9040.c | 57 static void ld9040_regulator_enable(struct ld9040 *lcd) in ld9040_regulator_enable() argument 62 pd = lcd->lcd_pd; in ld9040_regulator_enable() 63 mutex_lock(&lcd->lock); in ld9040_regulator_enable() 64 if (!lcd->enabled) { in ld9040_regulator_enable() 69 lcd->enabled = true; in ld9040_regulator_enable() 73 mutex_unlock(&lcd->lock); in ld9040_regulator_enable() 76 static void ld9040_regulator_disable(struct ld9040 *lcd) in ld9040_regulator_disable() argument 80 mutex_lock(&lcd->lock); in ld9040_regulator_disable() 81 if (lcd->enabled) { in ld9040_regulator_disable() 86 lcd->enabled = false; in ld9040_regulator_disable() [all …]
|
D | ili9320.c | 78 static void ili9320_reset(struct ili9320 *lcd) in ili9320_reset() argument 80 struct ili9320_platdata *cfg = lcd->platdata; in ili9320_reset() 92 static inline int ili9320_init_chip(struct ili9320 *lcd) in ili9320_init_chip() argument 96 ili9320_reset(lcd); in ili9320_init_chip() 98 ret = lcd->client->init(lcd, lcd->platdata); in ili9320_init_chip() 100 dev_err(lcd->dev, "failed to initialise display\n"); in ili9320_init_chip() 104 lcd->initialised = 1; in ili9320_init_chip() 108 static inline int ili9320_power_on(struct ili9320 *lcd) in ili9320_power_on() argument 110 if (!lcd->initialised) in ili9320_power_on() 111 ili9320_init_chip(lcd); in ili9320_power_on() [all …]
|
D | s6e63m0.c | 357 static int s6e63m0_spi_write_byte(struct s6e63m0 *lcd, int addr, int data) in s6e63m0_spi_write_byte() argument 372 return spi_sync(lcd->spi, &msg); in s6e63m0_spi_write_byte() 375 static int s6e63m0_spi_write(struct s6e63m0 *lcd, unsigned char address, in s6e63m0_spi_write() argument 381 ret = s6e63m0_spi_write_byte(lcd, 0x0, address); in s6e63m0_spi_write() 383 ret = s6e63m0_spi_write_byte(lcd, 0x1, command); in s6e63m0_spi_write() 388 static int s6e63m0_panel_send_sequence(struct s6e63m0 *lcd, in s6e63m0_panel_send_sequence() argument 395 ret = s6e63m0_spi_write(lcd, wbuf[i], wbuf[i+1]); in s6e63m0_panel_send_sequence() 407 static int _s6e63m0_gamma_ctl(struct s6e63m0 *lcd, const unsigned int *gamma) in _s6e63m0_gamma_ctl() argument 413 ret = s6e63m0_spi_write(lcd, 0xfa, 0x00); in _s6e63m0_gamma_ctl() 415 dev_err(lcd->dev, "failed to disable gamma table updating.\n"); in _s6e63m0_gamma_ctl() [all …]
|
D | vgg2432a4.c | 111 static int vgg2432a4_lcd_init(struct ili9320 *lcd, in vgg2432a4_lcd_init() argument 118 ret = ili9320_write(lcd, 0x00e5, 0x8000); in vgg2432a4_lcd_init() 123 ret = ili9320_write(lcd, ILI9320_OSCILATION, ILI9320_OSCILATION_OSC); in vgg2432a4_lcd_init() 130 ret = ili9320_write_regs(lcd, vgg_init0, ARRAY_SIZE(vgg_init0)); in vgg2432a4_lcd_init() 134 ili9320_write(lcd, ILI9320_DISPLAY2, cfg->display2); in vgg2432a4_lcd_init() 135 ili9320_write(lcd, ILI9320_DISPLAY3, cfg->display3); in vgg2432a4_lcd_init() 136 ili9320_write(lcd, ILI9320_DISPLAY4, cfg->display4); in vgg2432a4_lcd_init() 138 ili9320_write(lcd, ILI9320_RGB_IF1, cfg->rgb_if1); in vgg2432a4_lcd_init() 139 ili9320_write(lcd, ILI9320_FRAMEMAKER, 0x0); in vgg2432a4_lcd_init() 140 ili9320_write(lcd, ILI9320_RGB_IF2, cfg->rgb_if2); in vgg2432a4_lcd_init() [all …]
|
D | hx8357.c | 150 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_spi_write_then_read() local 186 ret = spi_sync(lcd->spi, &msg); in hx8357_spi_write_then_read() 246 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_lcd_init() local 253 gpio_set_value_cansleep(lcd->im_pins[0], 1); in hx8357_lcd_init() 254 gpio_set_value_cansleep(lcd->im_pins[1], 0); in hx8357_lcd_init() 255 gpio_set_value_cansleep(lcd->im_pins[2], 1); in hx8357_lcd_init() 258 gpio_set_value(lcd->reset, 1); in hx8357_lcd_init() 260 gpio_set_value(lcd->reset, 0); in hx8357_lcd_init() 262 gpio_set_value(lcd->reset, 1); in hx8357_lcd_init() 363 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_set_power() local [all …]
|
D | platform_lcd.c | 26 struct lcd_device *lcd; member 33 static inline struct platform_lcd *to_our_lcd(struct lcd_device *lcd) in to_our_lcd() argument 35 return lcd_get_data(lcd); in to_our_lcd() 38 static int platform_lcd_get_power(struct lcd_device *lcd) in platform_lcd_get_power() argument 40 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_get_power() 45 static int platform_lcd_set_power(struct lcd_device *lcd, int power) in platform_lcd_set_power() argument 47 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_set_power() 59 static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) in platform_lcd_match() argument 61 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_match() 104 plcd->lcd = lcd_device_register(dev_name(dev), dev, in platform_lcd_probe() [all …]
|
D | tosa_lcd.c | 39 struct lcd_device *lcd; member 132 int tosa_lcd_set_power(struct lcd_device *lcd, int power) in tosa_lcd_set_power() argument 134 struct tosa_lcd_data *data = lcd_get_data(lcd); in tosa_lcd_set_power() 146 static int tosa_lcd_get_power(struct lcd_device *lcd) in tosa_lcd_get_power() argument 148 struct tosa_lcd_data *data = lcd_get_data(lcd); in tosa_lcd_get_power() 153 static int tosa_lcd_set_mode(struct lcd_device *lcd, struct fb_videomode *mode) in tosa_lcd_set_mode() argument 155 struct tosa_lcd_data *data = lcd_get_data(lcd); in tosa_lcd_set_mode() 209 data->lcd = lcd_device_register("tosa-lcd", &spi->dev, data, in tosa_lcd_probe() 212 if (IS_ERR(data->lcd)) { in tosa_lcd_probe() 213 ret = PTR_ERR(data->lcd); in tosa_lcd_probe() [all …]
|
D | ili9320.h | 46 struct lcd_device *lcd; /* LCD device we created. */ member 74 extern int ili9320_remove(struct ili9320 *lcd); 75 extern void ili9320_shutdown(struct ili9320 *lcd); 79 extern int ili9320_suspend(struct ili9320 *lcd); 80 extern int ili9320_resume(struct ili9320 *lcd);
|
D | ili922x.c | 443 static int ili922x_lcd_power(struct ili922x *lcd, int power) in ili922x_lcd_power() argument 447 if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->power)) in ili922x_lcd_power() 448 ret = ili922x_poweron(lcd->spi); in ili922x_lcd_power() 449 else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->power)) in ili922x_lcd_power() 450 ret = ili922x_poweroff(lcd->spi); in ili922x_lcd_power() 453 lcd->power = power; in ili922x_lcd_power() 480 struct lcd_device *lcd; in ili922x_probe() local 516 lcd = lcd_device_register("ili922xlcd", &spi->dev, ili, in ili922x_probe() 518 if (IS_ERR(lcd)) { in ili922x_probe() 520 return PTR_ERR(lcd); in ili922x_probe() [all …]
|
D | Makefile | 4 obj-$(CONFIG_LCD_CLASS_DEVICE) += lcd.o
|
/drivers/misc/ |
D | arm-charlcd.c | 76 struct charlcd *lcd = data; in charlcd_interrupt() local 79 status = readl(lcd->virtbase + CHAR_STAT) & 0x01; in charlcd_interrupt() 81 writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); in charlcd_interrupt() 83 complete(&lcd->complete); in charlcd_interrupt() 85 dev_info(lcd->dev, "Spurious IRQ (%02x)\n", status); in charlcd_interrupt() 90 static void charlcd_wait_complete_irq(struct charlcd *lcd) in charlcd_wait_complete_irq() argument 94 ret = wait_for_completion_interruptible_timeout(&lcd->complete, in charlcd_wait_complete_irq() 97 writel(0x00, lcd->virtbase + CHAR_MASK); in charlcd_wait_complete_irq() 100 dev_err(lcd->dev, in charlcd_wait_complete_irq() 107 dev_err(lcd->dev, "charlcd controller timed out " in charlcd_wait_complete_irq() [all …]
|
/drivers/video/ |
D | au1200fb.c | 176 static struct au1200_lcd *lcd = (struct au1200_lcd *) AU1200_LCD_ADDR; variable 718 winctrl0 = lcd->window[plane].winctrl0; in au1200_setlocation() 719 winctrl1 = lcd->window[plane].winctrl1; in au1200_setlocation() 741 fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); in au1200_setlocation() 766 winenable = lcd->winenable & (1 << plane); in au1200_setlocation() 768 lcd->winenable &= ~(1 << plane); in au1200_setlocation() 769 lcd->window[plane].winctrl0 = winctrl0; in au1200_setlocation() 770 lcd->window[plane].winctrl1 = winctrl1; in au1200_setlocation() 771 lcd->window[plane].winbuf0 = in au1200_setlocation() 772 lcd->window[plane].winbuf1 = fbdev->fb_phys; in au1200_setlocation() [all …]
|
/drivers/hid/ |
D | hid-picolcd_lcd.c | 85 data->lcd = ldev; in picolcd_init_lcd() 92 struct lcd_device *ldev = data->lcd; in picolcd_exit_lcd() 94 data->lcd = NULL; in picolcd_exit_lcd() 101 if (!data->lcd) in picolcd_resume_lcd() 103 return picolcd_set_contrast(data->lcd, data->lcd_contrast); in picolcd_resume_lcd()
|
D | hid-picolcd.h | 98 struct lcd_device *lcd; member
|
/drivers/video/via/ |
D | Makefile | 7 viafb-y :=viafbdev.o hw.o via_i2c.o dvi.o lcd.o ioctl.o accel.o \
|
D | ioctl.h | 86 unsigned short lcd:1; member
|
/drivers/macintosh/ |
D | Makefile | 12 obj-$(CONFIG_ANSLCD) += ans-lcd.o
|
/drivers/video/omap2/dss/ |
D | dispc.c | 3026 int lcd; in dispc_mgr_lclk_rate() local 3033 lcd = FLD_GET(l, 23, 16); in dispc_mgr_lclk_rate() 3052 return r / lcd; in dispc_mgr_lclk_rate() 3121 int lcd, pcd; in dispc_dump_clocks_channel() local 3132 dispc_mgr_get_lcd_divisor(channel, &lcd, &pcd); in dispc_dump_clocks_channel() 3135 dispc_mgr_lclk_rate(channel), lcd); in dispc_dump_clocks_channel() 3142 int lcd; in dispc_dump_clocks() local 3160 lcd = FLD_GET(l, 23, 16); in dispc_dump_clocks() 3163 (dispc_fclk_rate()/lcd), lcd); in dispc_dump_clocks()
|
/drivers/acpi/ |
D | video.c | 165 u8 lcd:1; member 1134 data->flags.lcd = 1; in acpi_video_bus_get_one_device() 1151 data->flags.lcd = 1; in acpi_video_bus_get_one_device() 1421 if (!video_device->flags.lcd) in acpi_video_get_edid()
|