Home
last modified time | relevance | path

Searched refs:fractional_bits (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c38 uint8_t fractional_bits) in fixed_point_to_int_frac() argument
41 int32_t divisor = 1 << fractional_bits; in fixed_point_to_int_frac()
68 (1 << (integer_bits + fractional_bits + 1)) + numerator); in fixed_point_to_int_frac()
72 result |= 1 << (integer_bits + fractional_bits); in fixed_point_to_int_frac()
106 uint8_t fractional_bits) in int_frac_to_fixed_point() argument
109 uint16_t sign_mask = 1 << (fractional_bits + integer_bits); in int_frac_to_fixed_point()
113 (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in int_frac_to_fixed_point()
Dfixpt31_32.c420 unsigned int fractional_bits) in ux_dy() argument
429 result <<= fractional_bits; in ux_dy()
431 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
439 unsigned int fractional_bits, in clamp_ux_dy() argument
442 unsigned int truncated_val = ux_dy(value, integer_bits, fractional_bits); in clamp_ux_dy()
445 return (1 << (integer_bits + fractional_bits)) - 1; in clamp_ux_dy()
492 unsigned int fractional_bits) in dc_fixpt_from_ux_dy() argument
498 fixpt_value.value = (long long)value << (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in dc_fixpt_from_ux_dy()
499 frac_mask = frac_mask << fractional_bits; in dc_fixpt_from_ux_dy()
501 fixpt_int_value.value <<= (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in dc_fixpt_from_ux_dy()
[all …]
Dconversion.h34 uint8_t fractional_bits);
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Dspl_fixpt31_32.c402 unsigned int fractional_bits) in ux_dy() argument
411 result <<= fractional_bits; in ux_dy()
413 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
421 unsigned int fractional_bits, in clamp_ux_dy() argument
424 unsigned int truncated_val = ux_dy(value, integer_bits, fractional_bits); in clamp_ux_dy()
427 return (1 << (integer_bits + fractional_bits)) - 1; in clamp_ux_dy()
474 unsigned int fractional_bits) in spl_fixpt_from_ux_dy() argument
480 fixpt_value.value = (long long)value << (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in spl_fixpt_from_ux_dy()
481 frac_mask = frac_mask << fractional_bits; in spl_fixpt_from_ux_dy()
483 fixpt_int_value.value <<= (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in spl_fixpt_from_ux_dy()
[all …]
Dspl_fixpt31_32.h519 … spl_fixpt_from_ux_dy(unsigned int value, unsigned int integer_bits, unsigned int fractional_bits);
523 unsigned int fractional_bits);
/linux-6.12.1/drivers/gpu/drm/amd/display/include/
Dfixed31_32.h534 …2 dc_fixpt_from_ux_dy(unsigned int value, unsigned int integer_bits, unsigned int fractional_bits);
538 unsigned int fractional_bits);
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_vdsc.c188 int fractional_bits = fxp_q4_to_frac(vdsc_cfg->bits_per_pixel); in calculate_rc_params() local
209 bpp_i = ((bpp - 6) + (fractional_bits < 5000 ? 0 : 1)); in calculate_rc_params()