Lines Matching refs:bd
2189 static int aty_bl_update_status(struct backlight_device *bd) in aty_bl_update_status() argument
2191 struct atyfb_par *par = bl_get_data(bd); in aty_bl_update_status()
2195 if (bd->props.power != FB_BLANK_UNBLANK || in aty_bl_update_status()
2196 bd->props.fb_blank != FB_BLANK_UNBLANK) in aty_bl_update_status()
2199 level = bd->props.brightness; in aty_bl_update_status()
2222 struct backlight_device *bd; in aty_bl_init() local
2235 bd = backlight_device_register(name, info->dev, par, &aty_bl_data, in aty_bl_init()
2237 if (IS_ERR(bd)) { in aty_bl_init()
2243 info->bl_dev = bd; in aty_bl_init()
2248 bd->props.brightness = bd->props.max_brightness; in aty_bl_init()
2249 bd->props.power = FB_BLANK_UNBLANK; in aty_bl_init()
2250 backlight_update_status(bd); in aty_bl_init()
2261 static void aty_bl_exit(struct backlight_device *bd) in aty_bl_exit() argument
2263 backlight_device_unregister(bd); in aty_bl_exit()