/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_scl_filters.c | 1345 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_16p() 1347 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_16p() 1357 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_3tap_64p() 1359 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_3tap_64p() 1369 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_4tap_16p() 1371 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_4tap_16p() 1381 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_4tap_64p() 1383 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_4tap_64p() 1393 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in get_filter_5tap_64p() 1395 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in get_filter_5tap_64p() [all …]
|
D | dce_audio.c | 254 return dc_fixpt_from_fraction(3125, 10); /* 312.5 MHz */ in get_link_symbol_clk_freq_mhz() 256 return dc_fixpt_from_fraction(421875, 1000); /* 421.875 MHz */ in get_link_symbol_clk_freq_mhz() 354 struct fixed31_32 audio_sdp_margin = dc_fixpt_from_fraction(110, 100); in calculate_required_audio_bw_in_symbols() 355 struct fixed31_32 horizontal_line_freq_khz = dc_fixpt_from_fraction( in calculate_required_audio_bw_in_symbols() 364 samples_per_line = dc_fixpt_from_fraction(sample_rate_hz, 1000); in calculate_required_audio_bw_in_symbols() 400 dc_fixpt_from_fraction(hblank * 10, crtc_info->requested_pixel_clock_100Hz); in calculate_available_hblank_bw_in_symbols() 411 bits_per_pixel = dc_fixpt_from_fraction(crtc_info->dsc_bits_per_pixel, 16); in calculate_available_hblank_bw_in_symbols() 445 peak_stream_bw_kbps = dc_fixpt_from_fraction(crtc_info->requested_pixel_clock_100Hz, 10); in calculate_available_hblank_bw_in_symbols()
|
D | dce_clock_source.c | 674 fb_div = dc_fixpt_from_fraction( in calculate_ss() 682 fb_div, dc_fixpt_from_fraction(ss_data->percentage, in calculate_ss() 697 modulation_time = dc_fixpt_from_fraction( in calculate_ss()
|
D | dce_clk_mgr.c | 137 dc_fixpt_from_fraction(clk_mgr_dce->dprefclk_ss_percentage, in clk_mgr_adjust_dp_ref_freq_for_ss()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dwb_scl.c | 534 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_3tap_16p() 536 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_3tap_16p() 546 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_4tap_16p() 548 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_4tap_16p() 558 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_5tap_16p() 560 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_5tap_16p() 570 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_6tap_16p() 572 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_6tap_16p() 582 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) in wbscl_get_filter_7tap_16p() 584 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) in wbscl_get_filter_7tap_16p() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/color/ |
D | color_gamma.c | 208 dc_fixpt_from_fraction(159301758, 1000000000); in compute_pq() 210 dc_fixpt_from_fraction(7884375, 100000); in compute_pq() 212 dc_fixpt_from_fraction(8359375, 10000000); in compute_pq() 214 dc_fixpt_from_fraction(188515625, 10000000); in compute_pq() 216 dc_fixpt_from_fraction(186875, 10000); in compute_pq() 237 dc_fixpt_from_fraction(159301758, 1000000000); in compute_de_pq() 239 dc_fixpt_from_fraction(7884375, 100000); in compute_de_pq() 241 dc_fixpt_from_fraction(8359375, 10000000); in compute_de_pq() 243 dc_fixpt_from_fraction(188515625, 10000000); in compute_de_pq() 245 dc_fixpt_from_fraction(186875, 10000); in compute_de_pq() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/ |
D | conversion.c | 85 dc_fixpt_from_fraction(S2D13_MIN, DIVIDER); in convert_float_matrix() 87 dc_fixpt_from_fraction(S2D13_MAX, DIVIDER); in convert_float_matrix()
|
D | fixpt31_32.c | 71 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction() function 219 return dc_fixpt_from_fraction( in dc_fixpt_recip() 311 struct fixed31_32 res = dc_fixpt_from_fraction( in fixed31_32_exp_from_taylor_series()
|
D | dc_common.c | 90 dc_fixpt_from_fraction(256, 255)), in build_prescale_params()
|
D | custom_float.c | 38 dc_fixpt_from_fraction((1LL << (format->mantissa_bits + 1)) - 1, in build_custom_float()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/include/ |
D | fixed31_32.h | 81 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator); 325 return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int((int)arg2).value); in dc_fixpt_div_int() 334 return dc_fixpt_from_fraction(arg1.value, arg2.value); in dc_fixpt_div()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/hwss/ |
D | link_hwss_hpo_dp.c | 62 dc_fixpt_from_fraction(timing->pix_clk_100hz, 10)); in set_hpo_dp_hblank_min_symbol_width() 63 time_slot_in_ms = dc_fixpt_from_fraction(32 * 4, link_bw_in_kbps); in set_hpo_dp_hblank_min_symbol_width()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_color.c | 411 gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma() 412 gamma->entries.green[i] = dc_fixpt_from_fraction(g, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma() 413 gamma->entries.blue[i] = dc_fixpt_from_fraction(b, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
D | dce_clk_mgr.c | 118 dc_fixpt_from_fraction(clk_mgr_dce->dprefclk_ss_percentage, in dce_adjust_dp_ref_freq_for_ss()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dsc/ |
D | dc_dsc.c | 1141 bpp = dc_fixpt_from_fraction(bpp_x16, 16); in dc_dsc_stream_bandwidth_in_kbps() 1142 actual_bandwidth_in_kbps = dc_fixpt_from_fraction(timing->pix_clk_100hz, 10); in dc_dsc_stream_bandwidth_in_kbps()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_resource.c | 886 temp = dc_fixpt_from_fraction(rec_in->x * (long long)stream->dst.width, in calculate_plane_rec_in_timing_active() 890 temp = dc_fixpt_from_fraction( in calculate_plane_rec_in_timing_active() 895 temp = dc_fixpt_from_fraction(rec_in->y * (long long)stream->dst.height, in calculate_plane_rec_in_timing_active() 899 temp = dc_fixpt_from_fraction( in calculate_plane_rec_in_timing_active() 1150 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_from_fraction( in calculate_scaling_ratios() 1153 pipe_ctx->plane_res.scl_data.ratios.vert = dc_fixpt_from_fraction( in calculate_scaling_ratios()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/ |
D | link_dpms.c | 1061 dc_fixpt_from_fraction( in log_vcp_x_y() 1127 peak_kbps = dc_fixpt_from_fraction(kbps, denominator); in get_pbn_from_bw_in_kbps()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 1303 dc_fixpt_from_fraction(100, DATA_EFFICIENCY_8b_10b_FEC_EFFICIENCY_x100)); in populate_audio_dp_link_info() 1306 dc_fixpt_from_fraction(10000, 9975)); /* 99.75% SSC overhead*/ in populate_audio_dp_link_info()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn10/ |
D | dcn10_hwseq.c | 3744 multiplier = dc_fixpt_from_fraction(sdr_white_level, 80); in dcn10_set_cursor_sdr_white_level()
|