Home
last modified time | relevance | path

Searched refs:fixed31_32 (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.15/drivers/gpu/drm/amd/display/include/
H A Dfixed31_32.h162 static inline struct fixed31_32 dc_fixpt_min(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_min()
174 static inline struct fixed31_32 dc_fixpt_max(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_max()
245 static inline struct fixed31_32 dc_fixpt_add(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_add()
270 static inline struct fixed31_32 dc_fixpt_sub(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_sub()
301 struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2);
317 struct fixed31_32 dc_fixpt_sqr(struct fixed31_32 arg);
332 static inline struct fixed31_32 dc_fixpt_div(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_div()
374 struct fixed31_32 dc_fixpt_sin(struct fixed31_32 arg);
386 struct fixed31_32 dc_fixpt_cos(struct fixed31_32 arg);
400 struct fixed31_32 dc_fixpt_exp(struct fixed31_32 arg);
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/basics/
H A Dfixpt31_32.c73 struct fixed31_32 res; in dc_fixpt_from_fraction()
123 struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_mul()
125 struct fixed31_32 res; in dc_fixpt_mul()
172 struct fixed31_32 dc_fixpt_sqr(struct fixed31_32 arg) in dc_fixpt_sqr()
174 struct fixed31_32 res; in dc_fixpt_sqr()
210 struct fixed31_32 dc_fixpt_recip(struct fixed31_32 arg) in dc_fixpt_recip()
224 struct fixed31_32 dc_fixpt_sinc(struct fixed31_32 arg) in dc_fixpt_sinc()
268 struct fixed31_32 dc_fixpt_sin(struct fixed31_32 arg) in dc_fixpt_sin()
275 struct fixed31_32 dc_fixpt_cos(struct fixed31_32 arg) in dc_fixpt_cos()
335 struct fixed31_32 dc_fixpt_exp(struct fixed31_32 arg) in dc_fixpt_exp()
[all …]
H A Dconversion.c36 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 Dconversion.h32 struct fixed31_32 arg,
38 struct fixed31_32 *flt,
44 void convert_hw_matrix(struct fixed31_32 *matrix,
H A Dcustom_float.c29 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-6.15/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dopp.h50 struct fixed31_32;
134 struct fixed31_32 r;
135 struct fixed31_32 g;
136 struct fixed31_32 b;
160 struct fixed31_32 x;
168 struct fixed31_32 r;
169 struct fixed31_32 g;
170 struct fixed31_32 b;
215 struct fixed31_32 r;
221 struct fixed31_32 g;
[all …]
H A Dtransform.h127 struct fixed31_32 horz;
128 struct fixed31_32 vert;
129 struct fixed31_32 horz_c;
130 struct fixed31_32 vert_c;
147 struct fixed31_32 h;
148 struct fixed31_32 h_c;
149 struct fixed31_32 v;
150 struct fixed31_32 v_c;
252 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio);
253 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio);
[all …]
H A Dhw_shared.h59 struct fixed31_32 x;
60 struct fixed31_32 y;
61 struct fixed31_32 offset;
62 struct fixed31_32 slope;
77 struct fixed31_32 red;
78 struct fixed31_32 green;
79 struct fixed31_32 blue;
81 struct fixed31_32 delta_red;
82 struct fixed31_32 delta_green;
83 struct fixed31_32 delta_blue;
/linux-6.15/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c204 static void compute_pq(struct fixed31_32 in_x, struct fixed31_32 *out_y) in compute_pq()
277 struct fixed31_32 a; in compute_hlg_eotf()
278 struct fixed31_32 b; in compute_hlg_eotf()
279 struct fixed31_32 c; in compute_hlg_eotf()
281 struct fixed31_32 x; in compute_hlg_eotf()
308 struct fixed31_32 a; in compute_hlg_oetf()
309 struct fixed31_32 b; in compute_hlg_oetf()
310 struct fixed31_32 c; in compute_hlg_oetf()
312 struct fixed31_32 x; in compute_hlg_oetf()
853 struct fixed31_32 x; in build_pq()
[all …]
H A Dcolor_gamma.h90 struct fixed31_32 buffer[NUM_PTS_IN_REGION];
91 struct fixed31_32 gamma_of_2;
95 struct fixed31_32 arg;
96 struct fixed31_32 a0;
97 struct fixed31_32 a1;
98 struct fixed31_32 a2;
99 struct fixed31_32 a3;
100 struct fixed31_32 gamma;
H A Dcolor_table.c28 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 Dcolor_table.h43 struct fixed31_32 *mod_color_get_table(enum table_type type);
/linux-6.15/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dwb_scl.c530 static const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_3tap_16p()
542 static const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_4tap_16p()
554 static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_5tap_16p()
566 static const uint16_t *wbscl_get_filter_6tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_6tap_16p()
578 static const uint16_t *wbscl_get_filter_7tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_7tap_16p()
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()
745 struct fixed31_32 tmp_h_ratio_luma = dc_fixpt_from_fraction( 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()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_scl_filters.c1341 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 Ddce_audio.c357 struct fixed31_32 samples_per_line; in calculate_required_audio_bw_in_symbols()
358 struct fixed31_32 layouts_per_line; in calculate_required_audio_bw_in_symbols()
359 struct fixed31_32 symbols_per_sdp_max_layout; in calculate_required_audio_bw_in_symbols()
360 struct fixed31_32 remainder; in calculate_required_audio_bw_in_symbols()
399 struct fixed31_32 hblank_time_msec = in calculate_available_hblank_bw_in_symbols()
401 struct fixed31_32 lsclkfreq_mhz = in calculate_available_hblank_bw_in_symbols()
403 struct fixed31_32 average_stream_sym_bw_frac; in calculate_available_hblank_bw_in_symbols()
404 struct fixed31_32 peak_stream_bw_kbps; in calculate_available_hblank_bw_in_symbols()
405 struct fixed31_32 bits_per_pixel; in calculate_available_hblank_bw_in_symbols()
406 struct fixed31_32 link_bw_kbps; in calculate_available_hblank_bw_in_symbols()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/link/hwss/
H A Dlink_hwss_hpo_dp.h32 struct fixed31_32 throttled_vcp_size);
35 struct fixed31_32 throttled_vcp_size);
38 struct fixed31_32 throttled_vcp_size);
H A Dlink_hwss_hpo_dp.c34 struct fixed31_32 throttled_vcp_size) in set_hpo_dp_throttled_vcp_size()
48 struct fixed31_32 throttled_vcp_size) in set_hpo_dp_hblank_min_symbol_width()
53 struct fixed31_32 h_blank_in_ms, time_slot_in_ms, mtp_cnt_per_h_blank; in set_hpo_dp_hblank_min_symbol_width()
/linux-6.15/drivers/gpu/drm/amd/display/dc/
H A Ddc_hw_types.h501 struct fixed31_32 h_scale_ratio;
502 struct fixed31_32 v_scale_ratio;
531 struct fixed31_32 red;
532 struct fixed31_32 green;
533 struct fixed31_32 blue;
542 struct fixed31_32 red[GAMMA_MAX_ENTRIES];
543 struct fixed31_32 green[GAMMA_MAX_ENTRIES];
544 struct fixed31_32 blue[GAMMA_MAX_ENTRIES];
H A Ddc_types.h351 struct fixed31_32 contrast;
352 struct fixed31_32 saturation;
353 struct fixed31_32 brightness;
354 struct fixed31_32 hue;
388 struct fixed31_32 temperature_matrix[12];
731 struct fixed31_32 matrix[12];
H A Ddc.h1197 struct fixed31_32 red[TRANSFER_FUNC_POINTS];
1198 struct fixed31_32 green[TRANSFER_FUNC_POINTS];
1199 struct fixed31_32 blue[TRANSFER_FUNC_POINTS];
1251 struct fixed31_32 hdr_multiplier;
1326 struct fixed31_32 coeff_reduction_factor;
1327 struct fixed31_32 hdr_mult;
1509 const struct fixed31_32 *coeff_reduction_factor;
1522 struct fixed31_32 hdr_mult;
1530 const struct fixed31_32 *coeff_reduction_factor;
/linux-6.15/drivers/gpu/drm/amd/display/dc/inc/
H A Dlink_hwss.h51 struct fixed31_32 throttled_vcp_size);
53 struct fixed31_32 throttled_vcp_size);
H A Dcustom_float.h35 struct fixed31_32 value,
/linux-6.15/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_validation.c543 struct fixed31_32 audio_sdp_margin = dc_fixpt_from_fraction(110, 100); in dp_required_hblank_size_bytes()
544 struct fixed31_32 horizontal_line_freq_khz = dc_fixpt_from_fraction( in dp_required_hblank_size_bytes()
546 struct fixed31_32 samples_per_line; in dp_required_hblank_size_bytes()
547 struct fixed31_32 layouts_per_line; in dp_required_hblank_size_bytes()
548 struct fixed31_32 symbols_per_sdp_max_layout; in dp_required_hblank_size_bytes()
549 struct fixed31_32 remainder; in dp_required_hblank_size_bytes()
H A Dlink_dpms.c1118 struct fixed31_32 mbytes_per_sec; in get_pbn_per_slot()
1130 struct fixed31_32 peak_kbps; in get_pbn_from_bw_in_kbps()
1433 struct fixed31_32 avg_time_slots_per_mtp; in allocate_mst_payload()
1434 struct fixed31_32 pbn; in allocate_mst_payload()
1435 struct fixed31_32 pbn_per_slot; in allocate_mst_payload()
1531 struct fixed31_32 link_bw_effective = in link_calculate_sst_avg_time_slots_per_mtp()
1536 struct fixed31_32 timing_bw = in link_calculate_sst_avg_time_slots_per_mtp()
1743 struct fixed31_32 pbn; in link_reduce_mst_payload()
1744 struct fixed31_32 pbn_per_slot; in link_reduce_mst_payload()
1831 struct fixed31_32 pbn; in link_increase_mst_payload()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/dsc/
H A Ddc_dsc.c67 struct fixed31_32 bpp; in apply_128b_132b_stream_overhead()
68 struct fixed31_32 overhead_factor; in apply_128b_132b_stream_overhead()
637 struct fixed31_32 effective_bandwidth_in_kbps; in compute_bpp_x16_from_target_bandwidth()
638 struct fixed31_32 bpp_x16; in compute_bpp_x16_from_target_bandwidth()
1178 struct fixed31_32 bpp; in dc_dsc_stream_bandwidth_in_kbps()
1179 struct fixed31_32 actual_bandwidth_in_kbps; in dc_dsc_stream_bandwidth_in_kbps()
1195 struct fixed31_32 max_dsc_overhead; in dc_dsc_stream_bandwidth_overhead_in_kbps()
1196 struct fixed31_32 refresh_rate; in dc_dsc_stream_bandwidth_overhead_in_kbps()

123