/linux-6.1.9/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 | rt4831-backlight.c | 39 static int rt4831_bl_update_status(struct backlight_device *bl_dev) in rt4831_bl_update_status() argument 41 struct rt4831_priv *priv = bl_get_data(bl_dev); in rt4831_bl_update_status() 42 int brightness = backlight_get_brightness(bl_dev); in rt4831_bl_update_status() 60 static int rt4831_bl_get_brightness(struct backlight_device *bl_dev) in rt4831_bl_get_brightness() argument 62 struct rt4831_priv *priv = bl_get_data(bl_dev); in rt4831_bl_get_brightness() 209 struct backlight_device *bl_dev = priv->bl; in rt4831_bl_remove() local 211 bl_dev->props.brightness = 0; in rt4831_bl_remove()
|
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 | mt6370-backlight.c | 73 static int mt6370_bl_update_status(struct backlight_device *bl_dev) in mt6370_bl_update_status() argument 75 struct mt6370_priv *priv = bl_get_data(bl_dev); in mt6370_bl_update_status() 76 int brightness = backlight_get_brightness(bl_dev); in mt6370_bl_update_status() 98 static int mt6370_bl_get_brightness(struct backlight_device *bl_dev) in mt6370_bl_get_brightness() argument 100 struct mt6370_priv *priv = bl_get_data(bl_dev); in mt6370_bl_get_brightness() 324 struct backlight_device *bl_dev = priv->bl; in mt6370_bl_remove() local 326 bl_dev->props.brightness = 0; in mt6370_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()
|
/linux-6.1.9/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 | 69 struct backlight_device *bl_dev; member 273 backlight_disable(ctx->bl_dev); in otm8009a_disable() 347 backlight_enable(ctx->bl_dev); in otm8009a_enable() 473 ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev), in otm8009a_probe() 477 if (IS_ERR(ctx->bl_dev)) { in otm8009a_probe() 478 ret = PTR_ERR(ctx->bl_dev); in otm8009a_probe() 483 ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX; in otm8009a_probe() 484 ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT; in otm8009a_probe() 485 ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; in otm8009a_probe() 486 ctx->bl_dev->props.type = BACKLIGHT_RAW; in otm8009a_probe()
|
D | panel-samsung-s6e63m0.c | 265 struct backlight_device *bl_dev; member 508 backlight_disable(ctx->bl_dev); in s6e63m0_disable() 589 backlight_enable(ctx->bl_dev); in s6e63m0_enable() 681 ctx->bl_dev = devm_backlight_device_register(dev, "panel", dev, ctx, in s6e63m0_backlight_register() 684 if (IS_ERR(ctx->bl_dev)) { in s6e63m0_backlight_register() 685 ret = PTR_ERR(ctx->bl_dev); in s6e63m0_backlight_register()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/include/linux/ |
D | backlight.h | 464 static inline void * bl_get_data(struct backlight_device *bl_dev) in bl_get_data() argument 466 return dev_get_drvdata(&bl_dev->dev); in bl_get_data()
|
/linux-6.1.9/drivers/staging/olpc_dcon/ |
D | olpc_dcon.c | 643 dcon->bl_dev = backlight_device_register("dcon-bl", &dcon_device->dev, in dcon_probe() 646 if (IS_ERR(dcon->bl_dev)) { in dcon_probe() 648 PTR_ERR(dcon->bl_dev)); in dcon_probe() 649 dcon->bl_dev = NULL; in dcon_probe() 680 backlight_device_unregister(dcon->bl_dev); in dcon_remove()
|
D | olpc_dcon.h | 63 struct backlight_device *bl_dev; member
|
/linux-6.1.9/drivers/staging/fbtft/ |
D | fbtft-core.c | 155 if (par->info->bl_dev) { in fbtft_unregister_backlight() 156 par->info->bl_dev->props.power = FB_BLANK_POWERDOWN; in fbtft_unregister_backlight() 157 backlight_update_status(par->info->bl_dev); in fbtft_unregister_backlight() 158 backlight_device_unregister(par->info->bl_dev); in fbtft_unregister_backlight() 159 par->info->bl_dev = NULL; in fbtft_unregister_backlight() 195 par->info->bl_dev = bd; in fbtft_register_backlight() 851 if (fb_info->bl_dev) { in fbtft_register_framebuffer() 852 fb_info->bl_dev->props.power = FB_BLANK_UNBLANK; in fbtft_register_framebuffer() 853 fb_info->bl_dev->ops->update_status(fb_info->bl_dev); in fbtft_register_framebuffer()
|
D | fb_ssd1351.c | 227 par->info->bl_dev = bd; in register_onboard_backlight()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_acpi.c | 396 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 400 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 747 if (dig->bl_dev) { in radeon_acpi_init() 753 if (dig->bl_dev) { in radeon_acpi_init()
|
D | radeon_legacy_encoders.c | 74 if (lvds->bl_dev) in radeon_legacy_lvds_update() 79 if (lvds->bl_dev) in radeon_legacy_lvds_update() 446 lvds->bl_dev = bd; in radeon_legacy_backlight_init() 449 lvds->bl_dev = bd; in radeon_legacy_backlight_init() 477 bd = lvds->bl_dev; in radeon_legacy_backlight_exit() 478 lvds->bl_dev = NULL; in radeon_legacy_backlight_exit() 481 bd = lvds->bl_dev; in radeon_legacy_backlight_exit() 482 lvds->bl_dev = NULL; in radeon_legacy_backlight_exit()
|
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-sony-acx565akm.c | 81 struct backlight_device *bl_dev; member 575 return acx565akm_bl_update_status(ddata->bl_dev); in acx565akm_panel_power_on() 808 ddata->bl_dev = bldev; in acx565akm_probe() 868 sysfs_remove_group(&ddata->bl_dev->dev.kobj, &bldev_attr_group); in acx565akm_remove() 869 backlight_device_unregister(ddata->bl_dev); in acx565akm_remove()
|
/linux-6.1.9/drivers/gpu/drm/solomon/ |
D | ssd130x.h | 78 struct backlight_device *bl_dev; member
|
/linux-6.1.9/arch/powerpc/platforms/powermac/ |
D | backlight.c | 79 if (info && info->bl_dev) { in pmac_backlight_curve_lookup()
|
/linux-6.1.9/drivers/video/fbdev/ |
D | ssd1307fb.c | 580 return (info->bl_dev == bdev); in ssd1307fb_check_fb() 797 info->bl_dev = bl; in ssd1307fb_probe() 827 backlight_device_unregister(info->bl_dev); in ssd1307fb_remove()
|
/linux-6.1.9/drivers/video/fbdev/core/ |
D | fbsysfs.c | 446 if (!fb_info || !fb_info->bl_dev) in store_bl_curve() 486 if (!fb_info || !fb_info->bl_dev) in show_bl_curve()
|