/drivers/video/backlight/ |
D | lp8788_bl.c | 45 struct backlight_device *bl_dev; member 159 static int lp8788_bl_update_status(struct backlight_device *bl_dev) in lp8788_bl_update_status() argument 161 struct lp8788_bl *bl = bl_get_data(bl_dev); in lp8788_bl_update_status() 164 if (bl_dev->props.state & BL_CORE_SUSPENDED) in lp8788_bl_update_status() 165 bl_dev->props.brightness = 0; in lp8788_bl_update_status() 168 int brt = bl_dev->props.brightness; in lp8788_bl_update_status() 169 int max = bl_dev->props.max_brightness; in lp8788_bl_update_status() 173 u8 brt = bl_dev->props.brightness; in lp8788_bl_update_status() 188 struct backlight_device *bl_dev; in lp8788_backlight_register() local 212 bl_dev = backlight_device_register(name, bl->lp->dev, bl, in lp8788_backlight_register() [all …]
|
D | corgi_lcd.c | 85 struct backlight_device *bl_dev; member 441 backlight_update_status(the_corgi_lcd->bl_dev); in corgi_lcd_limit_intensity() 467 backlight_update_status(lcd->bl_dev); in corgi_lcd_resume() 521 lcd->bl_dev = devm_backlight_device_register(&spi->dev, "corgi_bl", in corgi_lcd_probe() 524 if (IS_ERR(lcd->bl_dev)) in corgi_lcd_probe() 525 return PTR_ERR(lcd->bl_dev); in corgi_lcd_probe() 527 lcd->bl_dev->props.brightness = pdata->default_intensity; in corgi_lcd_probe() 528 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_probe() 538 backlight_update_status(lcd->bl_dev); in corgi_lcd_probe() 549 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_remove() [all …]
|
D | led_bl.c | 16 struct backlight_device *bl_dev; member 205 priv->bl_dev = backlight_device_register(dev_name(&pdev->dev), in led_bl_probe() 207 if (IS_ERR(priv->bl_dev)) { in led_bl_probe() 209 return PTR_ERR(priv->bl_dev); in led_bl_probe() 215 backlight_update_status(priv->bl_dev); in led_bl_probe() 223 struct backlight_device *bl = priv->bl_dev; in led_bl_remove()
|
D | omap1_bl.c | 64 struct backlight_device *bl_dev = dev_get_drvdata(dev); in omapbl_suspend() local 65 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_suspend() 73 struct backlight_device *bl_dev = dev_get_drvdata(dev); in omapbl_resume() local 74 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_resume()
|
/drivers/gpu/drm/panel/ |
D | panel-samsung-s6e3ha2.c | 235 struct backlight_device *bl_dev; member 410 static int s6e3ha2_get_brightness(struct backlight_device *bl_dev) in s6e3ha2_get_brightness() argument 412 return bl_dev->props.brightness; in s6e3ha2_get_brightness() 417 struct backlight_device *bl_dev = ctx->bl_dev; in s6e3ha2_set_vint() local 418 unsigned int brightness = bl_dev->props.brightness; in s6e3ha2_set_vint() 434 struct backlight_device *bl_dev = ctx->bl_dev; in s6e3ha2_update_gamma() local 444 bl_dev->props.brightness = brightness; in s6e3ha2_update_gamma() 449 static int s6e3ha2_set_brightness(struct backlight_device *bl_dev) in s6e3ha2_set_brightness() argument 451 struct s6e3ha2 *ctx = bl_get_data(bl_dev); in s6e3ha2_set_brightness() 452 unsigned int brightness = bl_dev->props.brightness; in s6e3ha2_set_brightness() [all …]
|
D | panel-samsung-s6e63j0x03.c | 38 struct backlight_device *bl_dev; member 185 struct backlight_device *bl_dev = ctx->bl_dev; in s6e63j0x03_update_gamma() local 201 bl_dev->props.brightness = brightness; in s6e63j0x03_update_gamma() 206 static int s6e63j0x03_set_brightness(struct backlight_device *bl_dev) in s6e63j0x03_set_brightness() argument 208 struct s6e63j0x03 *ctx = bl_get_data(bl_dev); in s6e63j0x03_set_brightness() 209 unsigned int brightness = bl_dev->props.brightness; in s6e63j0x03_set_brightness() 228 ctx->bl_dev->props.power = FB_BLANK_NORMAL; in s6e63j0x03_disable() 248 ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; in s6e63j0x03_unprepare() 335 ctx->bl_dev->props.power = FB_BLANK_NORMAL; in s6e63j0x03_prepare() 396 ctx->bl_dev->props.power = FB_BLANK_UNBLANK; in s6e63j0x03_enable() [all …]
|
D | panel-orisetech-otm8009a.c | 66 struct backlight_device *bl_dev; member 269 backlight_disable(ctx->bl_dev); in otm8009a_disable() 343 backlight_enable(ctx->bl_dev); in otm8009a_enable() 460 ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev), in otm8009a_probe() 464 if (IS_ERR(ctx->bl_dev)) { in otm8009a_probe() 465 ret = PTR_ERR(ctx->bl_dev); in otm8009a_probe() 470 ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX; in otm8009a_probe() 471 ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT; in otm8009a_probe() 472 ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; in otm8009a_probe() 473 ctx->bl_dev->props.type = BACKLIGHT_RAW; in otm8009a_probe()
|
D | panel-samsung-s6e63m0.c | 102 struct backlight_device *bl_dev; member 321 backlight_disable(ctx->bl_dev); in s6e63m0_disable() 402 backlight_enable(ctx->bl_dev); in s6e63m0_enable() 468 ctx->bl_dev = devm_backlight_device_register(dev, "panel", dev, ctx, in s6e63m0_backlight_register() 471 if (IS_ERR(ctx->bl_dev)) { in s6e63m0_backlight_register() 472 ret = PTR_ERR(ctx->bl_dev); in s6e63m0_backlight_register()
|
/drivers/video/fbdev/aty/ |
D | radeon_backlight.c | 157 rinfo->info->bl_dev = NULL; in radeonfb_bl_init() 180 rinfo->info->bl_dev = bd; in radeonfb_bl_init() 200 struct backlight_device *bd = rinfo->info->bl_dev; in radeonfb_bl_exit() 208 rinfo->info->bl_dev = NULL; in radeonfb_bl_exit()
|
D | aty128fb.c | 1822 if (info->bl_dev) { in aty128_bl_set_power() 1823 info->bl_dev->props.power = power; in aty128_bl_set_power() 1824 backlight_update_status(info->bl_dev); in aty128_bl_set_power() 1852 info->bl_dev = NULL; in aty128_bl_init() 1857 info->bl_dev = bd; in aty128_bl_init() 2169 aty128_bl_exit(info->bl_dev); in aty128_remove()
|
/drivers/video/fbdev/nvidia/ |
D | nv_backlight.c | 110 info->bl_dev = NULL; in nvidia_bl_init() 115 info->bl_dev = bd; in nvidia_bl_init() 133 struct backlight_device *bd = info->bl_dev; in nvidia_bl_exit()
|
/drivers/s390/cio/ |
D | blacklist.c | 42 static unsigned long bl_dev[__MAX_SSID + 1][__BL_DEV_WORDS]; variable 64 set_bit(from, bl_dev[from_ssid]); in blacklist_range() 66 clear_bit(from, bl_dev[from_ssid]); in blacklist_range() 248 return test_bit (devno, bl_dev[ssid]); in is_blacklisted()
|
/drivers/staging/olpc_dcon/ |
D | olpc_dcon.c | 645 dcon->bl_dev = backlight_device_register("dcon-bl", &dcon_device->dev, in dcon_probe() 648 if (IS_ERR(dcon->bl_dev)) { in dcon_probe() 650 PTR_ERR(dcon->bl_dev)); in dcon_probe() 651 dcon->bl_dev = NULL; in dcon_probe() 681 backlight_device_unregister(dcon->bl_dev); in dcon_remove()
|
D | olpc_dcon.h | 63 struct backlight_device *bl_dev; member
|
/drivers/staging/fbtft/ |
D | fbtft-core.c | 156 if (par->info->bl_dev) { in fbtft_unregister_backlight() 157 par->info->bl_dev->props.power = FB_BLANK_POWERDOWN; in fbtft_unregister_backlight() 158 backlight_update_status(par->info->bl_dev); in fbtft_unregister_backlight() 159 backlight_device_unregister(par->info->bl_dev); in fbtft_unregister_backlight() 160 par->info->bl_dev = NULL; in fbtft_unregister_backlight() 196 par->info->bl_dev = bd; in fbtft_register_backlight() 852 if (fb_info->bl_dev) { in fbtft_register_framebuffer() 853 fb_info->bl_dev->props.power = FB_BLANK_UNBLANK; in fbtft_register_framebuffer() 854 fb_info->bl_dev->ops->update_status(fb_info->bl_dev); in fbtft_register_framebuffer()
|
D | fb_ssd1351.c | 228 par->info->bl_dev = bd; in register_onboard_backlight()
|
D | fb_watterott.c | 269 par->info->bl_dev = bd; in register_chip_backlight()
|
/drivers/gpu/drm/radeon/ |
D | radeon_acpi.c | 398 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 402 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 750 if (dig->bl_dev) { in radeon_acpi_init() 756 if (dig->bl_dev) { in radeon_acpi_init()
|
D | radeon_legacy_encoders.c | 71 if (lvds->bl_dev) in radeon_legacy_lvds_update() 76 if (lvds->bl_dev) in radeon_legacy_lvds_update() 440 lvds->bl_dev = bd; in radeon_legacy_backlight_init() 443 lvds->bl_dev = bd; in radeon_legacy_backlight_init() 471 bd = lvds->bl_dev; in radeon_legacy_backlight_exit() 472 lvds->bl_dev = NULL; in radeon_legacy_backlight_exit() 475 bd = lvds->bl_dev; in radeon_legacy_backlight_exit() 476 lvds->bl_dev = NULL; in radeon_legacy_backlight_exit()
|
D | radeon_mode.h | 393 struct backlight_device *bl_dev; member 437 struct backlight_device *bl_dev; member
|
/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-sony-acx565akm.c | 81 struct backlight_device *bl_dev; member 580 return acx565akm_bl_update_status(ddata->bl_dev); in acx565akm_panel_power_on() 813 ddata->bl_dev = bldev; in acx565akm_probe() 873 sysfs_remove_group(&ddata->bl_dev->dev.kobj, &bldev_attr_group); in acx565akm_remove() 874 backlight_device_unregister(ddata->bl_dev); in acx565akm_remove()
|
/drivers/video/fbdev/ |
D | ssd1307fb.c | 523 return (info->bl_dev == bdev); in ssd1307fb_check_fb() 741 info->bl_dev = bl; in ssd1307fb_probe() 771 backlight_device_unregister(info->bl_dev); in ssd1307fb_remove()
|
/drivers/video/fbdev/core/ |
D | fbsysfs.c | 436 if (!fb_info || !fb_info->bl_dev) in store_bl_curve() 476 if (!fb_info || !fb_info->bl_dev) in show_bl_curve()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_acpi.c | 827 if (dig->bl_dev) { in amdgpu_acpi_init() 828 atif->bd = dig->bl_dev; in amdgpu_acpi_init()
|
D | amdgpu_mode.h | 445 struct backlight_device *bl_dev; member
|