Home
last modified time | relevance | path

Searched refs:bl_dev (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.1.9/drivers/video/backlight/
Dlp8788_bl.c45 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 …]
Drt4831-backlight.c39 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()
Dcorgi_lcd.c85 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 …]
Dled_bl.c16 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()
Dmt6370-backlight.c73 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()
Domap1_bl.c64 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/
Dpanel-samsung-s6e3ha2.c235 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 …]
Dpanel-samsung-s6e63j0x03.c38 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 …]
Dpanel-orisetech-otm8009a.c69 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()
Dpanel-samsung-s6e63m0.c265 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/
Dradeon_backlight.c157 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/
Dnv_backlight.c110 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/
Dblacklist.c42 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/
Dbacklight.h464 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/
Dolpc_dcon.c643 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()
Dolpc_dcon.h63 struct backlight_device *bl_dev; member
/linux-6.1.9/drivers/staging/fbtft/
Dfbtft-core.c155 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()
Dfb_ssd1351.c227 par->info->bl_dev = bd; in register_onboard_backlight()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_acpi.c396 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()
Dradeon_legacy_encoders.c74 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/
Dpanel-sony-acx565akm.c81 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/
Dssd130x.h78 struct backlight_device *bl_dev; member
/linux-6.1.9/arch/powerpc/platforms/powermac/
Dbacklight.c79 if (info && info->bl_dev) { in pmac_backlight_curve_lookup()
/linux-6.1.9/drivers/video/fbdev/
Dssd1307fb.c580 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/
Dfbsysfs.c446 if (!fb_info || !fb_info->bl_dev) in store_bl_curve()
486 if (!fb_info || !fb_info->bl_dev) in show_bl_curve()

12