Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/gpu/drm/amd/display/include/
Dfixed31_32.h57 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 };
72 static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
73 static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
74 static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
75 static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
76 static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c67 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction()
69 struct fixed31_32 res; in dc_fixpt_from_fraction()
119 struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_mul()
121 struct fixed31_32 res; in dc_fixpt_mul()
170 struct fixed31_32 dc_fixpt_sqr(struct fixed31_32 arg) in dc_fixpt_sqr()
172 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()
226 struct fixed31_32 square; in dc_fixpt_sinc()
228 struct fixed31_32 res = dc_fixpt_one; in dc_fixpt_sinc()
[all …]
Dconversion.c35 struct fixed31_32 arg, in fixed_point_to_int_frac()
83 struct fixed31_32 *flt, in convert_float_matrix()
86 const struct fixed31_32 min_2_13 = in convert_float_matrix()
88 const struct fixed31_32 max_2_13 = in convert_float_matrix()
Dconversion.h32 struct fixed31_32 arg,
38 struct fixed31_32 *flt,
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/hw/
Dopp.h34 struct fixed31_32;
118 struct fixed31_32 r;
119 struct fixed31_32 g;
120 struct fixed31_32 b;
144 struct fixed31_32 x;
145 struct fixed31_32 regamma_y_red;
146 struct fixed31_32 regamma_y_green;
147 struct fixed31_32 regamma_y_blue;
152 struct fixed31_32 r;
153 struct fixed31_32 g;
[all …]
Dtransform.h130 struct fixed31_32 temperature_matrix[CSC_TEMPERATURE_MATRIX_SIZE];
142 struct fixed31_32 horz;
143 struct fixed31_32 vert;
144 struct fixed31_32 horz_c;
145 struct fixed31_32 vert_c;
162 struct fixed31_32 h;
163 struct fixed31_32 h_c;
164 struct fixed31_32 v;
165 struct fixed31_32 v_bot;
166 struct fixed31_32 v_c;
[all …]
Dhw_shared.h49 struct fixed31_32 x;
50 struct fixed31_32 y;
51 struct fixed31_32 offset;
52 struct fixed31_32 slope;
67 struct fixed31_32 red;
68 struct fixed31_32 green;
69 struct fixed31_32 blue;
71 struct fixed31_32 delta_red;
72 struct fixed31_32 delta_green;
73 struct fixed31_32 delta_blue;
Dstream_encoder.h148 struct fixed31_32 avg_time_slots_per_mtp);
Ddpp.h55 struct fixed31_32 temperature_matrix[CSC_TEMPERATURE_MATRIX_SIZE];
/Linux-v5.4/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c39 static struct fixed31_32 pq_table[MAX_HW_POINTS + 2];
40 static struct fixed31_32 de_pq_table[MAX_HW_POINTS + 2];
44 static struct fixed31_32 scratch_1;
45 static struct fixed31_32 scratch_2;
59 static struct fixed31_32 pow_buffer[NUM_PTS_IN_REGION];
60 static struct fixed31_32 gamma_of_2; // 2^gamma
75 struct fixed31_32 region_size = dc_fixpt_from_int(128); in setup_x_points_distribution()
79 struct fixed31_32 increment; in setup_x_points_distribution()
112 static void compute_pq(struct fixed31_32 in_x, struct fixed31_32 *out_y) in compute_pq()
115 const struct fixed31_32 m1 = in compute_pq()
[all …]
Dcolor_gamma.h86 struct fixed31_32 arg;
87 struct fixed31_32 a0;
88 struct fixed31_32 a1;
89 struct fixed31_32 a2;
90 struct fixed31_32 a3;
91 struct fixed31_32 gamma;
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb_scl.c530 const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_3tap_16p()
542 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()
590 static const uint16_t *wbscl_get_filter_8tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_8tap_16p()
602 static const uint16_t *wbscl_get_filter_9tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_9tap_16p()
613 static const uint16_t *wbscl_get_filter_10tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_10tap_16p()
625 static const uint16_t *wbscl_get_filter_11tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_11tap_16p()
637 static const uint16_t *wbscl_get_filter_12tap_16p(struct fixed31_32 ratio) in wbscl_get_filter_12tap_16p()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce/
Ddce_scl_filters.c1015 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) in get_filter_3tap_16p()
1027 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) in get_filter_3tap_64p()
1039 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) in get_filter_4tap_16p()
1051 const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio) in get_filter_4tap_64p()
1063 const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio) in get_filter_5tap_64p()
1075 const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio) in get_filter_6tap_64p()
1087 const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio) in get_filter_7tap_64p()
1099 const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio) in get_filter_8tap_64p()
Ddce_clock_source.c651 struct fixed31_32 fb_div; in calculate_ss()
652 struct fixed31_32 ss_amount; in calculate_ss()
653 struct fixed31_32 ss_nslip_amount; in calculate_ss()
654 struct fixed31_32 ss_ds_frac_amount; in calculate_ss()
655 struct fixed31_32 ss_step_size; in calculate_ss()
656 struct fixed31_32 modulation_time; in calculate_ss()
Ddce_transform.c255 struct fixed31_32 h_init; in calculate_inits()
256 struct fixed31_32 v_init; in calculate_inits()
304 static const uint16_t *get_filter_coeffs_16p(int taps, struct fixed31_32 ratio) in get_filter_coeffs_16p()
856 struct fixed31_32 arr_matrix[GAMUT_MATRIX_SIZE]; in dce_transform_set_gamut_remap()
869 static uint32_t decide_taps(struct fixed31_32 ratio, uint32_t in_taps, bool chroma) in decide_taps()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/calcs/
Dcustom_float.c30 struct fixed31_32 value, in build_custom_float()
38 const struct fixed31_32 mantissa_constant_plus_max_fraction = in build_custom_float()
43 struct fixed31_32 mantiss; in build_custom_float()
183 struct fixed31_32 value, in convert_to_custom_float_format()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/
Ddc_hw_types.h429 struct fixed31_32 h_scale_ratio;
430 struct fixed31_32 v_scale_ratio;
459 struct fixed31_32 red;
460 struct fixed31_32 green;
461 struct fixed31_32 blue;
471 struct fixed31_32 red[GAMMA_MAX_ENTRIES];
472 struct fixed31_32 green[GAMMA_MAX_ENTRIES];
473 struct fixed31_32 blue[GAMMA_MAX_ENTRIES];
Ddc_types.h375 struct fixed31_32 contrast;
376 struct fixed31_32 saturation;
377 struct fixed31_32 brightness;
378 struct fixed31_32 hue;
707 struct fixed31_32 matrix[12];
Ddc.h603 struct fixed31_32 red[TRANSFER_FUNC_POINTS];
604 struct fixed31_32 green[TRANSFER_FUNC_POINTS];
605 struct fixed31_32 blue[TRANSFER_FUNC_POINTS];
732 struct fixed31_32 coeff_reduction_factor;
812 const struct fixed31_32 *coeff_reduction_factor;
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/
Dcustom_float.h35 struct fixed31_32 value,
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/virtual/
Dvirtual_stream_encoder.c50 struct fixed31_32 avg_time_slots_per_mtp) {} in virtual_stream_encoder_set_mst_bandwidth()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
Ddce_clk_mgr.c117 struct fixed31_32 ss_percentage = dc_fixpt_div_int( in dce_adjust_dp_ref_freq_for_ss()
120 struct fixed31_32 adj_dp_ref_clk_khz; in dce_adjust_dp_ref_freq_for_ss()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c2406 static struct fixed31_32 get_pbn_per_slot(struct dc_stream_state *stream) in get_pbn_per_slot()
2408 struct fixed31_32 mbytes_per_sec; in get_pbn_per_slot()
2431 static struct fixed31_32 get_pbn_from_timing(struct pipe_ctx *pipe_ctx) in get_pbn_from_timing()
2435 struct fixed31_32 peak_kbps; in get_pbn_from_timing()
2520 struct fixed31_32 avg_time_slots_per_mtp; in allocate_mst_payload()
2521 struct fixed31_32 pbn; in allocate_mst_payload()
2522 struct fixed31_32 pbn_per_slot; in allocate_mst_payload()
2600 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload()
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c162 struct fixed31_32 *matrix) in __drm_ctm_to_dc_matrix()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c436 const struct fixed31_32 end_value = in cm_helper_translate_curve_to_hw_format()
593 const struct fixed31_32 end_value = in cm_helper_translate_curve_to_degamma_hw_format()

12