Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/calcs/
Dbw_fixed.c67 uint64_t res_value; in bw_frc_to_fixed() local
73 res_value = div64_u64_rem(arg1_value, arg2_value, &remainder); in bw_frc_to_fixed()
75 ASSERT(res_value <= BW_FIXED_MAX_I32); in bw_frc_to_fixed()
84 res_value <<= 1; in bw_frc_to_fixed()
87 res_value |= 1; in bw_frc_to_fixed()
97 ASSERT(res_value <= MAX_I64 - summand); in bw_frc_to_fixed()
99 res_value += summand; in bw_frc_to_fixed()
102 res.value = (int64_t)(res_value); in bw_frc_to_fixed()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c85 unsigned long long res_value = complete_integer_division_u64( in dc_fixpt_from_fraction() local
88 ASSERT(res_value <= LONG_MAX); in dc_fixpt_from_fraction()
97 res_value <<= 1; in dc_fixpt_from_fraction()
100 res_value |= 1; in dc_fixpt_from_fraction()
110 ASSERT(res_value <= LLONG_MAX - summand); in dc_fixpt_from_fraction()
112 res_value += summand; in dc_fixpt_from_fraction()
115 res.value = (long long)res_value; in dc_fixpt_from_fraction()