Lines Matching refs:watermarks

149 		struct dcn_watermark_set *watermarks,  in hubbub32_program_urgent_watermarks()  argument
159 if (safe_to_lower || watermarks->a.urgent_ns > hubbub2->watermarks.a.urgent_ns) { in hubbub32_program_urgent_watermarks()
160 hubbub2->watermarks.a.urgent_ns = watermarks->a.urgent_ns; in hubbub32_program_urgent_watermarks()
161 prog_wm_value = convert_and_clamp(watermarks->a.urgent_ns, in hubbub32_program_urgent_watermarks()
168 watermarks->a.urgent_ns, prog_wm_value); in hubbub32_program_urgent_watermarks()
169 } else if (watermarks->a.urgent_ns < hubbub2->watermarks.a.urgent_ns) in hubbub32_program_urgent_watermarks()
173 if (safe_to_lower || watermarks->a.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
174 > hubbub2->watermarks.a.frac_urg_bw_flip) { in hubbub32_program_urgent_watermarks()
175 hubbub2->watermarks.a.frac_urg_bw_flip = watermarks->a.frac_urg_bw_flip; in hubbub32_program_urgent_watermarks()
178 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_A, watermarks->a.frac_urg_bw_flip); in hubbub32_program_urgent_watermarks()
179 } else if (watermarks->a.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
180 < hubbub2->watermarks.a.frac_urg_bw_flip) in hubbub32_program_urgent_watermarks()
183 if (safe_to_lower || watermarks->a.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
184 > hubbub2->watermarks.a.frac_urg_bw_nom) { in hubbub32_program_urgent_watermarks()
185 hubbub2->watermarks.a.frac_urg_bw_nom = watermarks->a.frac_urg_bw_nom; in hubbub32_program_urgent_watermarks()
188 DCHUBBUB_ARB_FRAC_URG_BW_NOM_A, watermarks->a.frac_urg_bw_nom); in hubbub32_program_urgent_watermarks()
189 } else if (watermarks->a.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
190 < hubbub2->watermarks.a.frac_urg_bw_nom) in hubbub32_program_urgent_watermarks()
193 if (safe_to_lower || watermarks->a.urgent_latency_ns > hubbub2->watermarks.a.urgent_latency_ns) { in hubbub32_program_urgent_watermarks()
194 hubbub2->watermarks.a.urgent_latency_ns = watermarks->a.urgent_latency_ns; in hubbub32_program_urgent_watermarks()
195 prog_wm_value = convert_and_clamp(watermarks->a.urgent_latency_ns, in hubbub32_program_urgent_watermarks()
199 } else if (watermarks->a.urgent_latency_ns < hubbub2->watermarks.a.urgent_latency_ns) in hubbub32_program_urgent_watermarks()
203 if (safe_to_lower || watermarks->b.urgent_ns > hubbub2->watermarks.b.urgent_ns) { in hubbub32_program_urgent_watermarks()
204 hubbub2->watermarks.b.urgent_ns = watermarks->b.urgent_ns; in hubbub32_program_urgent_watermarks()
205 prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns, in hubbub32_program_urgent_watermarks()
212 watermarks->b.urgent_ns, prog_wm_value); in hubbub32_program_urgent_watermarks()
213 } else if (watermarks->b.urgent_ns < hubbub2->watermarks.b.urgent_ns) in hubbub32_program_urgent_watermarks()
217 if (safe_to_lower || watermarks->b.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
218 > hubbub2->watermarks.b.frac_urg_bw_flip) { in hubbub32_program_urgent_watermarks()
219 hubbub2->watermarks.b.frac_urg_bw_flip = watermarks->b.frac_urg_bw_flip; in hubbub32_program_urgent_watermarks()
222 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B, watermarks->b.frac_urg_bw_flip); in hubbub32_program_urgent_watermarks()
223 } else if (watermarks->b.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
224 < hubbub2->watermarks.b.frac_urg_bw_flip) in hubbub32_program_urgent_watermarks()
227 if (safe_to_lower || watermarks->b.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
228 > hubbub2->watermarks.b.frac_urg_bw_nom) { in hubbub32_program_urgent_watermarks()
229 hubbub2->watermarks.b.frac_urg_bw_nom = watermarks->b.frac_urg_bw_nom; in hubbub32_program_urgent_watermarks()
232 DCHUBBUB_ARB_FRAC_URG_BW_NOM_B, watermarks->b.frac_urg_bw_nom); in hubbub32_program_urgent_watermarks()
233 } else if (watermarks->b.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
234 < hubbub2->watermarks.b.frac_urg_bw_nom) in hubbub32_program_urgent_watermarks()
237 if (safe_to_lower || watermarks->b.urgent_latency_ns > hubbub2->watermarks.b.urgent_latency_ns) { in hubbub32_program_urgent_watermarks()
238 hubbub2->watermarks.b.urgent_latency_ns = watermarks->b.urgent_latency_ns; in hubbub32_program_urgent_watermarks()
239 prog_wm_value = convert_and_clamp(watermarks->b.urgent_latency_ns, in hubbub32_program_urgent_watermarks()
243 } else if (watermarks->b.urgent_latency_ns < hubbub2->watermarks.b.urgent_latency_ns) in hubbub32_program_urgent_watermarks()
247 if (safe_to_lower || watermarks->c.urgent_ns > hubbub2->watermarks.c.urgent_ns) { in hubbub32_program_urgent_watermarks()
248 hubbub2->watermarks.c.urgent_ns = watermarks->c.urgent_ns; in hubbub32_program_urgent_watermarks()
249 prog_wm_value = convert_and_clamp(watermarks->c.urgent_ns, in hubbub32_program_urgent_watermarks()
256 watermarks->c.urgent_ns, prog_wm_value); in hubbub32_program_urgent_watermarks()
257 } else if (watermarks->c.urgent_ns < hubbub2->watermarks.c.urgent_ns) in hubbub32_program_urgent_watermarks()
261 if (safe_to_lower || watermarks->c.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
262 > hubbub2->watermarks.c.frac_urg_bw_flip) { in hubbub32_program_urgent_watermarks()
263 hubbub2->watermarks.c.frac_urg_bw_flip = watermarks->c.frac_urg_bw_flip; in hubbub32_program_urgent_watermarks()
266 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_C, watermarks->c.frac_urg_bw_flip); in hubbub32_program_urgent_watermarks()
267 } else if (watermarks->c.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
268 < hubbub2->watermarks.c.frac_urg_bw_flip) in hubbub32_program_urgent_watermarks()
271 if (safe_to_lower || watermarks->c.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
272 > hubbub2->watermarks.c.frac_urg_bw_nom) { in hubbub32_program_urgent_watermarks()
273 hubbub2->watermarks.c.frac_urg_bw_nom = watermarks->c.frac_urg_bw_nom; in hubbub32_program_urgent_watermarks()
276 DCHUBBUB_ARB_FRAC_URG_BW_NOM_C, watermarks->c.frac_urg_bw_nom); in hubbub32_program_urgent_watermarks()
277 } else if (watermarks->c.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
278 < hubbub2->watermarks.c.frac_urg_bw_nom) in hubbub32_program_urgent_watermarks()
281 if (safe_to_lower || watermarks->c.urgent_latency_ns > hubbub2->watermarks.c.urgent_latency_ns) { in hubbub32_program_urgent_watermarks()
282 hubbub2->watermarks.c.urgent_latency_ns = watermarks->c.urgent_latency_ns; in hubbub32_program_urgent_watermarks()
283 prog_wm_value = convert_and_clamp(watermarks->c.urgent_latency_ns, in hubbub32_program_urgent_watermarks()
287 } else if (watermarks->c.urgent_latency_ns < hubbub2->watermarks.c.urgent_latency_ns) in hubbub32_program_urgent_watermarks()
291 if (safe_to_lower || watermarks->d.urgent_ns > hubbub2->watermarks.d.urgent_ns) { in hubbub32_program_urgent_watermarks()
292 hubbub2->watermarks.d.urgent_ns = watermarks->d.urgent_ns; in hubbub32_program_urgent_watermarks()
293 prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns, in hubbub32_program_urgent_watermarks()
300 watermarks->d.urgent_ns, prog_wm_value); in hubbub32_program_urgent_watermarks()
301 } else if (watermarks->d.urgent_ns < hubbub2->watermarks.d.urgent_ns) in hubbub32_program_urgent_watermarks()
305 if (safe_to_lower || watermarks->d.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
306 > hubbub2->watermarks.d.frac_urg_bw_flip) { in hubbub32_program_urgent_watermarks()
307 hubbub2->watermarks.d.frac_urg_bw_flip = watermarks->d.frac_urg_bw_flip; in hubbub32_program_urgent_watermarks()
310 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_D, watermarks->d.frac_urg_bw_flip); in hubbub32_program_urgent_watermarks()
311 } else if (watermarks->d.frac_urg_bw_flip in hubbub32_program_urgent_watermarks()
312 < hubbub2->watermarks.d.frac_urg_bw_flip) in hubbub32_program_urgent_watermarks()
315 if (safe_to_lower || watermarks->d.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
316 > hubbub2->watermarks.d.frac_urg_bw_nom) { in hubbub32_program_urgent_watermarks()
317 hubbub2->watermarks.d.frac_urg_bw_nom = watermarks->d.frac_urg_bw_nom; in hubbub32_program_urgent_watermarks()
320 DCHUBBUB_ARB_FRAC_URG_BW_NOM_D, watermarks->d.frac_urg_bw_nom); in hubbub32_program_urgent_watermarks()
321 } else if (watermarks->d.frac_urg_bw_nom in hubbub32_program_urgent_watermarks()
322 < hubbub2->watermarks.d.frac_urg_bw_nom) in hubbub32_program_urgent_watermarks()
325 if (safe_to_lower || watermarks->d.urgent_latency_ns > hubbub2->watermarks.d.urgent_latency_ns) { in hubbub32_program_urgent_watermarks()
326 hubbub2->watermarks.d.urgent_latency_ns = watermarks->d.urgent_latency_ns; in hubbub32_program_urgent_watermarks()
327 prog_wm_value = convert_and_clamp(watermarks->d.urgent_latency_ns, in hubbub32_program_urgent_watermarks()
331 } else if (watermarks->d.urgent_latency_ns < hubbub2->watermarks.d.urgent_latency_ns) in hubbub32_program_urgent_watermarks()
339 struct dcn_watermark_set *watermarks, in hubbub32_program_stutter_watermarks() argument
348 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
349 > hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub32_program_stutter_watermarks()
350 hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub32_program_stutter_watermarks()
351 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub32_program_stutter_watermarks()
353 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub32_program_stutter_watermarks()
359 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
360 } else if (watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
361 < hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub32_program_stutter_watermarks()
364 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
365 > hubbub2->watermarks.a.cstate_pstate.cstate_exit_ns) { in hubbub32_program_stutter_watermarks()
366 hubbub2->watermarks.a.cstate_pstate.cstate_exit_ns = in hubbub32_program_stutter_watermarks()
367 watermarks->a.cstate_pstate.cstate_exit_ns; in hubbub32_program_stutter_watermarks()
369 watermarks->a.cstate_pstate.cstate_exit_ns, in hubbub32_program_stutter_watermarks()
375 watermarks->a.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
376 } else if (watermarks->a.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
377 < hubbub2->watermarks.a.cstate_pstate.cstate_exit_ns) in hubbub32_program_stutter_watermarks()
381 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
382 > hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub32_program_stutter_watermarks()
383 hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub32_program_stutter_watermarks()
384 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub32_program_stutter_watermarks()
386 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub32_program_stutter_watermarks()
392 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
393 } else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
394 < hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub32_program_stutter_watermarks()
397 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
398 > hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns) { in hubbub32_program_stutter_watermarks()
399 hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns = in hubbub32_program_stutter_watermarks()
400 watermarks->b.cstate_pstate.cstate_exit_ns; in hubbub32_program_stutter_watermarks()
402 watermarks->b.cstate_pstate.cstate_exit_ns, in hubbub32_program_stutter_watermarks()
408 watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
409 } else if (watermarks->b.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
410 < hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns) in hubbub32_program_stutter_watermarks()
414 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
415 > hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub32_program_stutter_watermarks()
416 hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub32_program_stutter_watermarks()
417 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub32_program_stutter_watermarks()
419 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub32_program_stutter_watermarks()
425 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
426 } else if (watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
427 < hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub32_program_stutter_watermarks()
430 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
431 > hubbub2->watermarks.c.cstate_pstate.cstate_exit_ns) { in hubbub32_program_stutter_watermarks()
432 hubbub2->watermarks.c.cstate_pstate.cstate_exit_ns = in hubbub32_program_stutter_watermarks()
433 watermarks->c.cstate_pstate.cstate_exit_ns; in hubbub32_program_stutter_watermarks()
435 watermarks->c.cstate_pstate.cstate_exit_ns, in hubbub32_program_stutter_watermarks()
441 watermarks->c.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
442 } else if (watermarks->c.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
443 < hubbub2->watermarks.c.cstate_pstate.cstate_exit_ns) in hubbub32_program_stutter_watermarks()
447 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
448 > hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub32_program_stutter_watermarks()
449 hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub32_program_stutter_watermarks()
450 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub32_program_stutter_watermarks()
452 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub32_program_stutter_watermarks()
458 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
459 } else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns in hubbub32_program_stutter_watermarks()
460 < hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub32_program_stutter_watermarks()
463 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
464 > hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns) { in hubbub32_program_stutter_watermarks()
465 hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns = in hubbub32_program_stutter_watermarks()
466 watermarks->d.cstate_pstate.cstate_exit_ns; in hubbub32_program_stutter_watermarks()
468 watermarks->d.cstate_pstate.cstate_exit_ns, in hubbub32_program_stutter_watermarks()
474 watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub32_program_stutter_watermarks()
475 } else if (watermarks->d.cstate_pstate.cstate_exit_ns in hubbub32_program_stutter_watermarks()
476 < hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns) in hubbub32_program_stutter_watermarks()
485 struct dcn_watermark_set *watermarks, in hubbub32_program_pstate_watermarks() argument
496 if (safe_to_lower || watermarks->a.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
497 > hubbub2->watermarks.a.cstate_pstate.pstate_change_ns) { in hubbub32_program_pstate_watermarks()
498 hubbub2->watermarks.a.cstate_pstate.pstate_change_ns = in hubbub32_program_pstate_watermarks()
499 watermarks->a.cstate_pstate.pstate_change_ns; in hubbub32_program_pstate_watermarks()
501 watermarks->a.cstate_pstate.pstate_change_ns, in hubbub32_program_pstate_watermarks()
507 watermarks->a.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
508 } else if (watermarks->a.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
509 < hubbub2->watermarks.a.cstate_pstate.pstate_change_ns) in hubbub32_program_pstate_watermarks()
513 if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
514 > hubbub2->watermarks.b.cstate_pstate.pstate_change_ns) { in hubbub32_program_pstate_watermarks()
515 hubbub2->watermarks.b.cstate_pstate.pstate_change_ns = in hubbub32_program_pstate_watermarks()
516 watermarks->b.cstate_pstate.pstate_change_ns; in hubbub32_program_pstate_watermarks()
518 watermarks->b.cstate_pstate.pstate_change_ns, in hubbub32_program_pstate_watermarks()
524 watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
525 } else if (watermarks->b.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
526 < hubbub2->watermarks.b.cstate_pstate.pstate_change_ns) in hubbub32_program_pstate_watermarks()
530 if (safe_to_lower || watermarks->c.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
531 > hubbub2->watermarks.c.cstate_pstate.pstate_change_ns) { in hubbub32_program_pstate_watermarks()
532 hubbub2->watermarks.c.cstate_pstate.pstate_change_ns = in hubbub32_program_pstate_watermarks()
533 watermarks->c.cstate_pstate.pstate_change_ns; in hubbub32_program_pstate_watermarks()
535 watermarks->c.cstate_pstate.pstate_change_ns, in hubbub32_program_pstate_watermarks()
541 watermarks->c.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
542 } else if (watermarks->c.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
543 < hubbub2->watermarks.c.cstate_pstate.pstate_change_ns) in hubbub32_program_pstate_watermarks()
547 if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
548 > hubbub2->watermarks.d.cstate_pstate.pstate_change_ns) { in hubbub32_program_pstate_watermarks()
549 hubbub2->watermarks.d.cstate_pstate.pstate_change_ns = in hubbub32_program_pstate_watermarks()
550 watermarks->d.cstate_pstate.pstate_change_ns; in hubbub32_program_pstate_watermarks()
552 watermarks->d.cstate_pstate.pstate_change_ns, in hubbub32_program_pstate_watermarks()
558 watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
559 } else if (watermarks->d.cstate_pstate.pstate_change_ns in hubbub32_program_pstate_watermarks()
560 < hubbub2->watermarks.d.cstate_pstate.pstate_change_ns) in hubbub32_program_pstate_watermarks()
565 if (safe_to_lower || watermarks->a.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
566 > hubbub2->watermarks.a.cstate_pstate.fclk_pstate_change_ns) { in hubbub32_program_pstate_watermarks()
567 hubbub2->watermarks.a.cstate_pstate.fclk_pstate_change_ns = in hubbub32_program_pstate_watermarks()
568 watermarks->a.cstate_pstate.fclk_pstate_change_ns; in hubbub32_program_pstate_watermarks()
570 watermarks->a.cstate_pstate.fclk_pstate_change_ns, in hubbub32_program_pstate_watermarks()
576 watermarks->a.cstate_pstate.fclk_pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
577 } else if (watermarks->a.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
578 < hubbub2->watermarks.a.cstate_pstate.fclk_pstate_change_ns) in hubbub32_program_pstate_watermarks()
582 if (safe_to_lower || watermarks->b.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
583 > hubbub2->watermarks.b.cstate_pstate.fclk_pstate_change_ns) { in hubbub32_program_pstate_watermarks()
584 hubbub2->watermarks.b.cstate_pstate.fclk_pstate_change_ns = in hubbub32_program_pstate_watermarks()
585 watermarks->b.cstate_pstate.fclk_pstate_change_ns; in hubbub32_program_pstate_watermarks()
587 watermarks->b.cstate_pstate.fclk_pstate_change_ns, in hubbub32_program_pstate_watermarks()
593 watermarks->b.cstate_pstate.fclk_pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
594 } else if (watermarks->b.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
595 < hubbub2->watermarks.b.cstate_pstate.fclk_pstate_change_ns) in hubbub32_program_pstate_watermarks()
599 if (safe_to_lower || watermarks->c.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
600 > hubbub2->watermarks.c.cstate_pstate.fclk_pstate_change_ns) { in hubbub32_program_pstate_watermarks()
601 hubbub2->watermarks.c.cstate_pstate.fclk_pstate_change_ns = in hubbub32_program_pstate_watermarks()
602 watermarks->c.cstate_pstate.fclk_pstate_change_ns; in hubbub32_program_pstate_watermarks()
604 watermarks->c.cstate_pstate.fclk_pstate_change_ns, in hubbub32_program_pstate_watermarks()
610 watermarks->c.cstate_pstate.fclk_pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
611 } else if (watermarks->c.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
612 < hubbub2->watermarks.c.cstate_pstate.fclk_pstate_change_ns) in hubbub32_program_pstate_watermarks()
616 if (safe_to_lower || watermarks->d.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
617 > hubbub2->watermarks.d.cstate_pstate.fclk_pstate_change_ns) { in hubbub32_program_pstate_watermarks()
618 hubbub2->watermarks.d.cstate_pstate.fclk_pstate_change_ns = in hubbub32_program_pstate_watermarks()
619 watermarks->d.cstate_pstate.fclk_pstate_change_ns; in hubbub32_program_pstate_watermarks()
621 watermarks->d.cstate_pstate.fclk_pstate_change_ns, in hubbub32_program_pstate_watermarks()
627 watermarks->d.cstate_pstate.fclk_pstate_change_ns, prog_wm_value); in hubbub32_program_pstate_watermarks()
628 } else if (watermarks->d.cstate_pstate.fclk_pstate_change_ns in hubbub32_program_pstate_watermarks()
629 < hubbub2->watermarks.d.cstate_pstate.fclk_pstate_change_ns) in hubbub32_program_pstate_watermarks()
638 struct dcn_watermark_set *watermarks, in hubbub32_program_usr_watermarks() argument
648 if (safe_to_lower || watermarks->a.usr_retraining_ns in hubbub32_program_usr_watermarks()
649 > hubbub2->watermarks.a.usr_retraining_ns) { in hubbub32_program_usr_watermarks()
650 hubbub2->watermarks.a.usr_retraining_ns = watermarks->a.usr_retraining_ns; in hubbub32_program_usr_watermarks()
652 watermarks->a.usr_retraining_ns, in hubbub32_program_usr_watermarks()
658 watermarks->a.usr_retraining_ns, prog_wm_value); in hubbub32_program_usr_watermarks()
659 } else if (watermarks->a.usr_retraining_ns in hubbub32_program_usr_watermarks()
660 < hubbub2->watermarks.a.usr_retraining_ns) in hubbub32_program_usr_watermarks()
664 if (safe_to_lower || watermarks->b.usr_retraining_ns in hubbub32_program_usr_watermarks()
665 > hubbub2->watermarks.b.usr_retraining_ns) { in hubbub32_program_usr_watermarks()
666 hubbub2->watermarks.b.usr_retraining_ns = watermarks->b.usr_retraining_ns; in hubbub32_program_usr_watermarks()
668 watermarks->b.usr_retraining_ns, in hubbub32_program_usr_watermarks()
674 watermarks->b.usr_retraining_ns, prog_wm_value); in hubbub32_program_usr_watermarks()
675 } else if (watermarks->b.usr_retraining_ns in hubbub32_program_usr_watermarks()
676 < hubbub2->watermarks.b.usr_retraining_ns) in hubbub32_program_usr_watermarks()
680 if (safe_to_lower || watermarks->c.usr_retraining_ns in hubbub32_program_usr_watermarks()
681 > hubbub2->watermarks.c.usr_retraining_ns) { in hubbub32_program_usr_watermarks()
682 hubbub2->watermarks.c.usr_retraining_ns = in hubbub32_program_usr_watermarks()
683 watermarks->c.usr_retraining_ns; in hubbub32_program_usr_watermarks()
685 watermarks->c.usr_retraining_ns, in hubbub32_program_usr_watermarks()
691 watermarks->c.usr_retraining_ns, prog_wm_value); in hubbub32_program_usr_watermarks()
692 } else if (watermarks->c.usr_retraining_ns in hubbub32_program_usr_watermarks()
693 < hubbub2->watermarks.c.usr_retraining_ns) in hubbub32_program_usr_watermarks()
697 if (safe_to_lower || watermarks->d.usr_retraining_ns in hubbub32_program_usr_watermarks()
698 > hubbub2->watermarks.d.usr_retraining_ns) { in hubbub32_program_usr_watermarks()
699 hubbub2->watermarks.d.usr_retraining_ns = in hubbub32_program_usr_watermarks()
700 watermarks->d.usr_retraining_ns; in hubbub32_program_usr_watermarks()
702 watermarks->d.usr_retraining_ns, in hubbub32_program_usr_watermarks()
708 watermarks->d.usr_retraining_ns, prog_wm_value); in hubbub32_program_usr_watermarks()
709 } else if (watermarks->d.usr_retraining_ns in hubbub32_program_usr_watermarks()
710 < hubbub2->watermarks.d.usr_retraining_ns) in hubbub32_program_usr_watermarks()
732 struct dcn_watermark_set *watermarks, in hubbub32_program_watermarks() argument
738 if (hubbub32_program_urgent_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub32_program_watermarks()
741 if (hubbub32_program_stutter_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub32_program_watermarks()
744 if (hubbub32_program_pstate_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub32_program_watermarks()
747 if (hubbub32_program_usr_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub32_program_watermarks()
920 uint32_t prog_wm_value = convert_and_clamp(hubbub2->watermarks.a.urgent_ns, in hubbub32_force_wm_propagate_to_pipes()