/drivers/gpu/drm/nouveau/dispnv04/ |
D | overlay.c | 45 struct drm_property *contrast; member 52 int contrast; member 220 u32 luma = (plane->brightness - 512) << 16 | plane->contrast; in nv10_set_params() 253 else if (property == nv_plane->props.contrast) in nv_set_property() 254 nv_plane->contrast = value; in nv_set_property() 308 plane->props.contrast = drm_property_create_range( in nv10_overlay_init() 317 !plane->props.contrast || in nv10_overlay_init() 327 plane->contrast = 0x1000; in nv10_overlay_init() 329 plane->props.contrast, plane->contrast); in nv10_overlay_init()
|
/drivers/video/fbdev/ |
D | wm8505fb.c | 39 unsigned int contrast; member 145 writel(fbi->contrast<<16 | fbi->contrast<<8 | fbi->contrast, in wm8505fb_set_par() 157 return sprintf(buf, "%u\n", fbi->contrast); in contrast_show() 170 fbi->contrast = tmp; in contrast_store() 177 static DEVICE_ATTR_RW(contrast); 345 fbi->contrast = 0x10; in wm8505fb_probe()
|
D | ssd1307fb.c | 68 u32 contrast; member 407 ret = ssd1307fb_write_cmd(par->client, par->contrast); in ssd1307fb_init() 558 par->contrast = brightness; in ssd1307fb_update_bl() 563 ret = ssd1307fb_write_cmd(par->client, par->contrast); in ssd1307fb_update_bl() 573 return par->contrast; in ssd1307fb_get_brightness() 711 par->contrast = 127; in ssd1307fb_probe() 795 bl->props.brightness = par->contrast; in ssd1307fb_probe()
|
D | imxfb.c | 775 static int imxfb_lcd_set_contrast(struct lcd_device *lcddev, int contrast) in imxfb_lcd_set_contrast() argument 780 if (contrast > 255) in imxfb_lcd_set_contrast() 781 contrast = 255; in imxfb_lcd_set_contrast() 782 else if (contrast < 0) in imxfb_lcd_set_contrast() 783 contrast = 0; in imxfb_lcd_set_contrast() 786 fbi->pwmr |= contrast; in imxfb_lcd_set_contrast()
|
/drivers/media/usb/gspca/gl860/ |
D | gl860-ov2640.c | 178 sd->vcur.contrast = 0; in ov2640_init_settings() 189 sd->vmax.contrast = 255; in ov2640_init_settings() 242 sd->vold.contrast = -1; in ov2640_init_pre_alt() 343 s32 cntr = sd->vcur.contrast; in ov2640_camera_settings() 383 if (cntr != sd->vold.contrast) { in ov2640_camera_settings() 384 sd->vold.contrast = cntr; in ov2640_camera_settings() 385 if (cntr < 0 || cntr > sd->vmax.contrast) in ov2640_camera_settings()
|
D | gl860-mi1320.c | 180 sd->vcur.contrast = 10; in mi1320_init_settings() 192 sd->vmax.contrast = 0; /* 10 but not working with this driver */ in mi1320_init_settings() 257 sd->vold.contrast = -1; in mi1320_init_pre_alt() 343 s32 cntr = sd->vcur.contrast; in mi1320_camera_settings() 502 if (cntr != sd->vold.contrast) { in mi1320_camera_settings() 503 sd->vold.contrast = cntr; in mi1320_camera_settings() 504 if (cntr < 0 || cntr > sd->vmax.contrast) in mi1320_camera_settings()
|
D | gl860-mi2020.c | 358 sd->vcur.contrast = 0; in mi2020_init_settings() 370 sd->vmax.contrast = 3; in mi2020_init_settings() 430 sd->vold.contrast = 0; in mi2020_init_pre_alt() 629 s32 cntr = sd->vcur.contrast; in mi2020_camera_settings() 734 if (cntr != sd->vold.contrast || gam != sd->vold.gamma) { in mi2020_camera_settings() 735 sd->vold.contrast = cntr; in mi2020_camera_settings() 736 if (cntr < 0 || cntr > sd->vmax.contrast) in mi2020_camera_settings()
|
D | gl860.c | 60 sd->vcur.contrast = ctrl->val; in sd_s_ctrl() 116 if (sd->vmax.contrast) in sd_init_controls() 118 0, sd->vmax.contrast, 1, in sd_init_controls() 119 sd->vcur.contrast); in sd_init_controls()
|
D | gl860-ov9655.c | 148 sd->vcur.contrast = 0; in ov9655_init_settings() 157 sd->vmax.contrast = 0; in ov9655_init_settings()
|
/drivers/media/usb/gspca/ |
D | spca561.c | 28 struct v4l2_ctrl *contrast; member 470 static void setwhite(struct gspca_dev *gspca_dev, s32 white, s32 contrast) in setwhite() argument 483 red += contrast - 0x20; in setwhite() 484 blue += contrast - 0x20; in setwhite() 485 reg_w_val(gspca_dev, 0x8652, contrast + 0x20); /* Gr */ in setwhite() 486 reg_w_val(gspca_dev, 0x8654, contrast + 0x20); /* Gb */ in setwhite() 622 v4l2_ctrl_g_ctrl(sd->contrast)); in sd_start_72a() 818 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls_72a() 831 v4l2_ctrl_cluster(2, &sd->contrast); in sd_init_controls_72a()
|
D | sonixj.c | 27 struct v4l2_ctrl *contrast; member 1628 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 1848 u8 contrast[6]; in setcontrast() local 1850 k2 = sd->contrast->val * 37 / (CONTRAST_MAX + 1) in setcontrast() 1852 contrast[0] = (k2 + 1) / 2; /* red */ in setcontrast() 1853 contrast[1] = 0; in setcontrast() 1854 contrast[2] = k2; /* green */ in setcontrast() 1855 contrast[3] = 0; in setcontrast() 1856 contrast[4] = k2 / 5; /* blue */ in setcontrast() 1857 contrast[5] = 0; in setcontrast() [all …]
|
D | pac7302.c | 104 struct v4l2_ctrl *contrast; member 385 v -= delta[i] * sd->contrast->val / (s32)sd->contrast->maximum; in setbrightcont() 641 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | pac7311.c | 66 struct v4l2_ctrl *contrast; member 409 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 440 setcontrast(gspca_dev, v4l2_ctrl_g_ctrl(sd->contrast)); in sd_start()
|
D | t613.c | 462 static void setcontrast(struct gspca_dev *gspca_dev, s32 contrast) in setcontrast() argument 466 if (contrast < 7) in setcontrast() 467 reg_to_write = 0x8ea9 - contrast * 0x200; in setcontrast() 469 reg_to_write = 0x00a9 + (contrast - 7) * 0x200; in setcontrast()
|
D | conex.c | 27 struct v4l2_ctrl *contrast; member 885 setcontrast(gspca_dev, sd->contrast->cur.val, ctrl->val); in sd_s_ctrl() 904 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
/drivers/video/backlight/ |
D | lcd.c | 133 unsigned long contrast; in contrast_store() local 135 rc = kstrtoul(buf, 0, &contrast); in contrast_store() 143 pr_debug("set contrast to %lu\n", contrast); in contrast_store() 144 ld->ops->set_contrast(ld, contrast); in contrast_store() 151 static DEVICE_ATTR_RW(contrast);
|
/drivers/media/test-drivers/vivid/ |
D | vivid-meta-out.c | 168 v4l2_ctrl_s_ctrl(dev->contrast, meta->contrast); in vivid_meta_out_process() 173 __func__, meta->brightness, meta->contrast, in vivid_meta_out_process()
|
D | vivid-meta-out.h | 10 u16 contrast; member
|
/drivers/hid/ |
D | hid-picolcd_lcd.c | 26 static int picolcd_set_contrast(struct lcd_device *ldev, int contrast) in picolcd_set_contrast() argument 35 data->lcd_contrast = contrast & 0x0ff; in picolcd_set_contrast()
|
/drivers/gpu/drm/armada/ |
D | armada_overlay.c | 38 u16 contrast; member 47 drm_to_overlay_state(state)->contrast; in armada_spu_contrast() 327 state->contrast = DEFAULT_CONTRAST; in armada_overlay_reset() 409 drm_to_overlay_state(state)->contrast = val; in armada_overlay_set_property() 461 *val = drm_to_overlay_state(state)->contrast; in armada_overlay_get_property()
|
/drivers/gpu/drm/i915/display/ |
D | intel_overlay.c | 193 u32 brightness, contrast, saturation; member 1215 iowrite32((overlay->contrast << 18) | (overlay->brightness & 0xff), in update_reg_attrs() 1284 attrs->contrast = overlay->contrast; in intel_overlay_attrs_ioctl() 1298 if (attrs->contrast > 255) in intel_overlay_attrs_ioctl() 1305 overlay->contrast = attrs->contrast; in intel_overlay_attrs_ioctl() 1403 overlay->contrast = 75; in intel_overlay_setup()
|
/drivers/gpu/drm/i2c/ |
D | ch7006_mode.c | 334 int flicker, contrast, hpos, vpos; in ch7006_setup_properties() local 342 contrast = interpolate(0, 5, 7, priv->contrast); in ch7006_setup_properties() 343 regs[CH7006_CONTRAST] = bitf(CH7006_CONTRAST_0, contrast); in ch7006_setup_properties()
|
D | ch7006_drv.c | 272 priv->contrast); in ch7006_encoder_create_resources() 334 priv->contrast = val; in ch7006_encoder_set_property() 458 priv->contrast = 50; in ch7006_encoder_init()
|
/drivers/media/pci/cx25821/ |
D | cx25821-medusa-video.c | 572 int medusa_set_contrast(struct cx25821_dev *dev, int contrast, int decoder) in medusa_set_contrast() argument 578 if ((contrast > VIDEO_PROCAMP_MAX) || (contrast < VIDEO_PROCAMP_MIN)) { in medusa_set_contrast() 582 ret_val = mapM(VIDEO_PROCAMP_MIN, VIDEO_PROCAMP_MAX, contrast, in medusa_set_contrast()
|
/drivers/media/common/v4l2-tpg/ |
D | v4l2-tpg-core.c | 99 tpg->contrast = 128; in tpg_init() 927 if ((tpg->brightness != 128 || tpg->contrast != 128 || in precalculate_color() 937 y = (16 << 4) + ((y - (16 << 4)) * tpg->contrast) / 128; in precalculate_color() 945 cb = (128 << 4) + (tmp_cb * tpg->contrast * tpg->saturation) / (128 * 128); in precalculate_color() 946 cr = (128 << 4) + (tmp_cr * tpg->contrast * tpg->saturation) / (128 * 128); in precalculate_color() 951 } else if ((tpg->brightness != 128 || tpg->contrast != 128) && in precalculate_color() 953 r = (16 << 4) + ((r - (16 << 4)) * tpg->contrast) / 128; in precalculate_color() 1754 enum tpg_color contrast; in tpg_precalculate_line() local 1762 contrast = TPG_COLOR_100_RED; in tpg_precalculate_line() 1765 contrast = TPG_COLOR_CSC_GREEN; in tpg_precalculate_line() [all …]
|