Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/display/include/
H A Dfixed31_32.h87 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dwb_scl.c740 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()
H A Ddcn20_hubp.c1029 dc_fixpt_from_int(dst_x_offset), in hubp2_cursor_set_position()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_cm_common.c408 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format()
409 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_hw_format()
413 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_hw_format()
414 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_hw_format()
444 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_hw_format()
593 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format()
594 dc_fixpt_from_int(region_start)); in cm_helper_translate_curve_to_degamma_hw_format()
597 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm_helper_translate_curve_to_degamma_hw_format()
598 dc_fixpt_from_int(region_end)); in cm_helper_translate_curve_to_degamma_hw_format()
621 dc_fixpt_from_int(125); in cm_helper_translate_curve_to_degamma_hw_format()
H A Ddcn10_hubp.c1235 dc_fixpt_from_int(dst_x_offset), in hubp1_cursor_set_position()
H A Ddcn10_hw_sequencer.c2908 if (!dc_fixpt_eq(multiplier, dc_fixpt_from_int(0))) // check != 0 in dcn10_set_hdr_multiplier()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_cm_common.c201 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format()
202 dc_fixpt_from_int(region_start)); in cm3_helper_translate_curve_to_hw_format()
206 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format()
207 dc_fixpt_from_int(region_end)); in cm3_helper_translate_curve_to_hw_format()
238 end_value = dc_fixpt_from_int(125); in cm3_helper_translate_curve_to_hw_format()
375 corner_points[0].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_start)); in cm3_helper_translate_curve_to_degamma_hw_format()
379 corner_points[1].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_degamma_hw_format()
380 dc_fixpt_from_int(region_end)); in cm3_helper_translate_curve_to_degamma_hw_format()
403 dc_fixpt_from_int(125); in cm3_helper_translate_curve_to_degamma_hw_format()
/openbmc/linux/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c662 point->coeff = dc_fixpt_from_int(2); in build_custom_gamma_mapping_coefficients_worker()
908 two = dc_fixpt_from_int(2); in hermite_spline_eetf()
909 three = dc_fixpt_from_int(3); in hermite_spline_eetf()
980 max_display = dc_fixpt_from_int(100); in build_freesync_hdr()
1397 dc_fixpt_from_int(max_lut_index-1); in apply_lut_1d()
1399 dc_fixpt_from_int(max_lut_index); in apply_lut_1d()
1420 index_f = dc_fixpt_from_int(index); in apply_lut_1d()
1595 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dconversion.c57 dc_fixpt_from_int( in fixed_point_to_int_frac()
60 dc_fixpt_from_int( in fixed_point_to_int_frac()
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c156 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma()
157 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma()
158 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dsc/
H A Ddc_dsc.c67 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()
582 effective_bandwidth_in_kbps = dc_fixpt_from_int(bandwidth_in_kbps); in compute_bpp_x16_from_target_bandwidth()
587 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()
1121 refresh_rate = dc_fixpt_from_int(timing->pix_clk_100hz); in dc_dsc_stream_bandwidth_overhead_in_kbps()
1126 max_dsc_overhead = dc_fixpt_from_int(num_slices_h); in dc_dsc_stream_bandwidth_overhead_in_kbps()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/hwss/
H A Dlink_hwss_hpo_dp.c60 h_blank_in_ms = dc_fixpt_div(dc_fixpt_from_int( in set_hpo_dp_hblank_min_symbol_width()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c294 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()
H A Ddce_clock_source.c683 dc_fixpt_from_int(ds_data->feedback_amount)); in calculate_ss()
688 dc_fixpt_from_int(ds_data->nfrac_amount)); in calculate_ss()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_dpms.c1050 mbytes_per_sec = dc_fixpt_from_int(link_rate_in_mbytes_per_sec); in get_pbn_per_slot()
1261 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload_with_temp_drm_wa()
1340 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload()
1545 dc_fixpt_from_int( in link_calculate_sst_avg_time_slots_per_mtp()
1550 dc_fixpt_from_int( in link_calculate_sst_avg_time_slots_per_mtp()
1680 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in update_sst_payload()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_hw_sequencer.c524 arr_points[0].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format()
525 dc_fixpt_from_int(region_start)); in dce110_translate_regamma_to_hw_format()
526 arr_points[1].x = dc_fixpt_pow(dc_fixpt_from_int(2), in dce110_translate_regamma_to_hw_format()
527 dc_fixpt_from_int(region_end)); in dce110_translate_regamma_to_hw_format()
556 const struct fixed31_32 end_value = dc_fixpt_from_int(125); in dce110_translate_regamma_to_hw_format()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
H A Ddcn30_clk_mgr.c183 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn30_get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
H A Ddcn20_clk_mgr.c567 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn20_clk_mgr_construct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
H A Dvg_clk_mgr.c201 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A Drn_clk_mgr.c269 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
H A Ddcn31_clk_mgr.c274 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/
H A Ddcn314_clk_mgr.c302 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
H A Ddcn32_clk_mgr.c675 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn32_get_vco_frequency_from_reg()