/drivers/gpu/drm/shmobile/ |
H A D | shmob_drm_backlight.c | 14 #include <linux/backlight.h> 24 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; 38 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; 51 if (scon->backlight == NULL) 54 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON 56 backlight_update_status(scon->backlight); 62 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; 65 struct backlight_device *backlight; local 70 backlight = backlight_device_register(bdata->name, dev->dev, scon, 72 if (IS_ERR(backlight)) { [all...] |
H A D | shmob_drm_crtc.h | 45 struct backlight_device *backlight; member in struct:shmob_drm_connector
|
/drivers/video/backlight/ |
H A D | lv5207lp.c | 13 #include <linux/backlight.h> 40 struct backlight_device *backlight; member in struct:lv5207lp 49 static int lv5207lp_backlight_update_status(struct backlight_device *backlight) argument 51 struct lv5207lp *lv = bl_get_data(backlight); 52 int brightness = backlight->props.brightness; 54 if (backlight->props.power != FB_BLANK_UNBLANK || 55 backlight->props.fb_blank != FB_BLANK_UNBLANK || 56 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) 73 static int lv5207lp_backlight_check_fb(struct backlight_device *backlight, argument 76 struct lv5207lp *lv = bl_get_data(backlight); 91 struct backlight_device *backlight; local 137 struct backlight_device *backlight = i2c_get_clientdata(client); local [all...] |
H A D | backlight.c | 13 #include <linux/backlight.h> 21 #include <asm/backlight.h> 38 * and if it is and necessary, we're switching backlight power as well ... 286 * backlight_force_update - tell the backlight subsystem that hardware state 288 * @bd: the backlight device to update 290 * Updates the internal state of the backlight in response to a hardware event, 312 * @ops: the backlight operations structure. 314 * Creates and registers new backlight device. Returns either an 344 WARN(1, "%s: invalid backlight type", name); 402 * backlight_device_unregister - unregisters a backlight devic 437 struct backlight_device *backlight = *(struct backlight_device **)res; local 500 struct backlight_device **ptr, *backlight; local [all...] |
H A D | bd6107.c | 13 #include <linux/backlight.h> 75 struct backlight_device *backlight; member in struct:bd6107 84 static int bd6107_backlight_update_status(struct backlight_device *backlight) argument 86 struct bd6107 *bd = bl_get_data(backlight); 87 int brightness = backlight->props.brightness; 89 if (backlight->props.power != FB_BLANK_UNBLANK || 90 backlight->props.fb_blank != FB_BLANK_UNBLANK || 91 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) 108 static int bd6107_backlight_check_fb(struct backlight_device *backlight, argument 111 struct bd6107 *bd = bl_get_data(backlight); 126 struct backlight_device *backlight; local 180 struct backlight_device *backlight = i2c_get_clientdata(client); local [all...] |
/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_panel.c | 20 #include <linux/backlight.h> 32 struct backlight_device *backlight; member in struct:panel_module 59 struct backlight_device *backlight = panel_encoder->mod->backlight; local 62 if (backlight) { 63 backlight->props.power = mode == DRM_MODE_DPMS_ON ? 65 backlight_update_status(backlight); 367 bl_node = of_parse_phandle(node, "backlight", 0); 369 panel_mod->backlight = of_find_backlight_by_node(bl_node); 372 if (!panel_mod->backlight) 440 struct backlight_device *backlight = panel_mod->backlight; local [all...] |
/drivers/media/usb/gspca/gl860/ |
H A D | gl860-mi1320.c | 189 sd->vcur.backlight = 0; 201 sd->vmax.backlight = 2; 266 sd->vold.backlight = -1; 352 s32 backlight = sd->vcur.backlight; local 467 if (backlight != sd->vold.backlight) { 468 sd->vold.backlight = backlight; 469 if (backlight < [all...] |
H A D | gl860-mi2020.c | 367 sd->vcur.backlight = 0; 379 sd->vmax.backlight = 64; 444 sd->vold.backlight = 0; 638 s32 backlight = sd->vcur.backlight; local 767 if (backlight != sd->vold.backlight) { 768 sd->vold.backlight = backlight; 769 if (backlight < [all...] |
H A D | gl860-ov2640.c | 187 sd->vcur.backlight = 32; 198 sd->vmax.backlight = 64; 251 sd->vold.backlight = -1; 351 s32 backlight = sd->vcur.backlight; local 362 if (backlight != sd->vold.backlight) { 363 /* No sd->vold.backlight=backlight; (to be done again later) */ 364 if (backlight < [all...] |
H A D | gl860.h | 46 u16 backlight; member in struct:sd_gl860
|
/drivers/platform/x86/ |
H A D | msi-wmi.c | 29 #include <linux/backlight.h> 97 static struct backlight_device *backlight; variable in typeref:struct:backlight_device 147 /* Instance 1 is "get backlight", cmp with DSDT */ 150 pr_err("Could not query backlight: %d\n", err); 156 pr_debug("Current backlight level: 0x%X - index: %d\n", 174 /* Instance 0 is "set backlight" */ 224 (backlight || 247 backlight = backlight_device_register(DRV_NAME, NULL, NULL, 250 if (IS_ERR(backlight)) 251 return PTR_ERR(backlight); [all...] |
H A D | panasonic-laptop.c | 40 * add support for backlight api 123 #include <linux/backlight.h> 228 struct backlight_device *backlight; member in struct:pcc_acpi 316 /* backlight API interface functions */ 616 /* initialize backlight */ 620 pcc->backlight = backlight_device_register("panasonic", NULL, pcc, 622 if (IS_ERR(pcc->backlight)) { 623 result = PTR_ERR(pcc->backlight); 628 pcc->backlight->props.brightness = pcc->sinf[SINF_AC_CUR_BRIGHT]; 641 backlight_device_unregister(pcc->backlight); [all...] |
/drivers/gpu/drm/i915/ |
H A D | dvo_ivch.c | 294 uint16_t vr01, vr30, backlight; local 301 backlight = 1; 303 backlight = 0; 304 ivch_write(dvo, VR80, backlight);
|
/drivers/gpu/drm/gma500/ |
H A D | framebuffer.c | 684 struct drm_property *backlight; local 689 backlight = drm_property_create_range(dev, 0, "backlight", 0, 100); 691 dev_priv->backlight_property = backlight;
|
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_drm.h | 159 struct backlight_device *backlight; member in struct:nouveau_drm
|
/drivers/gpu/drm/panel/ |
H A D | panel-simple.c | 24 #include <linux/backlight.h> 73 struct backlight_device *backlight; member in struct:panel_simple 125 if (p->backlight) { 126 p->backlight->props.power = FB_BLANK_POWERDOWN; 127 backlight_update_status(p->backlight); 193 if (p->backlight) { 194 p->backlight->props.power = FB_BLANK_UNBLANK; 195 backlight_update_status(p->backlight); 234 struct device_node *backlight, *ddc; local 265 backlight [all...] |
/drivers/hid/ |
H A D | hid-picolcd.h | 102 struct backlight_device *backlight; member in struct:picolcd_data
|
/drivers/video/fbdev/ |
H A D | atmel_lcdfb.c | 19 #include <linux/backlight.h> 53 struct backlight_device *backlight; member in struct:atmel_lcdfb_info 243 if (sinfo->backlight) 249 bl = backlight_device_register("backlight", &sinfo->pdev->dev, sinfo, 252 dev_err(&sinfo->pdev->dev, "error %ld on backlight register\n", 256 sinfo->backlight = bl; 265 if (!sinfo->backlight) 268 if (sinfo->backlight->ops) { 269 sinfo->backlight->props.power = FB_BLANK_POWERDOWN; 270 sinfo->backlight [all...] |
/drivers/video/fbdev/nvidia/ |
H A D | nvidia.c | 23 #include <linux/backlight.h> 87 static int backlight = 1; variable 89 static int backlight = 0; variable 1406 if (backlight) 1506 } else if (!strncmp(this_opt, "backlight:", 10)) { 1507 backlight = simple_strtoul(this_opt+10, NULL, 0);
|
/drivers/acpi/ |
H A D | video.c | 34 #include <linux/backlight.h> 83 * should skip registering backlight interface of its own. 212 struct backlight_device *backlight; member in struct:acpi_video_device 254 /* backlight device sysfs support */ 393 if (device->backlight) 394 device->backlight->props.brightness = state - 2; 466 * These models have a working acpi_video backlight control, and using 467 * native backlight causes a regression where backlight does not work 497 /* The native backlight control 1838 struct backlight_device *backlight = bd; local [all...] |
/drivers/media/usb/pwc/ |
H A D | pwc.h | 333 struct v4l2_ctrl *backlight; member in struct:pwc_device
|
/drivers/video/fbdev/aty/ |
H A D | radeon_base.c | 280 static int backlight = 1; variable 282 static int backlight = 0; variable 2368 if (backlight) 2490 } else if (!strncmp(this_opt, "backlight:", 10)) { 2491 backlight = simple_strtoul(this_opt+10, NULL, 0);
|
H A D | aty128fb.c | 64 #include <linux/backlight.h> 76 #include <asm/backlight.h> 409 static int backlight = 1; variable 411 static int backlight = 0; variable 1722 } else if (!strncmp(this_opt, "backlight:", 10)) { 1724 backlight = simple_strtoul(this_opt+10, NULL, 0); 1789 /* We turn off the LCD completely instead of just dimming the backlight. 1791 * backlight anyway 2068 if (backlight) 2340 /* out param: u32* backlight valu [all...] |
/drivers/video/fbdev/riva/ |
H A D | fbdev.c | 42 #include <linux/backlight.h> 53 #include <asm/backlight.h> 215 static int backlight = 1; variable 217 static int backlight = 0; variable 320 tmp_pmc |= (1 << 31); /* backlight bit */ 2055 if (backlight) 2154 } else if (!strncmp(this_opt, "backlight:", 10)) { 2155 backlight = simple_strtoul(this_opt+10, NULL, 0);
|
/drivers/input/misc/ |
H A D | ims-pcu.c | 116 struct ims_pcu_backlight backlight; member in struct:ims_pcu 954 struct ims_pcu_backlight *backlight = local 957 container_of(backlight, struct ims_pcu, backlight); 958 int desired_brightness = backlight->desired_brightness; 977 struct ims_pcu_backlight *backlight = local 980 backlight->desired_brightness = value; 981 schedule_work(&backlight->work); 987 struct ims_pcu_backlight *backlight = local 990 container_of(backlight, struc 1015 struct ims_pcu_backlight *backlight = &pcu->backlight; local 1040 struct ims_pcu_backlight *backlight = &pcu->backlight; local [all...] |