Lines Matching refs:stream

113 		const struct dc_stream_state *stream,  in calc_duration_in_us_from_v_total()  argument
119 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total()
120 stream->timing.pix_clk_100hz)); in calc_duration_in_us_from_v_total()
125 static unsigned int calc_max_hardware_v_total(const struct dc_stream_state *stream) in calc_max_hardware_v_total() argument
127 unsigned int max_hw_v_total = stream->ctx->dc->caps.max_v_total; in calc_max_hardware_v_total()
129 if (stream->ctx->dc->caps.vtotal_limited_by_fp2) { in calc_max_hardware_v_total()
130 max_hw_v_total -= stream->timing.v_front_porch + 1; in calc_max_hardware_v_total()
137 const struct dc_stream_state *stream, in mod_freesync_calc_v_total_from_refresh() argument
144 return stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
150 if (refresh_in_uhz <= stream->timing.min_refresh_in_uhz) { in mod_freesync_calc_v_total_from_refresh()
156 frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)), in mod_freesync_calc_v_total_from_refresh()
157 stream->timing.h_total), 1000000); in mod_freesync_calc_v_total_from_refresh()
158 } else if (refresh_in_uhz >= stream->timing.max_refresh_in_uhz) { in mod_freesync_calc_v_total_from_refresh()
164 frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)), in mod_freesync_calc_v_total_from_refresh()
165 stream->timing.h_total) + (1000000 - 1), 1000000); in mod_freesync_calc_v_total_from_refresh()
168 frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)), in mod_freesync_calc_v_total_from_refresh()
169 stream->timing.h_total) + 500000, 1000000); in mod_freesync_calc_v_total_from_refresh()
173 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh()
174 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh()
175 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
182 const struct dc_stream_state *stream, in calc_v_total_from_duration() argument
194 if (dc_is_hdmi_signal(stream->signal)) { // change for HDMI to comply with spec in calc_v_total_from_duration()
197 h_total_up_scaled = stream->timing.h_total * 10000; in calc_v_total_from_duration()
199 * stream->timing.pix_clk_100hz + (h_total_up_scaled - 1), in calc_v_total_from_duration()
203 duration_in_us) * (stream->timing.pix_clk_100hz / 10)), in calc_v_total_from_duration()
204 stream->timing.h_total), 1000); in calc_v_total_from_duration()
208 if (v_total < stream->timing.v_total) { in calc_v_total_from_duration()
209 ASSERT(v_total < stream->timing.v_total); in calc_v_total_from_duration()
210 v_total = stream->timing.v_total; in calc_v_total_from_duration()
218 const struct dc_stream_state *stream, in update_v_total_for_static_ramp() argument
224 stream, in_out_vrr, in update_v_total_for_static_ramp()
279 current_duration_in_us) * (stream->timing.pix_clk_100hz / 10)), in update_v_total_for_static_ramp()
280 stream->timing.h_total), 1000); in update_v_total_for_static_ramp()
283 if (v_total < stream->timing.v_total) in update_v_total_for_static_ramp()
284 v_total = stream->timing.v_total; in update_v_total_for_static_ramp()
291 const struct dc_stream_state *stream, in apply_below_the_range() argument
327 mod_freesync_calc_v_total_from_refresh(stream, in apply_below_the_range()
330 mod_freesync_calc_v_total_from_refresh(stream, in apply_below_the_range()
446 const struct dc_stream_state *stream, in apply_fixed_refresh() argument
493 stream, in_out_vrr->max_refresh_in_uhz); in apply_fixed_refresh()
498 mod_freesync_calc_v_total_from_refresh(stream, in apply_fixed_refresh()
501 mod_freesync_calc_v_total_from_refresh(stream, in apply_fixed_refresh()
942 const struct dc_stream_state *stream, in mod_freesync_build_vrr_infopacket() argument
959 build_vrr_infopacket_v3(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
962 build_vrr_infopacket_v2(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
967 build_vrr_infopacket_v1(stream->signal, vrr, infopacket, stream->freesync_on_desktop); in mod_freesync_build_vrr_infopacket()
971 true == dc_is_dp_signal(stream->signal) && in mod_freesync_build_vrr_infopacket()
978 const struct dc_stream_state *stream, in mod_freesync_build_vrr_params() argument
997 mod_freesync_calc_nominal_field_rate(stream); in mod_freesync_build_vrr_params()
999 if (stream->ctx->dc->caps.max_v_total != 0 && stream->timing.h_total != 0) { in mod_freesync_build_vrr_params()
1000 min_hardware_refresh_in_uhz = div64_u64((stream->timing.pix_clk_100hz * 100000000ULL), in mod_freesync_build_vrr_params()
1001 (stream->timing.h_total * (long long)calc_max_hardware_v_total(stream))); in mod_freesync_build_vrr_params()
1034 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1035 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1086 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1087 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1089 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1090 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1092 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1093 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1098 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_build_vrr_params()
1101 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_build_vrr_params()
1115 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_build_vrr_params()
1122 in_out_vrr->adjust.v_total_min = stream->timing.v_total; in mod_freesync_build_vrr_params()
1123 in_out_vrr->adjust.v_total_max = stream->timing.v_total; in mod_freesync_build_vrr_params()
1131 const struct dc_stream_state *stream, in mod_freesync_handle_preflip() argument
1151 stream, in mod_freesync_handle_preflip()
1156 stream, in mod_freesync_handle_preflip()
1168 const struct dc_stream_state *stream, in mod_freesync_handle_v_update() argument
1175 if ((mod_freesync == NULL) || (stream == NULL) || (in_out_vrr == NULL)) in mod_freesync_handle_v_update()
1197 stream, in_out_vrr->max_refresh_in_uhz); in mod_freesync_handle_v_update()
1228 calc_v_total_from_duration(stream, in mod_freesync_handle_v_update()
1241 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_handle_v_update()
1244 mod_freesync_calc_v_total_from_refresh(stream, in mod_freesync_handle_v_update()
1261 core_freesync, stream, in_out_vrr); in mod_freesync_handle_v_update()
1266 const struct dc_stream_state *stream) in mod_freesync_calc_nominal_field_rate() argument
1269 unsigned int total = stream->timing.h_total * stream->timing.v_total; in mod_freesync_calc_nominal_field_rate()
1272 nominal_field_rate_in_uhz = stream->timing.pix_clk_100hz; in mod_freesync_calc_nominal_field_rate()