Lines Matching +full:6 +full:bd

323 static uint8_t radeon_legacy_lvds_level(struct backlight_device *bd)  in radeon_legacy_lvds_level()  argument
325 struct radeon_backlight_privdata *pdata = bl_get_data(bd); in radeon_legacy_lvds_level()
329 if (bd->props.brightness < 0) in radeon_legacy_lvds_level()
331 else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) in radeon_legacy_lvds_level()
334 level = bd->props.brightness; in radeon_legacy_lvds_level()
342 static int radeon_legacy_backlight_update_status(struct backlight_device *bd) in radeon_legacy_backlight_update_status() argument
344 struct radeon_backlight_privdata *pdata = bl_get_data(bd); in radeon_legacy_backlight_update_status()
348 radeon_legacy_lvds_level(bd)); in radeon_legacy_backlight_update_status()
353 static int radeon_legacy_backlight_get_brightness(struct backlight_device *bd) in radeon_legacy_backlight_get_brightness() argument
355 struct radeon_backlight_privdata *pdata = bl_get_data(bd); in radeon_legacy_backlight_get_brightness()
377 struct backlight_device *bd; in radeon_legacy_backlight_init() local
408 bd = backlight_device_register(bl_name, drm_connector->kdev, in radeon_legacy_backlight_init()
410 if (IS_ERR(bd)) { in radeon_legacy_backlight_init()
446 lvds->bl_dev = bd; in radeon_legacy_backlight_init()
449 lvds->bl_dev = bd; in radeon_legacy_backlight_init()
452 bd->props.brightness = radeon_legacy_backlight_get_brightness(bd); in radeon_legacy_backlight_init()
453 bd->props.power = BACKLIGHT_POWER_ON; in radeon_legacy_backlight_init()
454 backlight_update_status(bd); in radeon_legacy_backlight_init()
470 struct backlight_device *bd = NULL; in radeon_legacy_backlight_exit() local
477 bd = lvds->bl_dev; in radeon_legacy_backlight_exit()
481 bd = lvds->bl_dev; in radeon_legacy_backlight_exit()
485 if (bd) { in radeon_legacy_backlight_exit()
488 pdata = bl_get_data(bd); in radeon_legacy_backlight_exit()
489 backlight_device_unregister(bd); in radeon_legacy_backlight_exit()
612 /* TODO 6-bits */ in radeon_legacy_primary_dac_mode_set()
1336 (6 << RADEON_TV_DAC_DACADJ_SHIFT)); in r300_legacy_tv_detect()
1347 (6 << RADEON_TV_DAC_DACADJ_SHIFT)); in r300_legacy_tv_detect()
1350 mdelay(6); in r300_legacy_tv_detect()