Home
last modified time | relevance | path

Searched refs:contrast (Results 1 – 25 of 118) sorted by relevance

12345

/linux-2.6.39/drivers/staging/go7007/
Dwis-saa7113.c30 int contrast; member
211 dec->contrast = 127; in wis_saa7113_command()
213 dec->contrast = 0; in wis_saa7113_command()
215 dec->contrast = ctrl->value; in wis_saa7113_command()
216 write_reg(client, 0x0b, dec->contrast); in wis_saa7113_command()
248 ctrl->value = dec->contrast; in wis_saa7113_command()
280 dec->contrast = 71; in wis_saa7113_probe()
Dwis-tw9903.c30 int contrast; member
214 dec->contrast = 255; in wis_tw9903_command()
216 dec->contrast = 0; in wis_tw9903_command()
218 dec->contrast = ctrl->value; in wis_tw9903_command()
219 write_reg(client, 0x11, dec->contrast); in wis_tw9903_command()
253 ctrl->value = dec->contrast; in wis_tw9903_command()
287 dec->contrast = 0x60; in wis_tw9903_probe()
Dwis-tw2804.c31 int contrast; member
241 dec->contrast = 255; in wis_tw2804_command()
243 dec->contrast = 0; in wis_tw2804_command()
245 dec->contrast = ctrl->value; in wis_tw2804_command()
246 write_reg(client, 0x11, dec->contrast, dec->channel); in wis_tw2804_command()
278 ctrl->value = dec->contrast; in wis_tw2804_command()
311 dec->contrast = 128; in wis_tw2804_probe()
Dwis-saa7115.c30 int contrast; member
344 dec->contrast = 127; in wis_saa7115_command()
346 dec->contrast = 0; in wis_saa7115_command()
348 dec->contrast = ctrl->value; in wis_saa7115_command()
349 write_reg(client, 0x0b, dec->contrast); in wis_saa7115_command()
381 ctrl->value = dec->contrast; in wis_saa7115_command()
413 dec->contrast = 64; in wis_saa7115_probe()
Ds2250-board.c123 int contrast; member
413 state->contrast = 100; in s2250_s_ctrl()
415 state->contrast = 0; in s2250_s_ctrl()
417 state->contrast = ctrl->value; in s2250_s_ctrl()
418 value1 = state->contrast * 0x40 / 100; in s2250_s_ctrl()
467 ctrl->value = state->contrast; in s2250_g_ctrl()
532 v4l2_info(sd, "Contrast: %d\n", state->contrast); in s2250_log_status()
598 state->contrast = 50; in s2250_probe()
/linux-2.6.39/Documentation/ABI/testing/
Dsysfs-class-lcd10 What: /sys/class/lcd/<lcd>/contrast
15 Current contrast of this LCD device. Value is between 0 and
23 Maximum contrast for this LCD device.
/linux-2.6.39/drivers/video/display/
Ddisplay-sysfs.c65 int contrast; in display_store_contrast() local
68 contrast = simple_strtoul(buf, &endp, 0); in display_store_contrast()
79 pr_debug("display: set contrast to %d\n", contrast); in display_store_contrast()
80 dsp->driver->set_contrast(dsp, contrast); in display_store_contrast()
104 __ATTR(contrast, S_IRUGO | S_IWUSR, display_show_contrast, display_store_contrast),
/linux-2.6.39/drivers/video/
Dwm8505fb.c44 unsigned int contrast; member
134 writel(fbi->contrast<<16 | fbi->contrast<<8 | fbi->contrast, in wm8505fb_set_par()
146 return sprintf(buf, "%d\n", fbi->contrast); in contrast_show()
159 fbi->contrast = tmp; in contrast_store()
166 static DEVICE_ATTR(contrast, 0644, contrast_show, contrast_store);
332 fbi->contrast = 0x80; in wm8505fb_probe()
Dbf537-lq035.c666 static int bfin_lcd_set_contrast(struct lcd_device *dev, int contrast) in bfin_lcd_set_contrast() argument
668 if (contrast > 255) in bfin_lcd_set_contrast()
669 contrast = 255; in bfin_lcd_set_contrast()
670 if (contrast < 0) in bfin_lcd_set_contrast()
671 contrast = 0; in bfin_lcd_set_contrast()
673 vcomm_value = (unsigned char)contrast; in bfin_lcd_set_contrast()
/linux-2.6.39/drivers/media/video/gspca/gl860/
Dgl860-ov2640.c190 sd->vcur.contrast = 0; in ov2640_init_settings()
201 sd->vmax.contrast = 255; in ov2640_init_settings()
254 sd->vold.contrast = -1; in ov2640_init_pre_alt()
355 s32 cntr = sd->vcur.contrast; in ov2640_camera_settings()
395 if (cntr != sd->vold.contrast) { in ov2640_camera_settings()
396 sd->vold.contrast = cntr; in ov2640_camera_settings()
397 if (cntr < 0 || cntr > sd->vmax.contrast) in ov2640_camera_settings()
Dgl860-mi1320.c192 sd->vcur.contrast = 10; in mi1320_init_settings()
204 sd->vmax.contrast = 0; /* 10 but not working with this driver */ in mi1320_init_settings()
269 sd->vold.contrast = -1; in mi1320_init_pre_alt()
355 s32 cntr = sd->vcur.contrast; in mi1320_camera_settings()
514 if (cntr != sd->vold.contrast) { in mi1320_camera_settings()
515 sd->vold.contrast = cntr; in mi1320_camera_settings()
516 if (cntr < 0 || cntr > sd->vmax.contrast) in mi1320_camera_settings()
Dgl860-mi2020.c298 sd->vcur.contrast = 0; in mi2020_init_settings()
310 sd->vmax.contrast = 3; in mi2020_init_settings()
370 sd->vold.contrast = 0; in mi2020_init_pre_alt()
569 s32 cntr = sd->vcur.contrast; in mi2020_camera_settings()
674 if (cntr != sd->vold.contrast || gam != sd->vold.gamma) { in mi2020_camera_settings()
675 sd->vold.contrast = cntr; in mi2020_camera_settings()
676 if (cntr < 0 || cntr > sd->vmax.contrast) in mi2020_camera_settings()
/linux-2.6.39/drivers/staging/msm/
Debi2_l2f.c134 static void epsonQcif_disp_set_contrast(word contrast);
485 static void epsonQcif_disp_set_contrast(word contrast) in epsonQcif_disp_set_contrast() argument
498 if (contrast > 127) in epsonQcif_disp_set_contrast()
499 contrast = 127; in epsonQcif_disp_set_contrast()
500 DISP_DATA_OUT(contrast); /* value from 0 to 127 */ in epsonQcif_disp_set_contrast()
501 disp_contrast = (byte) contrast; in epsonQcif_disp_set_contrast()
/linux-2.6.39/drivers/video/backlight/
Dlcd.c141 int contrast = simple_strtoul(buf, &endp, 0); in lcd_store_contrast() local
151 pr_debug("lcd: set contrast to %d\n", contrast); in lcd_store_contrast()
152 ld->ops->set_contrast(ld, contrast); in lcd_store_contrast()
178 __ATTR(contrast, 0644, lcd_show_contrast, lcd_store_contrast),
/linux-2.6.39/drivers/media/video/gspca/
Dspca501.c34 unsigned short contrast; member
1891 (sd->contrast >> 8) & 0xff); in setcontrast()
1893 sd->contrast & 0xff); in setcontrast()
1929 sd->contrast = sd_ctrls[MY_CONTRAST].qctrl.default_value; in sd_config()
2076 sd->contrast = val; in sd_setcontrast()
2086 *val = sd->contrast; in sd_getcontrast()
Dkonica.c52 u8 contrast; member
253 sd->contrast = CONTRAST_DEFAULT; in sd_config()
295 reg_w(gspca_dev, sd->contrast, CONTRAST_REG); in sd_start()
510 sd->contrast = val; in sd_setcontrast()
513 reg_w(gspca_dev, sd->contrast, CONTRAST_REG); in sd_setcontrast()
524 *val = sd->contrast; in sd_getcontrast()
Dspca1528.c35 u8 contrast; member
269 reg_wb(gspca_dev, 0xc1, 0x0000, 0x00c1, sd->contrast); in setcontrast()
305 sd->contrast = CONTRAST_DEF; in sd_config()
476 sd->contrast = val; in sd_setcontrast()
486 *val = sd->contrast; in sd_getcontrast()
Detoms.c34 unsigned char contrast; member
479 __u8 contrast = sd->contrast; in setcontrast() local
481 memset(RGBG, contrast, sizeof(RGBG) - 2); in setcontrast()
645 sd->contrast = CONTRAST_DEF; in sd_config()
803 sd->contrast = val; in sd_setcontrast()
813 *val = sd->contrast; in sd_getcontrast()
Dspca561.c41 __u8 contrast; /* rev72a only */ member
463 sd->contrast = CONTRAST_DEF; in sd_config()
523 red += sd->contrast - 0x20; in setwhite()
524 blue += sd->contrast - 0x20; in setwhite()
538 value = sd->contrast + 0x20; in setcontrast()
844 sd->contrast = val; in sd_setcontrast()
854 *val = sd->contrast; in sd_getcontrast()
Dt613.c44 u8 contrast; member
693 sd->contrast = CONTRAST_DEF; in sd_config()
729 unsigned int contrast = sd->contrast; in setcontrast() local
732 if (contrast < 7) in setcontrast()
733 reg_to_write = 0x8ea9 - contrast * 0x200; in setcontrast()
735 reg_to_write = 0x00a9 + (contrast - 7) * 0x200; in setcontrast()
1272 sd->contrast = val; in sd_setcontrast()
1282 *val = sd->contrast; in sd_getcontrast()
Dspca506.c37 unsigned char contrast; member
291 sd->contrast = sd_ctrls[SD_CONTRAST].qctrl.default_value; in sd_config()
581 spca506_WriteI2c(gspca_dev, sd->contrast, SAA7113_contrast); in setcontrast()
625 sd->contrast = val; in sd_setcontrast()
635 *val = sd->contrast; in sd_getcontrast()
Dpac7311.c65 unsigned char contrast; member
398 sd->contrast = CONTRAST_DEF; in sd_config()
413 reg_w(gspca_dev, 0x10, sd->contrast >> 4); in setcontrast()
674 sd->contrast = val; in sd_setcontrast()
684 *val = sd->contrast; in sd_getcontrast()
Dconex.c37 unsigned char contrast; member
826 sd->contrast = CONTRAST_DEF; in sd_config()
934 regE5acx[2] = sd->contrast; in setcontrast()
966 sd->contrast = val; in sd_setcontrast()
976 *val = sd->contrast; in sd_getcontrast()
/linux-2.6.39/drivers/media/video/
Dw9966.c117 signed char contrast; member
538 saa7111_regs[0x0b] = cam->contrast; in w9966_setup()
627 ctrl->value = cam->contrast; in cam_g_ctrl()
654 cam->contrast = ctrl->value; in cam_s_ctrl()
671 w9966_write_reg_i2c(cam, 0x0b, cam->contrast) == -1 || in cam_s_ctrl()
856 cam->contrast = 64; in w9966_init()
Dpms.c63 s32 brightness, saturation, hue, contrast; member
259 static void pms_contrast(struct pms *dev, short contrast) in pms_contrast() argument
263 pms_i2c_write(dev, 0x8a, 0x00, contrast); in pms_contrast()
266 pms_i2c_write(dev, 0x42, 0x13, contrast); in pms_contrast()
798 ctrl->value = dev->contrast; in pms_g_ctrl()
826 dev->contrast = ctrl->value; in pms_s_ctrl()
827 pms_contrast(dev, dev->contrast); in pms_s_ctrl()
1118 dev->contrast = 70; in pms_init()

12345