Home
last modified time | relevance | path

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

12345678

/Linux-v6.1/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-v6.1/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c45 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()
309 plane->props.contrast = drm_property_create_range( in nv10_overlay_init()
318 !plane->props.contrast || in nv10_overlay_init()
328 plane->contrast = 0x1000; in nv10_overlay_init()
330 plane->props.contrast, plane->contrast); in nv10_overlay_init()
/Linux-v6.1/drivers/video/fbdev/
Dwm8505fb.c39 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()
Dssd1307fb.c68 u32 contrast; member
408 ret = ssd1307fb_write_cmd(par->client, par->contrast); in ssd1307fb_init()
559 par->contrast = brightness; in ssd1307fb_update_bl()
564 ret = ssd1307fb_write_cmd(par->client, par->contrast); in ssd1307fb_update_bl()
574 return par->contrast; in ssd1307fb_get_brightness()
711 par->contrast = 127; in ssd1307fb_probe()
795 bl->props.brightness = par->contrast; in ssd1307fb_probe()
Dimxfb.c780 static int imxfb_lcd_set_contrast(struct lcd_device *lcddev, int contrast) in imxfb_lcd_set_contrast() argument
785 if (contrast > 255) in imxfb_lcd_set_contrast()
786 contrast = 255; in imxfb_lcd_set_contrast()
787 else if (contrast < 0) in imxfb_lcd_set_contrast()
788 contrast = 0; in imxfb_lcd_set_contrast()
791 fbi->pwmr |= contrast; in imxfb_lcd_set_contrast()
/Linux-v6.1/drivers/media/usb/gspca/gl860/
Dgl860-ov2640.c178 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()
Dgl860-mi1320.c207 sd->vcur.contrast = 10; in mi1320_init_settings()
219 sd->vmax.contrast = 0; /* 10 but not working with this driver */ in mi1320_init_settings()
284 sd->vold.contrast = -1; in mi1320_init_pre_alt()
370 s32 cntr = sd->vcur.contrast; in mi1320_camera_settings()
529 if (cntr != sd->vold.contrast) { in mi1320_camera_settings()
530 sd->vold.contrast = cntr; in mi1320_camera_settings()
531 if (cntr < 0 || cntr > sd->vmax.contrast) in mi1320_camera_settings()
Dgl860-mi2020.c358 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()
Dgl860-ov9655.c197 sd->vcur.contrast = 0; in ov9655_init_settings()
206 sd->vmax.contrast = 0; in ov9655_init_settings()
Dgl860.c60 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()
/Linux-v6.1/drivers/video/backlight/
Dlcd.c133 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);
/Linux-v6.1/drivers/media/usb/gspca/
Dspca561.c28 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()
Dsonixj.c27 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 …]
Dpac7302.c104 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()
/Linux-v6.1/drivers/media/test-drivers/vivid/
Dvivid-meta-out.c168 v4l2_ctrl_s_ctrl(dev->contrast, meta->contrast); in vivid_meta_out_process()
173 __func__, meta->brightness, meta->contrast, in vivid_meta_out_process()
Dvivid-meta-out.h10 u16 contrast; member
/Linux-v6.1/include/media/tpg/
Dv4l2-tpg.h156 u8 contrast; member
309 u8 contrast) in tpg_s_contrast() argument
311 if (tpg->contrast == contrast) in tpg_s_contrast()
313 tpg->contrast = contrast; in tpg_s_contrast()
/Linux-v6.1/Documentation/userspace-api/media/v4l/
Dpixfmt-meta-vivid.rst31 * - u16 contrast;
32 - Image contrast, the value is in the range 0 to 255, with the default value as 128.
/Linux-v6.1/drivers/hid/
Dhid-picolcd_lcd.c26 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()
/Linux-v6.1/Documentation/gpu/
Dkms-properties.csv12 ,,“contrast”,RANGE,"Min=0, Max=100",Connector,TBD
29 ,,“contrast”,RANGE,"Min=0, Max= SDVO dependent",Connector,TBD
50 ,,“contrast”,RANGE,"Min=0, Max= SDVO dependent",Connector,TBD
70 ,,"""contrast""",RANGE,"Min=0, Max=0x7fff",Plane,TBD
76 ,,“contrast”,RANGE,"Min=0, Max=8192-1",Plane,TBD
/Linux-v6.1/drivers/gpu/drm/armada/
Darmada_overlay.c36 u16 contrast; member
45 drm_to_overlay_state(state)->contrast; in armada_spu_contrast()
319 state->contrast = DEFAULT_CONTRAST; in armada_overlay_reset()
401 drm_to_overlay_state(state)->contrast = val; in armada_overlay_set_property()
453 *val = drm_to_overlay_state(state)->contrast; in armada_overlay_get_property()
/Linux-v6.1/arch/arm/boot/dts/
Dnspire.dtsi194 contrast: contrast@900f0000 { label
/Linux-v6.1/Documentation/sphinx-static/
Dtheme_rtd_colors.css7 /* Improve contrast and increase size for easier reading. */
/Linux-v6.1/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c572 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()
/Linux-v6.1/drivers/gpu/drm/i2c/
Dch7006_mode.c334 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()

12345678