Searched refs:contrast (Results 1 - 25 of 80) sorted by relevance

1234

/drivers/hid/
H A Dhid-picolcd_lcd.c36 static int picolcd_set_contrast(struct lcd_device *ldev, int contrast) argument
45 data->lcd_contrast = contrast & 0x0ff;
/drivers/media/platform/vivid/
H A Dvivid-tpg.h116 u8 contrast; member in struct:tpg_data
232 u8 contrast)
234 if (tpg->contrast == contrast)
236 tpg->contrast = contrast;
231 tpg_s_contrast(struct tpg_data *tpg, u8 contrast) argument
H A Dvivid-tpg.c104 tpg->contrast = 128;
497 if (tpg->brightness != 128 || tpg->contrast != 128 ||
507 y = (16 << 4) + ((y - (16 << 4)) * tpg->contrast) / 128;
515 cb = (128 << 4) + (tmp_cb * tpg->contrast * tpg->saturation) / (128 * 128);
516 cr = (128 << 4) + (tmp_cr * tpg->contrast * tpg->saturation) / (128 * 128);
875 enum tpg_color contrast; local
882 contrast = TPG_COLOR_100_RED;
885 contrast = TPG_COLOR_CSC_GREEN;
888 contrast = TPG_COLOR_100_GREEN;
938 gen_twopix(tpg, pix, contrast,
[all...]
/drivers/video/fbdev/
H A Dwm8505fb.c47 unsigned int contrast; member in struct:wm8505fb_info
153 writel(fbi->contrast<<16 | fbi->contrast<<8 | fbi->contrast,
165 return sprintf(buf, "%u\n", fbi->contrast);
178 fbi->contrast = tmp;
185 static DEVICE_ATTR(contrast, 0644, contrast_show, contrast_store);
349 fbi->contrast = 0x10;
H A Dbf537-lq035.c660 static int bfin_lcd_set_contrast(struct lcd_device *dev, int contrast) argument
662 if (contrast > 255)
663 contrast = 255;
664 if (contrast < 0)
665 contrast = 0;
667 vcomm_value = (unsigned char)contrast;
H A Dimxfb.c738 static int imxfb_lcd_set_contrast(struct lcd_device *lcddev, int contrast) argument
743 if (contrast > 255)
744 contrast = 255;
745 else if (contrast < 0)
746 contrast = 0;
749 fbi->pwmr |= contrast;
/drivers/gpu/drm/nouveau/dispnv04/
H A Doverlay.c45 struct drm_property *contrast; member in struct:nouveau_plane::__anon876
53 int contrast; member in struct:nouveau_plane
201 u32 luma = (plane->brightness - 512) << 16 | plane->contrast;
234 else if (property == nv_plane->props.contrast)
235 nv_plane->contrast = value;
289 plane->props.contrast = drm_property_create_range(
290 device, 0, "contrast", 0, 8192 - 1);
300 !plane->props.contrast ||
311 plane->contrast = 0x1000;
313 plane->props.contrast, plan
[all...]
/drivers/video/backlight/
H A Dlcd.c152 unsigned long contrast; local
154 rc = kstrtoul(buf, 0, &contrast);
162 pr_debug("set contrast to %lu\n", contrast);
163 ld->ops->set_contrast(ld, contrast);
170 static DEVICE_ATTR_RW(contrast);
/drivers/media/platform/omap3isp/
H A Disppreview.h77 * @contrast: Contrast.
96 u8 contrast; member in struct:prev_params
/drivers/media/usb/gspca/gl860/
H A Dgl860.h49 u16 contrast; member in struct:sd_gl860
H A Dgl860-mi1320.c192 sd->vcur.contrast = 10;
204 sd->vmax.contrast = 0; /* 10 but not working with this driver */
269 sd->vold.contrast = -1;
355 s32 cntr = sd->vcur.contrast;
514 if (cntr != sd->vold.contrast) {
515 sd->vold.contrast = cntr;
516 if (cntr < 0 || cntr > sd->vmax.contrast)
H A Dgl860-ov2640.c190 sd->vcur.contrast = 0;
201 sd->vmax.contrast = 255;
254 sd->vold.contrast = -1;
355 s32 cntr = sd->vcur.contrast;
395 if (cntr != sd->vold.contrast) {
396 sd->vold.contrast = cntr;
397 if (cntr < 0 || cntr > sd->vmax.contrast)
H A Dgl860.c72 sd->vcur.contrast = ctrl->val;
128 if (sd->vmax.contrast)
130 0, sd->vmax.contrast, 1,
131 sd->vcur.contrast);
H A Dgl860-ov9655.c160 sd->vcur.contrast = 0;
169 sd->vmax.contrast = 0;
/drivers/media/platform/exynos4-is/
H A Dfimc-isp.h79 /* Adjust - contrast */
80 struct v4l2_ctrl *contrast; member in struct:fimc_isp_ctrls
/drivers/media/usb/gspca/
H A Dspca561.c40 struct { /* hue/contrast control cluster */
41 struct v4l2_ctrl *contrast; member in struct:sd::__anon2451
482 static void setwhite(struct gspca_dev *gspca_dev, s32 white, s32 contrast) argument
495 red += contrast - 0x20;
496 blue += contrast - 0x20;
497 reg_w_val(gspca_dev, 0x8652, contrast + 0x20); /* Gr */
498 reg_w_val(gspca_dev, 0x8654, contrast + 0x20); /* Gb */
634 v4l2_ctrl_g_ctrl(sd->contrast));
786 /* hue/contrast control cluster for 72a */
839 sd->contrast
[all...]
H A Dpac7311.c79 struct v4l2_ctrl *contrast; member in struct:sd
422 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops,
453 setcontrast(gspca_dev, v4l2_ctrl_g_ctrl(sd->contrast));
/drivers/staging/media/davinci_vpfe/
H A Ddm365_ipipe.h69 /* contrast adjustments */
70 unsigned char contrast; member in struct:ipipe_lum_adj
/drivers/gpu/drm/armada/
H A Darmada_overlay.c26 uint16_t contrast; member in struct:armada_plane_properties
57 writel_relaxed(prop->brightness << 16 | prop->contrast,
339 dplane->prop.contrast = val;
416 "contrast", 0, 0x7fff);
454 dplane->prop.contrast = 0x4000;
472 dplane->prop.contrast);
/drivers/gpu/drm/i2c/
H A Dch7006_drv.c270 priv->contrast);
332 priv->contrast = val;
461 priv->contrast = 50;
H A Dch7006_mode.c335 int flicker, contrast, hpos, vpos; local
343 contrast = interpolate(0, 5, 7, priv->contrast);
344 regs[CH7006_CONTRAST] = bitf(CH7006_CONTRAST_0, contrast);
/drivers/media/usb/hdpvr/
H A Dhdpvr.h60 u8 contrast; member in struct:hdpvr_options
H A Dhdpvr-core.c155 dev->options.contrast = 0x40;
268 .contrast = 0x80,
/drivers/gpu/drm/i915/
H A Dintel_overlay.c179 u32 brightness, contrast, saturation; member in struct:intel_overlay
1186 iowrite32((overlay->contrast << 18) | (overlay->brightness & 0xff),
1258 attrs->contrast = overlay->contrast;
1272 if (attrs->contrast > 255)
1279 overlay->contrast = attrs->contrast;
1377 overlay->contrast = 75;
/drivers/media/parport/
H A Dw9966.c120 signed char contrast; member in struct:w9966
541 saa7111_regs[0x0b] = cam->contrast;
615 cam->contrast = ctrl->val;
632 w9966_write_reg_i2c(cam, 0x0b, cam->contrast) == -1 ||
838 cam->contrast = 64;

Completed in 649 milliseconds

1234