Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 …]
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()
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()
/kernel/linux/linux-5.10/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.c66 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()
Dpanel-samsung-s6e63m0.c102 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()
/kernel/linux/linux-5.10/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()
Daty128fb.c1822 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/staging/olpc_dcon/
Dolpc_dcon.c645 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()
Dolpc_dcon.h63 struct backlight_device *bl_dev; member
/kernel/linux/linux-5.10/drivers/staging/fbtft/
Dfbtft-core.c156 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()
Dfb_ssd1351.c228 par->info->bl_dev = bd; in register_onboard_backlight()
Dfb_watterott.c269 par->info->bl_dev = bd; in register_chip_backlight()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_acpi.c398 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()
Dradeon_legacy_encoders.c71 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()
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-sony-acx565akm.c81 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()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/
Dbacklight.c80 if (info && info->bl_dev) { in pmac_backlight_curve_lookup()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dssd1307fb.c523 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()
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfbsysfs.c436 if (!fb_info || !fb_info->bl_dev) in store_bl_curve()
476 if (!fb_info || !fb_info->bl_dev) in show_bl_curve()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c827 if (dig->bl_dev) { in amdgpu_acpi_init()
828 atif->bd = dig->bl_dev; in amdgpu_acpi_init()

12