Home
last modified time | relevance | path

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

123

/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-4.19/drivers/video/backlight/
Dlp8788_bl.c49 struct backlight_device *bl_dev; member
163 static int lp8788_bl_update_status(struct backlight_device *bl_dev) in lp8788_bl_update_status() argument
165 struct lp8788_bl *bl = bl_get_data(bl_dev); in lp8788_bl_update_status()
168 if (bl_dev->props.state & BL_CORE_SUSPENDED) in lp8788_bl_update_status()
169 bl_dev->props.brightness = 0; in lp8788_bl_update_status()
172 int brt = bl_dev->props.brightness; in lp8788_bl_update_status()
173 int max = bl_dev->props.max_brightness; in lp8788_bl_update_status()
177 u8 brt = bl_dev->props.brightness; in lp8788_bl_update_status()
192 struct backlight_device *bl_dev; in lp8788_backlight_register() local
216 bl_dev = backlight_device_register(name, bl->lp->dev, bl, in lp8788_backlight_register()
[all …]
Dcorgi_lcd.c89 struct backlight_device *bl_dev; member
452 backlight_update_status(the_corgi_lcd->bl_dev); in corgi_lcd_limit_intensity()
478 backlight_update_status(lcd->bl_dev); in corgi_lcd_resume()
563 lcd->bl_dev = devm_backlight_device_register(&spi->dev, "corgi_bl", in corgi_lcd_probe()
566 if (IS_ERR(lcd->bl_dev)) in corgi_lcd_probe()
567 return PTR_ERR(lcd->bl_dev); in corgi_lcd_probe()
569 lcd->bl_dev->props.brightness = pdata->default_intensity; in corgi_lcd_probe()
570 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_probe()
580 backlight_update_status(lcd->bl_dev); in corgi_lcd_probe()
591 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_remove()
[all …]
Domap1_bl.c77 struct backlight_device *bl_dev = dev_get_drvdata(dev); in omapbl_suspend() local
78 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_suspend()
86 struct backlight_device *bl_dev = dev_get_drvdata(dev); in omapbl_resume() local
87 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_resume()
/kernel/linux/linux-4.19/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.c37 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.c62 struct backlight_device *bl_dev; member
266 backlight_disable(ctx->bl_dev); in otm8009a_disable()
340 backlight_enable(ctx->bl_dev); in otm8009a_enable()
456 ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev), in otm8009a_probe()
460 if (IS_ERR(ctx->bl_dev)) { in otm8009a_probe()
461 ret = PTR_ERR(ctx->bl_dev); in otm8009a_probe()
466 ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX; in otm8009a_probe()
467 ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT; in otm8009a_probe()
468 ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; in otm8009a_probe()
469 ctx->bl_dev->props.type = BACKLIGHT_RAW; in otm8009a_probe()
[all …]
/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()
/kernel/linux/linux-4.19/drivers/video/fbdev/aty/
Dradeon_backlight.c160 rinfo->info->bl_dev = NULL; in radeonfb_bl_init()
183 rinfo->info->bl_dev = bd; in radeonfb_bl_init()
203 struct backlight_device *bd = rinfo->info->bl_dev; in radeonfb_bl_exit()
211 rinfo->info->bl_dev = NULL; in radeonfb_bl_exit()
/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-4.19/drivers/video/fbdev/nvidia/
Dnv_backlight.c113 info->bl_dev = NULL; in nvidia_bl_init()
118 info->bl_dev = bd; in nvidia_bl_init()
138 struct backlight_device *bd = info->bl_dev; in nvidia_bl_exit()
/kernel/linux/linux-4.19/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/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-4.19/include/linux/
Dbacklight.h189 static inline void * bl_get_data(struct backlight_device *bl_dev) in bl_get_data() argument
191 return dev_get_drvdata(&bl_dev->dev); in bl_get_data()
/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-4.19/drivers/staging/olpc_dcon/
Dolpc_dcon.c652 dcon->bl_dev = backlight_device_register("dcon-bl", &dcon_device->dev, in dcon_probe()
655 if (IS_ERR(dcon->bl_dev)) { in dcon_probe()
657 PTR_ERR(dcon->bl_dev)); in dcon_probe()
658 dcon->bl_dev = NULL; in dcon_probe()
688 backlight_device_unregister(dcon->bl_dev); in dcon_remove()
/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()
/kernel/linux/linux-5.10/drivers/staging/fbtft/
Dfbtft-core.c157 if (par->info->bl_dev) { in fbtft_unregister_backlight()
158 par->info->bl_dev->props.power = FB_BLANK_POWERDOWN; in fbtft_unregister_backlight()
159 backlight_update_status(par->info->bl_dev); in fbtft_unregister_backlight()
160 backlight_device_unregister(par->info->bl_dev); in fbtft_unregister_backlight()
161 par->info->bl_dev = NULL; in fbtft_unregister_backlight()
196 par->info->bl_dev = bd; in fbtft_register_backlight()
858 if (fb_info->bl_dev) { in fbtft_register_framebuffer()
859 fb_info->bl_dev->props.power = FB_BLANK_UNBLANK; in fbtft_register_framebuffer()
860 fb_info->bl_dev->ops->update_status(fb_info->bl_dev); in fbtft_register_framebuffer()

123