Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dbw_fixed.c68 uint64_t res_value; in bw_frc_to_fixed() local
74 res_value = div64_u64_rem(arg1_value, arg2_value, &remainder); in bw_frc_to_fixed()
76 ASSERT(res_value <= BW_FIXED_MAX_I32); in bw_frc_to_fixed()
85 res_value <<= 1; in bw_frc_to_fixed()
88 res_value |= 1; in bw_frc_to_fixed()
98 ASSERT(res_value <= MAX_I64 - summand); in bw_frc_to_fixed()
100 res_value += summand; in bw_frc_to_fixed()
103 res.value = (int64_t)(res_value); in bw_frc_to_fixed()
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()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Dspl_fixpt31_32.c63 unsigned long long res_value = complete_integer_division_u64( in spl_fixpt_from_fraction() local
66 ASSERT(res_value <= LONG_MAX); in spl_fixpt_from_fraction()
75 res_value <<= 1; in spl_fixpt_from_fraction()
78 res_value |= 1; in spl_fixpt_from_fraction()
88 ASSERT(res_value <= LLONG_MAX - summand); in spl_fixpt_from_fraction()
90 res_value += summand; in spl_fixpt_from_fraction()
93 res.value = (long long)res_value; in spl_fixpt_from_fraction()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vpe.c68 uint16_t res_value = complete_integer_division_u16( in vpe_u1_8_from_fraction() local
71 if (res_value > 127 /* CHAR_MAX */) in vpe_u1_8_from_fraction()
81 res_value <<= 1; in vpe_u1_8_from_fraction()
84 res_value |= 1; in vpe_u1_8_from_fraction()
94 if ((res_value + summand) > 32767 /* SHRT_MAX */) in vpe_u1_8_from_fraction()
97 res_value += summand; in vpe_u1_8_from_fraction()
100 return res_value; in vpe_u1_8_from_fraction()