/linux-6.12.1/drivers/gpu/drm/amd/display/include/ |
D | fixed31_32.h | 87 static inline struct fixed31_32 dc_fixpt_from_int(int arg) in dc_fixpt_from_int() function 263 return dc_fixpt_add(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_add_int() 288 return dc_fixpt_sub(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_sub_int() 310 return dc_fixpt_mul(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_mul_int() 325 return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int((int)arg2).value); in dc_fixpt_div_int()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_audio.c | 246 return dc_fixpt_from_int(162); /* 162 MHz */ in get_link_symbol_clk_freq_mhz() 248 return dc_fixpt_from_int(270); /* 270 MHz */ in get_link_symbol_clk_freq_mhz() 250 return dc_fixpt_from_int(540); /* 540 MHz */ in get_link_symbol_clk_freq_mhz() 252 return dc_fixpt_from_int(810); /* 810 MHz */ in get_link_symbol_clk_freq_mhz() 258 return dc_fixpt_from_int(625); /* 625 MHz */ in get_link_symbol_clk_freq_mhz() 262 return dc_fixpt_from_int(0); in get_link_symbol_clk_freq_mhz() 370 symbols_per_sdp_max_layout = dc_fixpt_from_int( in calculate_required_audio_bw_in_symbols() 415 bits_per_pixel = dc_fixpt_from_int(6); in calculate_available_hblank_bw_in_symbols() 418 bits_per_pixel = dc_fixpt_from_int(8); in calculate_available_hblank_bw_in_symbols() 421 bits_per_pixel = dc_fixpt_from_int(10); in calculate_available_hblank_bw_in_symbols() [all …]
|
D | dce_transform.c | 294 dc_fixpt_from_int(data->taps.h_taps + 1)), in calculate_inits() 303 dc_fixpt_from_int(data->taps.v_taps + 1)), in calculate_inits() 332 dc_fixpt_from_int(data->taps.v_taps + 1)), in dce60_calculate_inits()
|
D | dce_clock_source.c | 687 dc_fixpt_from_int(ds_data->feedback_amount)); in calculate_ss() 692 dc_fixpt_from_int(ds_data->nfrac_amount)); in calculate_ss()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dwb_scl.c | 740 struct fixed31_32 tmp_h_init_phase_luma = dc_fixpt_from_int(0); in dwb_program_horz_scalar() 741 struct fixed31_32 tmp_h_init_phase_chroma = dc_fixpt_from_int(0); in dwb_program_horz_scalar() 789 h_taps_chroma, dc_fixpt_from_int(h_ratio_luma * 2)); in dwb_program_horz_scalar() 819 struct fixed31_32 tmp_v_init_phase_luma = dc_fixpt_from_int(0); in dwb_program_vert_scalar() 820 struct fixed31_32 tmp_v_init_phase_chroma = dc_fixpt_from_int(0); in dwb_program_vert_scalar() 869 v_taps_chroma, dc_fixpt_from_int(v_ratio_luma * 2)); in dwb_program_vert_scalar()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 428 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format() 429 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_hw_format() 433 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format() 434 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_hw_format() 464 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_hw_format() 613 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format() 614 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_degamma_hw_format() 617 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format() 618 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_degamma_hw_format() 641 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_degamma_hw_format()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_cm_common.c | 200 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format() 201 dc_fixpt_from_int(region_start)); in cm3_helper_translate_curve_to_hw_format() 205 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format() 206 dc_fixpt_from_int(region_end)); in cm3_helper_translate_curve_to_hw_format() 355 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_degamma_hw_format() 356 dc_fixpt_from_int(region_start)); in cm3_helper_translate_curve_to_degamma_hw_format() 359 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_degamma_hw_format() 360 dc_fixpt_from_int(region_end)); in cm3_helper_translate_curve_to_degamma_hw_format() 383 dc_fixpt_from_int(125); in cm3_helper_translate_curve_to_degamma_hw_format()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/color/ |
D | color_gamma.c | 167 struct fixed31_32 region_size = dc_fixpt_from_int(128); in setup_x_points_distribution() 371 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in precompute_de_pq() 441 const struct fixed31_32 one = dc_fixpt_from_int(1); in translate_from_linear_space() 460 cal_buffer->gamma_of_2 = dc_fixpt_pow(dc_fixpt_from_int(2), in translate_from_linear_space() 494 const struct fixed31_32 one = dc_fixpt_from_int(1); in translate_from_linear_space_long() 766 point->coeff = dc_fixpt_from_int(2); in build_custom_gamma_mapping_coefficients_worker() 902 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in build_de_pq() 1010 two = dc_fixpt_from_int(2); in hermite_spline_eetf() 1011 three = dc_fixpt_from_int(3); in hermite_spline_eetf() 1074 max_display = dc_fixpt_from_int(fs_params->max_display); in build_freesync_hdr() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/ |
D | conversion.c | 57 dc_fixpt_from_int( in fixed_point_to_int_frac() 60 dc_fixpt_from_int( in fixed_point_to_int_frac()
|
D | fixpt31_32.c | 511 struct fixed31_32 fixpt_value = dc_fixpt_from_int(int_value); in dc_fixpt_from_int_dy()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dsc/ |
D | dc_dsc.c | 67 bpp = dc_fixpt_from_int(kbps); in apply_128b_132b_stream_overhead() 73 overhead_factor = dc_fixpt_from_int(timing->h_addressable); in apply_128b_132b_stream_overhead() 77 dc_fixpt_from_int(dc_fixpt_ceil(overhead_factor)), in apply_128b_132b_stream_overhead() 597 effective_bandwidth_in_kbps = dc_fixpt_from_int(bandwidth_in_kbps); in compute_bpp_x16_from_target_bandwidth() 602 bpp_x16 = dc_fixpt_from_int(dc_fixpt_floor(dc_fixpt_mul_int(bpp_x16, bpp_increment_div))); in compute_bpp_x16_from_target_bandwidth() 1160 refresh_rate = dc_fixpt_from_int(timing->pix_clk_100hz); in dc_dsc_stream_bandwidth_overhead_in_kbps() 1165 max_dsc_overhead = dc_fixpt_from_int(num_slices_h); in dc_dsc_stream_bandwidth_overhead_in_kbps()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_color.c | 398 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma() 399 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma() 400 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/hwss/ |
D | link_hwss_hpo_dp.c | 60 h_blank_in_ms = dc_fixpt_div(dc_fixpt_from_int( in set_hpo_dp_hblank_min_symbol_width()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 523 arr_points[0].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format() 524 dc_fixpt_from_int(region_start)); in dce110_translate_regamma_to_hw_format() 525 arr_points[1].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format() 526 dc_fixpt_from_int(region_end)); in dce110_translate_regamma_to_hw_format() 555 const struct fixed31_32 end_value = dc_fixpt_from_int(125); in dce110_translate_regamma_to_hw_format() 1294 link_bw_kbps = dc_fixpt_from_int(dc_link_bandwidth_kbps(link, in populate_audio_dp_link_info() 1364 dc_fixpt_div(dc_fixpt_from_int(h_blank * bpp), in populate_audio_dp_link_info() 1365 dc_fixpt_from_int(128 / 16))); in populate_audio_dp_link_info()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/ |
D | link_dpms.c | 1099 mbytes_per_sec = dc_fixpt_from_int(link_rate_in_mbytes_per_sec); in get_pbn_per_slot() 1310 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload() 1508 dc_fixpt_from_int( in link_calculate_sst_avg_time_slots_per_mtp() 1513 dc_fixpt_from_int( in link_calculate_sst_avg_time_slots_per_mtp() 1644 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in update_sst_payload()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
D | dcn30_clk_mgr.c | 183 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn30_get_vco_frequency_from_reg()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
D | dcn20_clk_mgr.c | 567 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn20_clk_mgr_construct()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr.c | 269 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/ |
D | vg_clk_mgr.c | 201 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
D | dcn31_clk_mgr.c | 274 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hubp/dcn401/ |
D | dcn401_hubp.c | 718 dc_fixpt_from_int(dst_x_offset), in hubp401_cursor_set_position()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
D | dcn314_clk_mgr.c | 347 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
D | dcn32_clk_mgr.c | 863 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn32_get_vco_frequency_from_reg()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hubp/dcn10/ |
D | dcn10_hubp.c | 1236 dc_fixpt_from_int(dst_x_offset), in hubp1_cursor_set_position()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/ |
D | dcn35_clk_mgr.c | 447 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|