Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dbw_fixed.h29 #define BW_FIXED_BITS_PER_FRACTIONAL_PART 24 macro
31 #define BW_FIXED_GET_INTEGER_PART(x) ((x) >> BW_FIXED_BITS_PER_FRACTIONAL_PART)
37 (int64_t)(-(1LL << (63 - BW_FIXED_BITS_PER_FRACTIONAL_PART)))
40 (int64_t)((1ULL << (63 - BW_FIXED_BITS_PER_FRACTIONAL_PART)) - 1)
74 res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART; in bw_int_to_fixed()
93 result.value = -(raw >> (32 - BW_FIXED_BITS_PER_FRACTIONAL_PART)); in fixed31_32_to_bw_fixed()
95 result.value = raw >> (32 - BW_FIXED_BITS_PER_FRACTIONAL_PART); in fixed31_32_to_bw_fixed()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/
H A Dbw_fixed.c35 ((1ULL << BW_FIXED_BITS_PER_FRACTIONAL_PART) - 1)
53 res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART; in bw_int_to_fixed_nonconst()
79 uint32_t i = BW_FIXED_BITS_PER_FRACTIONAL_PART; in bw_frc_to_fixed()
162 res.value <<= BW_FIXED_BITS_PER_FRACTIONAL_PART; in bw_mul()
178 tmp = (tmp >> BW_FIXED_BITS_PER_FRACTIONAL_PART) + in bw_mul()