Home
last modified time | relevance | path

Searched refs:lcd (Results 1 – 25 of 44) sorted by relevance

12

/drivers/video/fbdev/exynos/
Ds6e8ax0.c73 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/
Dcorgi_lcd.c104 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 …]
Dltv350qv.c40 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 …]
Dtdo24m.c36 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 …]
Dlms501kf03.c116 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 …]
Dams369fg06.c163 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 …]
Dld9040.c57 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 …]
Dili9320.c78 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 …]
Ds6e63m0.c357 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 …]
Dvgg2432a4.c111 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 …]
Dhx8357.c218 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_spi_write_then_read() local
254 ret = spi_sync(lcd->spi, &msg); in hx8357_spi_write_then_read()
322 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_lcd_reset() local
325 gpio_set_value(lcd->reset, 1); in hx8357_lcd_reset()
327 gpio_set_value(lcd->reset, 0); in hx8357_lcd_reset()
329 gpio_set_value(lcd->reset, 1); in hx8357_lcd_reset()
337 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_lcd_init() local
344 if (lcd->use_im_pins) { in hx8357_lcd_init()
345 gpio_set_value_cansleep(lcd->im_pins[0], 1); in hx8357_lcd_init()
346 gpio_set_value_cansleep(lcd->im_pins[1], 0); in hx8357_lcd_init()
[all …]
Dplatform_lcd.c26 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()
102 plcd->lcd = devm_lcd_device_register(&pdev->dev, dev_name(dev), dev, in platform_lcd_probe()
[all …]
Dtosa_lcd.c39 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 = devm_lcd_device_register(&spi->dev, "tosa-lcd", &spi->dev, 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 …]
Dili9320.h46 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);
Dili922x.c443 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
515 lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili, in ili922x_probe()
517 if (IS_ERR(lcd)) { in ili922x_probe()
519 return PTR_ERR(lcd); in ili922x_probe()
[all …]
Dlcd.c269 struct lcd_device *lcd = *(struct lcd_device **)res; in devm_lcd_device_release() local
271 lcd_device_unregister(lcd); in devm_lcd_device_release()
299 struct lcd_device **ptr, *lcd; in devm_lcd_device_register() local
305 lcd = lcd_device_register(name, parent, devdata, ops); in devm_lcd_device_register()
306 if (!IS_ERR(lcd)) { in devm_lcd_device_register()
307 *ptr = lcd; in devm_lcd_device_register()
313 return lcd; in devm_lcd_device_register()
/drivers/misc/
Darm-charlcd.c77 struct charlcd *lcd = data; in charlcd_interrupt() local
80 status = readl(lcd->virtbase + CHAR_STAT) & 0x01; in charlcd_interrupt()
82 writel(CHAR_RAW_CLEAR, lcd->virtbase + CHAR_RAW); in charlcd_interrupt()
84 complete(&lcd->complete); in charlcd_interrupt()
86 dev_info(lcd->dev, "Spurious IRQ (%02x)\n", status); in charlcd_interrupt()
91 static void charlcd_wait_complete_irq(struct charlcd *lcd) in charlcd_wait_complete_irq() argument
95 ret = wait_for_completion_interruptible_timeout(&lcd->complete, in charlcd_wait_complete_irq()
98 writel(0x00, lcd->virtbase + CHAR_MASK); in charlcd_wait_complete_irq()
101 dev_err(lcd->dev, in charlcd_wait_complete_irq()
108 dev_err(lcd->dev, "charlcd controller timed out " in charlcd_wait_complete_irq()
[all …]
/drivers/staging/panel/
Dpanel.c287 } lcd; variable
811 if (lcd.pins.bl == PIN_NONE) in lcd_backlight()
910 | (lcd.addr.y ? lcd.hwidth : 0) in lcd_gotoxy()
915 | ((lcd.addr.x < lcd.bwidth) ? lcd.addr.x & in lcd_gotoxy()
916 (lcd.hwidth - 1) : lcd.bwidth - 1)); in lcd_gotoxy()
921 if (lcd.addr.x < lcd.bwidth) { in lcd_print()
925 lcd.addr.x++; in lcd_print()
928 if (lcd.addr.x == lcd.bwidth) in lcd_print()
937 lcd.addr.x = 0; in lcd_clear_fast_s()
938 lcd.addr.y = 0; in lcd_clear_fast_s()
[all …]
/drivers/video/fbdev/
Dau1200fb.c177 static struct au1200_lcd *lcd = (struct au1200_lcd *) AU1200_LCD_ADDR; variable
708 winctrl0 = lcd->window[plane].winctrl0; in au1200_setlocation()
709 winctrl1 = lcd->window[plane].winctrl1; in au1200_setlocation()
731 fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); in au1200_setlocation()
756 winenable = lcd->winenable & (1 << plane); in au1200_setlocation()
758 lcd->winenable &= ~(1 << plane); in au1200_setlocation()
759 lcd->window[plane].winctrl0 = winctrl0; in au1200_setlocation()
760 lcd->window[plane].winctrl1 = winctrl1; in au1200_setlocation()
761 lcd->window[plane].winbuf0 = in au1200_setlocation()
762 lcd->window[plane].winbuf1 = fbdev->fb_phys; in au1200_setlocation()
[all …]
Dclps711x-fb.c217 struct lcd_device *lcd; in clps711x_fb_probe() local
349 lcd = devm_lcd_device_register(dev, "clps711x-lcd", dev, cfb, in clps711x_fb_probe()
351 if (!IS_ERR(lcd)) in clps711x_fb_probe()
354 ret = PTR_ERR(lcd); in clps711x_fb_probe()
Dimxfb.c812 struct lcd_device *lcd; in imxfb_probe() local
970 lcd = devm_lcd_device_register(&pdev->dev, "imxfb-lcd", &pdev->dev, fbi, in imxfb_probe()
972 if (IS_ERR(lcd)) { in imxfb_probe()
973 ret = PTR_ERR(lcd); in imxfb_probe()
977 lcd->props.max_contrast = 0xff; in imxfb_probe()
/drivers/staging/lustre/lustre/include/
Dlustre_disk.h223 struct lsd_client_data *lcd) in check_lcd() argument
225 int length = sizeof(lcd->lcd_uuid); in check_lcd()
227 if (strnlen((char *)lcd->lcd_uuid, length) == length) { in check_lcd()
228 lcd->lcd_uuid[length - 1] = '\0'; in check_lcd()
231 lcd->lcd_uuid, obd_name, index); in check_lcd()
293 struct lsd_client_data *lcd) in lcd_le_to_cpu() argument
295 memcpy(lcd->lcd_uuid, buf->lcd_uuid, sizeof (lcd->lcd_uuid)); in lcd_le_to_cpu()
296 lcd->lcd_last_transno = le64_to_cpu(buf->lcd_last_transno); in lcd_le_to_cpu()
297 lcd->lcd_last_xid = le64_to_cpu(buf->lcd_last_xid); in lcd_le_to_cpu()
298 lcd->lcd_last_result = le32_to_cpu(buf->lcd_last_result); in lcd_le_to_cpu()
[all …]
/drivers/hid/
Dhid-picolcd_lcd.c85 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()
100 if (!data->lcd) in picolcd_resume_lcd()
102 return picolcd_set_contrast(data->lcd, data->lcd_contrast); in picolcd_resume_lcd()
/drivers/video/fbdev/via/
DMakefile7 viafb-y :=viafbdev.o hw.o via_i2c.o dvi.o lcd.o ioctl.o accel.o \
Dioctl.h86 unsigned short lcd:1; member

12