• Home
  • Raw
  • Download

Lines Matching refs:stream

112 		const struct dc_stream_state *stream,  in calc_duration_in_us_from_v_total()  argument
118 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total()
119 stream->timing.pix_clk_100hz)); in calc_duration_in_us_from_v_total()
124 static unsigned int calc_max_hardware_v_total(const struct dc_stream_state *stream) in calc_max_hardware_v_total() argument
126 unsigned int max_hw_v_total = stream->ctx->dc->caps.max_v_total; in calc_max_hardware_v_total()
128 if (stream->ctx->dc->caps.vtotal_limited_by_fp2) { in calc_max_hardware_v_total()
129 max_hw_v_total -= stream->timing.v_front_porch + 1; in calc_max_hardware_v_total()
136 const struct dc_stream_state *stream, in mod_freesync_calc_v_total_from_refresh() argument
147 frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)), in mod_freesync_calc_v_total_from_refresh()
148 stream->timing.h_total) + 500000, 1000000); in mod_freesync_calc_v_total_from_refresh()
151 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh()
152 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh()
153 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
160 const struct dc_stream_state *stream, in calc_v_total_from_duration() argument
172 if (dc_is_hdmi_signal(stream->signal)) { // change for HDMI to comply with spec in calc_v_total_from_duration()
175 h_total_up_scaled = stream->timing.h_total * 10000; in calc_v_total_from_duration()
177 * stream->timing.pix_clk_100hz + (h_total_up_scaled - 1), in calc_v_total_from_duration()
181 duration_in_us) * (stream->timing.pix_clk_100hz / 10)), in calc_v_total_from_duration()
182 stream->timing.h_total), 1000); in calc_v_total_from_duration()
186 if (v_total < stream->timing.v_total) { in calc_v_total_from_duration()
187 ASSERT(v_total < stream->timing.v_total); in calc_v_total_from_duration()
188 v_total = stream->timing.v_total; in calc_v_total_from_duration()
196 const struct dc_stream_state *stream, in update_v_total_for_static_ramp() argument
202 stream, in_out_vrr, in update_v_total_for_static_ramp()
257 current_duration_in_us) * (stream->timing.pix_clk_100hz / 10)), in update_v_total_for_static_ramp()
258 stream->timing.h_total), 1000); in update_v_total_for_static_ramp()
261 if (v_total < stream->timing.v_total) in update_v_total_for_static_ramp()
262 v_total = stream->timing.v_total; in update_v_total_for_static_ramp()
269 const struct dc_stream_state *stream, in apply_below_the_range() argument
305 mod_freesync_calc_v_total_from_refresh(stream, in apply_below_the_range()
308 mod_freesync_calc_v_total_from_refresh(stream, in apply_below_the_range()
424 const struct dc_stream_state *stream, in apply_fixed_refresh() argument
471 stream, in_out_vrr->max_refresh_in_uhz); in apply_fixed_refresh()
476 mod_freesync_calc_v_total_from_refresh(stream, in apply_fixed_refresh()
479 mod_freesync_calc_v_total_from_refresh(stream, in apply_fixed_refresh()
542 const struct dc_stream_state *stream, in mod_freesync_get_vmin_vmax() argument
546 *vmin = stream->adjust.v_total_min; in mod_freesync_get_vmin_vmax()
547 *vmax = stream->adjust.v_total_max; in mod_freesync_get_vmin_vmax()
553 struct dc_stream_state *stream, in mod_freesync_get_v_position() argument
565 if (dc_stream_get_crtc_position(core_freesync->dc, &stream, 1, in mod_freesync_get_v_position()
957 const struct dc_stream_state *stream, in mod_freesync_build_vrr_infopacket() argument
974 build_vrr_infopacket_v3(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
977 build_vrr_infopacket_v2(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
982 build_vrr_infopacket_v1(stream->signal, vrr, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
986 true == dc_is_dp_signal(stream->signal) && in mod_freesync_build_vrr_infopacket()
993 const struct dc_stream_state *stream, in mod_freesync_build_vrr_params() argument
1012 mod_freesync_calc_nominal_field_rate(stream); in mod_freesync_build_vrr_params()
1014 if (stream->ctx->dc->caps.max_v_total != 0 && stream->timing.h_total != 0) { in mod_freesync_build_vrr_params()
1015 min_hardware_refresh_in_uhz = div64_u64((stream->timing.pix_clk_100hz * 100000000ULL), in mod_freesync_build_vrr_params()
1016 (stream->timing.h_total * (long long)calc_max_hardware_v_total(stream))); in mod_freesync_build_vrr_params()
1049 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1050 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1101 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1102 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1104 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1105 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1107 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1108 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1113 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_build_vrr_params()
1116 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_build_vrr_params()
1130 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_build_vrr_params()
1137 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1138 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1146 const struct dc_stream_state *stream, in mod_freesync_handle_preflip() argument
1166 stream, in mod_freesync_handle_preflip()
1171 stream, in mod_freesync_handle_preflip()
1183 const struct dc_stream_state *stream, in mod_freesync_handle_v_update() argument
1190 if ((mod_freesync == NULL) || (stream == NULL) || (in_out_vrr == NULL)) in mod_freesync_handle_v_update()
1212 stream, in_out_vrr->max_refresh_in_uhz); in mod_freesync_handle_v_update()
1243 calc_v_total_from_duration(stream, in mod_freesync_handle_v_update()
1256 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_handle_v_update()
1259 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_handle_v_update()
1276 core_freesync, stream, in_out_vrr); in mod_freesync_handle_v_update()
1303 const struct dc_stream_state *stream) in mod_freesync_calc_nominal_field_rate() argument
1306 unsigned int total = stream->timing.h_total * stream->timing.v_total; in mod_freesync_calc_nominal_field_rate()
1309 nominal_field_rate_in_uhz = stream->timing.pix_clk_100hz; in mod_freesync_calc_nominal_field_rate()