Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/display/dc/basics/
H A 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()
/linux/drivers/gpu/drm/amd/amdgpu/
H A 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()