Home
last modified time | relevance | path

Searched refs:bl_int_count (Results 1 – 2 of 2) sorted by relevance

/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn301/
A Ddcn301_panel_cntl.c52 uint32_t bl_period, bl_int_count; in dcn301_get_16_bit_backlight_from_pwm() local
58 REG_GET(BL_PWM_PERIOD_CNTL, BL_PWM_PERIOD_BITCNT, &bl_int_count); in dcn301_get_16_bit_backlight_from_pwm()
63 if (bl_int_count == 0) in dcn301_get_16_bit_backlight_from_pwm()
64 bl_int_count = 16; in dcn301_get_16_bit_backlight_from_pwm()
66 bl_period_mask = (1 << bl_int_count) - 1; in dcn301_get_16_bit_backlight_from_pwm()
69 bl_pwm_mask = bl_period_mask << (16 - bl_int_count); in dcn301_get_16_bit_backlight_from_pwm()
76 current_backlight = (uint64_t)bl_pwm << (1 + bl_int_count); in dcn301_get_16_bit_backlight_from_pwm()
88 round_result = (round_result >> (bl_int_count-1)) & 1; in dcn301_get_16_bit_backlight_from_pwm()
90 current_backlight >>= bl_int_count; in dcn301_get_16_bit_backlight_from_pwm()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/
A Ddce_panel_cntl.c52 uint32_t bl_period, bl_int_count; in dce_get_16_bit_backlight_from_pwm() local
59 REG_GET(BL_PWM_PERIOD_CNTL, BL_PWM_PERIOD_BITCNT, &bl_int_count); in dce_get_16_bit_backlight_from_pwm()
65 if (bl_int_count == 0) in dce_get_16_bit_backlight_from_pwm()
66 bl_int_count = 16; in dce_get_16_bit_backlight_from_pwm()
68 bl_period_mask = (1 << bl_int_count) - 1; in dce_get_16_bit_backlight_from_pwm()
71 bl_pwm_mask = bl_period_mask << (16 - bl_int_count); in dce_get_16_bit_backlight_from_pwm()
78 current_backlight = (uint64_t)bl_pwm << (1 + bl_int_count); in dce_get_16_bit_backlight_from_pwm()

Completed in 3 milliseconds