Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/amd/display/include/
H A 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 };
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 Dfixpt31_32.c29 static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
30 static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
31 static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
69 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction()
71 struct fixed31_32 res; in dc_fixpt_from_fraction()
121 struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_mul()
123 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()
208 struct fixed31_32 dc_fixpt_recip(struct fixed31_32 arg) in dc_fixpt_recip()
[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/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;
161 struct fixed31_32 regamma_y_red;
162 struct fixed31_32 regamma_y_green;
163 struct fixed31_32 regamma_y_blue;
168 struct fixed31_32 r;
169 struct fixed31_32 g;
[all …]
H A Dtransform.h115 struct fixed31_32 temperature_matrix[CSC_TEMPERATURE_MATRIX_SIZE];
127 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);
[all …]
H A Dhw_shared.h114 struct fixed31_32 x;
115 struct fixed31_32 y;
116 struct fixed31_32 offset;
117 struct fixed31_32 slope;
132 struct fixed31_32 red;
133 struct fixed31_32 green;
134 struct fixed31_32 blue;
136 struct fixed31_32 delta_red;
137 struct fixed31_32 delta_green;
138 struct fixed31_32 delta_blue;
/linux/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c167 struct fixed31_32 region_size = dc_fixpt_from_int(128); in setup_x_points_distribution()
171 struct fixed31_32 increment; in setup_x_points_distribution()
204 static void compute_pq(struct fixed31_32 in_x, struct fixed31_32 *out_y) in compute_pq()
207 const struct fixed31_32 m1 = in compute_pq()
209 const struct fixed31_32 m2 = in compute_pq()
211 const struct fixed31_32 c1 = in compute_pq()
213 const struct fixed31_32 c2 = in compute_pq()
215 const struct fixed31_32 c3 = in compute_pq()
218 struct fixed31_32 l_pow_m1; in compute_pq()
219 struct fixed31_32 base; in compute_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/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()
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/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.c242 static struct fixed31_32 get_link_symbol_clk_freq_mhz(enum dc_link_rate link_rate) in get_link_symbol_clk_freq_mhz()
354 struct fixed31_32 audio_sdp_margin = dc_fixpt_from_fraction(110, 100); in calculate_required_audio_bw_in_symbols()
355 struct fixed31_32 horizontal_line_freq_khz = dc_fixpt_from_fraction( in calculate_required_audio_bw_in_symbols()
357 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()
[all …]
/linux/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()
H A Dlink_hwss_dio.h36 struct fixed31_32 throttled_vcp_size);
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_hw_types.h507 struct fixed31_32 h_scale_ratio;
508 struct fixed31_32 v_scale_ratio;
537 struct fixed31_32 red;
538 struct fixed31_32 green;
539 struct fixed31_32 blue;
548 struct fixed31_32 red[GAMMA_MAX_ENTRIES];
549 struct fixed31_32 green[GAMMA_MAX_ENTRIES];
550 struct fixed31_32 blue[GAMMA_MAX_ENTRIES];
H A Ddc_types.h362 struct fixed31_32 contrast;
363 struct fixed31_32 saturation;
364 struct fixed31_32 brightness;
365 struct fixed31_32 hue;
399 struct fixed31_32 temperature_matrix[12];
756 struct fixed31_32 matrix[12];
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_validation.c579 struct fixed31_32 audio_sdp_margin = dc_fixpt_from_fraction(110, 100); in dp_required_hblank_size_bytes()
580 struct fixed31_32 horizontal_line_freq_khz = dc_fixpt_from_fraction( in dp_required_hblank_size_bytes()
582 struct fixed31_32 samples_per_line; in dp_required_hblank_size_bytes()
583 struct fixed31_32 layouts_per_line; in dp_required_hblank_size_bytes()
584 struct fixed31_32 symbols_per_sdp_max_layout; in dp_required_hblank_size_bytes()
585 struct fixed31_32 remainder; in dp_required_hblank_size_bytes()
H A Dlink_dpms.c1081 static void log_vcp_x_y(const struct dc_link *link, struct fixed31_32 avg_time_slots_per_mtp) in log_vcp_x_y()
1121 static struct fixed31_32 get_pbn_per_slot(struct dc_stream_state *stream) in get_pbn_per_slot()
1123 struct fixed31_32 mbytes_per_sec; in get_pbn_per_slot()
1133 static struct fixed31_32 get_pbn_from_bw_in_kbps(uint64_t kbps) in get_pbn_from_bw_in_kbps()
1135 struct fixed31_32 peak_kbps; in get_pbn_from_bw_in_kbps()
1161 static struct fixed31_32 get_pbn_from_timing(struct pipe_ctx *pipe_ctx) in get_pbn_from_timing()
1361 struct fixed31_32 avg_time_slots_per_mtp = dc_fixpt_from_int(0); in deallocate_mst_payload()
1439 struct fixed31_32 avg_time_slots_per_mtp; in allocate_mst_payload()
1440 struct fixed31_32 pbn; in allocate_mst_payload()
1441 struct fixed31_32 pbn_per_slot; in allocate_mst_payload()
[all …]
H A Dlink_dpms.h47 struct fixed31_32 link_calculate_sst_avg_time_slots_per_mtp(
/linux/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,

123