Home
last modified time | relevance | path

Searched refs:dc_fixpt_from_int (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/display/include/
Dfixed31_32.h93 static inline struct fixed31_32 dc_fixpt_from_int(int arg) in dc_fixpt_from_int() function
269 return dc_fixpt_add(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_add_int()
294 return dc_fixpt_sub(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_sub_int()
316 return dc_fixpt_mul(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_mul_int()
331 return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int(arg2).value); in dc_fixpt_div_int()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c401 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format()
402 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_hw_format()
406 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format()
407 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_hw_format()
437 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_hw_format()
566 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format()
567 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_degamma_hw_format()
570 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format()
571 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_degamma_hw_format()
594 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_degamma_hw_format()
Ddcn10_hubp.c1165 dc_fixpt_from_int(dst_x_offset), in hubp1_cursor_set_position()
Ddcn10_hw_sequencer.c2120 dc_fixpt_from_int( in fixed_point_to_int_frac()
2123 dc_fixpt_from_int( in fixed_point_to_int_frac()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb_scl.c738 struct fixed31_32 tmp_h_init_phase_luma = dc_fixpt_from_int(0); in dwb_program_horz_scalar()
739 struct fixed31_32 tmp_h_init_phase_chroma = dc_fixpt_from_int(0); in dwb_program_horz_scalar()
788 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()
870 v_taps_chroma, dc_fixpt_from_int(v_ratio_luma * 2)); in dwb_program_vert_scalar()
Ddcn20_hubp.c988 dc_fixpt_from_int(dst_x_offset), in hubp2_cursor_set_position()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c56 dc_fixpt_from_int( in fixed_point_to_int_frac()
59 dc_fixpt_from_int( in fixed_point_to_int_frac()
/Linux-v5.4/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c75 struct fixed31_32 region_size = dc_fixpt_from_int(128); in setup_x_points_distribution()
268 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in precompute_de_pq()
337 const struct fixed31_32 one = dc_fixpt_from_int(1); in translate_from_linear_space()
353 gamma_of_2 = dc_fixpt_pow(dc_fixpt_from_int(2), in translate_from_linear_space()
609 point->coeff = dc_fixpt_from_int(2); in build_custom_gamma_mapping_coefficients_worker()
747 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in build_de_pq()
852 two = dc_fixpt_from_int(2); in hermite_spline_eetf()
853 three = dc_fixpt_from_int(3); in hermite_spline_eetf()
912 max_display = dc_fixpt_from_int(fs_params->max_display); in build_freesync_hdr()
914 max_content = dc_fixpt_from_int(fs_params->max_content); in build_freesync_hdr()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c138 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-v5.4/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c267 dc_fixpt_from_int(data->taps.h_taps + 1)), in calculate_inits()
276 dc_fixpt_from_int(data->taps.v_taps + 1)), in calculate_inits()
Ddce_clock_source.c684 dc_fixpt_from_int(ds_data->feedback_amount)); in calculate_ss()
689 dc_fixpt_from_int(ds_data->nfrac_amount)); in calculate_ss()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c517 arr_points[0].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format()
518 dc_fixpt_from_int(region_start)); in dce110_translate_regamma_to_hw_format()
519 arr_points[1].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format()
520 dc_fixpt_from_int(region_end)); in dce110_translate_regamma_to_hw_format()
549 const struct fixed31_32 end_value = dc_fixpt_from_int(125); in dce110_translate_regamma_to_hw_format()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c462 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn20_clk_mgr_construct()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr.c145 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c2413 mbytes_per_sec = dc_fixpt_from_int(link_rate_in_mbytes_per_sec); in get_pbn_per_slot()
2600 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload()