| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | fixed31_32.h | 57 struct fixed31_32 { struct 67 static const struct fixed31_32 dc_fixpt_zero = { 0 }; argument 68 static const struct fixed31_32 dc_fixpt_epsilon = { 1LL }; 69 static const struct fixed31_32 dc_fixpt_half = { 0x80000000LL }; 70 static const struct fixed31_32 dc_fixpt_one = { 0x100000000LL }; 81 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator); 87 static inline struct fixed31_32 dc_fixpt_from_int(int arg) in dc_fixpt_from_int() 89 struct fixed31_32 res; in dc_fixpt_from_int() 105 static inline struct fixed31_32 dc_fixpt_neg(struct fixed31_32 arg) in dc_fixpt_neg() 107 struct fixed31_32 res; in dc_fixpt_neg() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/basics/ |
| H A D | conversion.c | 36 struct fixed31_32 arg, in fixed_point_to_int_frac() 81 struct fixed31_32 *flt, in convert_float_matrix() 84 const struct fixed31_32 min_2_13 = in convert_float_matrix() 86 const struct fixed31_32 max_2_13 = in convert_float_matrix() 104 static struct fixed31_32 int_frac_to_fixed_point(uint16_t arg, in int_frac_to_fixed_point() 108 struct fixed31_32 result; in int_frac_to_fixed_point() 130 void convert_hw_matrix(struct fixed31_32 *matrix, in convert_hw_matrix()
|
| H A D | conversion.h | 32 struct fixed31_32 arg, 38 struct fixed31_32 *flt, 44 void convert_hw_matrix(struct fixed31_32 *matrix,
|
| H A D | custom_float.c | 29 static bool build_custom_float(struct fixed31_32 value, in build_custom_float() 37 const struct fixed31_32 mantissa_constant_plus_max_fraction = in build_custom_float() 41 struct fixed31_32 mantiss; in build_custom_float() 158 bool convert_to_custom_float_format(struct fixed31_32 value, in convert_to_custom_float_format()
|
| /linux/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dce_scl_filters.c | 1341 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) in get_filter_3tap_16p() 1353 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) in get_filter_3tap_64p() 1365 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) in get_filter_4tap_16p() 1377 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio) in get_filter_4tap_64p() 1389 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio) in get_filter_5tap_64p() 1401 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio) in get_filter_6tap_64p() 1413 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio) in get_filter_7tap_64p() 1425 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio) in get_filter_8tap_64p()
|
| H A D | dce_transform.c | 294 struct fixed31_32 h_init; in calculate_inits() 295 struct fixed31_32 v_init; in calculate_inits() 327 struct fixed31_32 v_init; in dce60_calculate_inits() 403 static const uint16_t *get_filter_coeffs_16p(int taps, struct fixed31_32 ratio) in get_filter_coeffs_16p() 1142 struct fixed31_32 arr_matrix[GAMUT_MATRIX_SIZE]; in dce_transform_set_gamut_remap() 1155 static uint32_t decide_taps(struct fixed31_32 ratio, uint32_t in_taps, bool chroma) in decide_taps()
|
| H A D | dce_clock_source.c | 653 struct fixed31_32 fb_div; in calculate_ss() 654 struct fixed31_32 ss_amount; in calculate_ss() 655 struct fixed31_32 ss_nslip_amount; in calculate_ss() 656 struct fixed31_32 ss_ds_frac_amount; in calculate_ss() 657 struct fixed31_32 ss_step_size; in calculate_ss() 658 struct fixed31_32 modulation_time; in calculate_ss()
|
| /linux/drivers/gpu/drm/amd/display/modules/color/ |
| H A D | color_table.c | 28 static struct fixed31_32 pq_table[MAX_HW_POINTS + 2]; 29 static struct fixed31_32 de_pq_table[MAX_HW_POINTS + 2]; 45 struct fixed31_32 *mod_color_get_table(enum table_type type) in mod_color_get_table() 47 struct fixed31_32 *table = NULL; in mod_color_get_table()
|
| H A D | color_table.h | 43 struct fixed31_32 *mod_color_get_table(enum table_type type);
|
| /linux/drivers/gpu/drm/amd/display/dc/inc/ |
| H A D | link_hwss.h | 51 struct fixed31_32 throttled_vcp_size); 53 struct fixed31_32 throttled_vcp_size);
|
| H A D | custom_float.h | 35 struct fixed31_32 value,
|
| /linux/drivers/gpu/drm/amd/display/dc/link/ |
| H A D | link_dpms.c | 944 static void log_vcp_x_y(const struct dc_link *link, struct fixed31_32 avg_time_slots_per_mtp) in log_vcp_x_y() 984 static struct fixed31_32 get_pbn_per_slot(struct dc_stream_state *stream) in get_pbn_per_slot() 986 struct fixed31_32 mbytes_per_sec; in get_pbn_per_slot() 996 static struct fixed31_32 get_pbn_from_bw_in_kbps(uint64_t kbps) in get_pbn_from_bw_in_kbps() 998 struct fixed31_32 peak_kbps; in get_pbn_from_bw_in_kbps() 1024 static struct fixed31_32 get_pbn_from_timing(struct pipe_ctx *pipe_ctx) in get_pbn_from_timing() 1224 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload() 1302 struct fixed31_32 avg_time_slots_per_mtp; in allocate_mst_payload() 1303 struct fixed31_32 pbn; in allocate_mst_payload() 1304 struct fixed31_32 pbn_per_slot; in allocate_mst_payload() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_types.h | 364 struct fixed31_32 contrast; 365 struct fixed31_32 saturation; 366 struct fixed31_32 brightness; 367 struct fixed31_32 hue; 401 struct fixed31_32 temperature_matrix[12]; 758 struct fixed31_32 matrix[12];
|
| H A D | dc.h | 1330 struct fixed31_32 red[TRANSFER_FUNC_POINTS]; 1331 struct fixed31_32 green[TRANSFER_FUNC_POINTS]; 1332 struct fixed31_32 blue[TRANSFER_FUNC_POINTS]; 1527 struct fixed31_32 coeff_reduction_factor; 1528 struct fixed31_32 hdr_mult; 1890 const struct fixed31_32 *coeff_reduction_factor; 1906 struct fixed31_32 hdr_mult; 1914 const struct fixed31_32 *coeff_reduction_factor;
|
| /linux/drivers/gpu/drm/amd/display/dc/dsc/ |
| H A D | dc_dsc.c | 70 struct fixed31_32 bpp; in apply_128b_132b_stream_overhead() 71 struct fixed31_32 overhead_factor; in apply_128b_132b_stream_overhead() 773 struct fixed31_32 effective_bandwidth_in_kbps; in compute_bpp_x16_from_target_bandwidth() 774 struct fixed31_32 bpp_x16; in compute_bpp_x16_from_target_bandwidth() 1322 struct fixed31_32 bpp; in dc_dsc_stream_bandwidth_in_kbps() 1323 struct fixed31_32 actual_bandwidth_in_kbps; in dc_dsc_stream_bandwidth_in_kbps() 1339 struct fixed31_32 max_dsc_overhead; in dc_dsc_stream_bandwidth_overhead_in_kbps() 1340 struct fixed31_32 refresh_rate; in dc_dsc_stream_bandwidth_overhead_in_kbps()
|
| /linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | link_encoder.h | 281 struct fixed31_32 avg_time_slots_per_mtp);
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_color.c | 175 static inline struct fixed31_32 amdgpu_dm_fixpt_from_s3132(__u64 x) in amdgpu_dm_fixpt_from_s3132() 177 struct fixed31_32 val; in amdgpu_dm_fixpt_from_s3132() 545 struct fixed31_32 *matrix) in __drm_ctm_to_dc_matrix() 577 struct fixed31_32 *matrix) in __drm_ctm_3x4_to_dc_matrix()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
| H A D | dce110_hwseq.c | 445 struct fixed31_32 y_r; in dce110_translate_regamma_to_hw_format() 446 struct fixed31_32 y_g; in dce110_translate_regamma_to_hw_format() 447 struct fixed31_32 y_b; in dce110_translate_regamma_to_hw_format() 448 struct fixed31_32 y1_min; in dce110_translate_regamma_to_hw_format() 449 struct fixed31_32 y3_max; in dce110_translate_regamma_to_hw_format() 560 const struct fixed31_32 end_value = dc_fixpt_from_int(125); in dce110_translate_regamma_to_hw_format() 1353 struct fixed31_32 link_bw_kbps; in populate_audio_dp_link_info()
|
| /linux/drivers/gpu/drm/amd/display/dc/dwb/dcn30/ |
| H A D | dcn30_dwb_cm.c | 367 struct fixed31_32 arr_matrix[12]; in dwb3_set_gamut_remap()
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
| H A D | dcn20_clk_mgr.c | 537 struct fixed31_32 pll_req; in dcn20_clk_mgr_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_resource.c | 925 struct fixed31_32 temp; in calculate_plane_rec_in_timing_active() 1248 struct fixed31_32 ratio, in calculate_init_and_vp() 1249 struct fixed31_32 *init, in calculate_init_and_vp() 1253 struct fixed31_32 temp; in calculate_init_and_vp()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
| H A D | dcn401_hwseq.c | 3844 struct fixed31_32 multiplier = pipe_ctx->plane_state->hdr_mult; in dcn401_set_hdr_multiplier_sequence()
|