Home
last modified time | relevance | path

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

/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 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/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_transform.c294 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 Ddce_clock_source.c653 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 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/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/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_dpms.c944 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 Ddc_types.h364 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 Ddc.h1330 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 Ddc_dsc.c70 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 Dlink_encoder.h281 struct fixed31_32 avg_time_slots_per_mtp);
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c175 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 Ddce110_hwseq.c445 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 Ddcn30_dwb_cm.c367 struct fixed31_32 arr_matrix[12]; in dwb3_set_gamut_remap()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
H A Ddcn20_clk_mgr.c537 struct fixed31_32 pll_req; in dcn20_clk_mgr_construct()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c925 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 Ddcn401_hwseq.c3844 struct fixed31_32 multiplier = pipe_ctx->plane_state->hdr_mult; in dcn401_set_hdr_multiplier_sequence()