Lines Matching refs:bd
2198 static int aty_bl_update_status(struct backlight_device *bd) in aty_bl_update_status() argument
2200 struct atyfb_par *par = bl_get_data(bd); in aty_bl_update_status()
2204 if (bd->props.power != FB_BLANK_UNBLANK || in aty_bl_update_status()
2205 bd->props.fb_blank != FB_BLANK_UNBLANK) in aty_bl_update_status()
2208 level = bd->props.brightness; in aty_bl_update_status()
2231 struct backlight_device *bd; in aty_bl_init() local
2244 bd = backlight_device_register(name, info->dev, par, &aty_bl_data, in aty_bl_init()
2246 if (IS_ERR(bd)) { in aty_bl_init()
2252 info->bl_dev = bd; in aty_bl_init()
2257 bd->props.brightness = bd->props.max_brightness; in aty_bl_init()
2258 bd->props.power = FB_BLANK_UNBLANK; in aty_bl_init()
2259 backlight_update_status(bd); in aty_bl_init()
2270 static void aty_bl_exit(struct backlight_device *bd) in aty_bl_exit() argument
2272 backlight_device_unregister(bd); in aty_bl_exit()