/linux/drivers/gpu/drm/amd/display/include/ |
A 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(arg2).value); in dc_fixpt_div_int()
|
/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
A D | dcn20_dwb_scl.c | 737 struct fixed31_32 tmp_h_init_phase_luma = dc_fixpt_from_int(0); in dwb_program_horz_scalar() 738 struct fixed31_32 tmp_h_init_phase_chroma = dc_fixpt_from_int(0); in dwb_program_horz_scalar() 786 h_taps_chroma, dc_fixpt_from_int(h_ratio_luma * 2)); in dwb_program_horz_scalar() 816 struct fixed31_32 tmp_v_init_phase_luma = dc_fixpt_from_int(0); in dwb_program_vert_scalar() 817 struct fixed31_32 tmp_v_init_phase_chroma = dc_fixpt_from_int(0); in dwb_program_vert_scalar() 866 v_taps_chroma, dc_fixpt_from_int(v_ratio_luma * 2)); in dwb_program_vert_scalar()
|
A D | dcn20_hubp.c | 1010 dc_fixpt_from_int(dst_x_offset), in hubp2_cursor_set_position()
|
/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
A D | dcn30_cm_common.c | 199 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format() 200 dc_fixpt_from_int(region_start)); in cm3_helper_translate_curve_to_hw_format() 204 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format() 205 dc_fixpt_from_int(region_end)); in cm3_helper_translate_curve_to_hw_format() 236 end_value = dc_fixpt_from_int(125); in cm3_helper_translate_curve_to_hw_format() 371 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_degamma_hw_format() 372 dc_fixpt_from_int(region_start)); in cm3_helper_translate_curve_to_degamma_hw_format() 375 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_degamma_hw_format() 376 dc_fixpt_from_int(region_end)); in cm3_helper_translate_curve_to_degamma_hw_format() 399 dc_fixpt_from_int(125); in cm3_helper_translate_curve_to_degamma_hw_format()
|
/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_cm_common.c | 400 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format() 401 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_hw_format() 405 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format() 406 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_hw_format() 436 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_hw_format() 575 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format() 576 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_degamma_hw_format() 579 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format() 580 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_degamma_hw_format() 603 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_degamma_hw_format()
|
A D | dcn10_hubp.c | 1226 dc_fixpt_from_int(dst_x_offset), in hubp1_cursor_set_position()
|
A D | dcn10_hw_sequencer.c | 2822 if (!dc_fixpt_eq(multiplier, dc_fixpt_from_int(0))) // check != 0 in dcn10_set_hdr_multiplier()
|
/linux/drivers/gpu/drm/amd/display/modules/color/ |
A D | color_gamma.c | 666 point->coeff = dc_fixpt_from_int(2); in build_custom_gamma_mapping_coefficients_worker() 912 two = dc_fixpt_from_int(2); in hermite_spline_eetf() 913 three = dc_fixpt_from_int(3); in hermite_spline_eetf() 984 max_display = dc_fixpt_from_int(100); in build_freesync_hdr() 1401 dc_fixpt_from_int(max_lut_index-1); in apply_lut_1d() 1403 dc_fixpt_from_int(max_lut_index); in apply_lut_1d() 1424 index_f = dc_fixpt_from_int(index); in apply_lut_1d() 1599 dc_fixpt_from_int(255); in interpolate_user_regamma() 1639 index_f = dc_fixpt_from_int(index); in interpolate_user_regamma() 1840 dividers.divider2 = dc_fixpt_from_int(2); in calculate_user_regamma_ramp() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/basics/ |
A 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()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_color.c | 138 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma() 139 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma() 140 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
|
/linux/drivers/gpu/drm/amd/display/dc/dsc/ |
A D | dc_dsc.c | 480 effective_bandwidth_in_kbps = dc_fixpt_from_int(bandwidth_in_kbps); in compute_bpp_x16_from_target_bandwidth() 485 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() 995 refresh_rate = dc_fixpt_from_int(timing->pix_clk_100hz); in dc_dsc_stream_bandwidth_overhead_in_kbps() 1000 max_dsc_overhead = dc_fixpt_from_int(num_slices_h); in dc_dsc_stream_bandwidth_overhead_in_kbps()
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
A 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()
|
A D | dce_clock_source.c | 683 dc_fixpt_from_int(ds_data->feedback_amount)); in calculate_ss() 688 dc_fixpt_from_int(ds_data->nfrac_amount)); in calculate_ss()
|
/linux/drivers/gpu/drm/amd/display/dc/dce110/ |
A D | dce110_hw_sequencer.c | 530 arr_points[0].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format() 531 dc_fixpt_from_int(region_start)); in dce110_translate_regamma_to_hw_format() 532 arr_points[1].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format() 533 dc_fixpt_from_int(region_end)); in dce110_translate_regamma_to_hw_format() 562 const struct fixed31_32 end_value = dc_fixpt_from_int(125); in dce110_translate_regamma_to_hw_format()
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
A D | dcn20_clk_mgr.c | 571 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn20_clk_mgr_construct()
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
A D | dcn30_clk_mgr.c | 234 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn30_get_vco_frequency_from_reg()
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
A D | dcn31_clk_mgr.c | 266 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/ |
A D | vg_clk_mgr.c | 201 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
A D | rn_clk_mgr.c | 271 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_link.c | 3234 mbytes_per_sec = dc_fixpt_from_int(link_rate_in_mbytes_per_sec); in get_pbn_per_slot() 3365 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in dc_link_update_sst_payload() 3773 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload()
|
A D | dc_link_dp.c | 6109 dc_fixpt_from_int( 6114 dc_fixpt_from_int(
|