Lines Matching refs:watermarks
152 struct dcn_watermark_set *watermarks, in hubbub31_program_urgent_watermarks() argument
162 if (safe_to_lower || watermarks->a.urgent_ns > hubbub2->watermarks.a.urgent_ns) { in hubbub31_program_urgent_watermarks()
163 hubbub2->watermarks.a.urgent_ns = watermarks->a.urgent_ns; in hubbub31_program_urgent_watermarks()
164 prog_wm_value = convert_and_clamp(watermarks->a.urgent_ns, in hubbub31_program_urgent_watermarks()
171 watermarks->a.urgent_ns, prog_wm_value); in hubbub31_program_urgent_watermarks()
172 } else if (watermarks->a.urgent_ns < hubbub2->watermarks.a.urgent_ns) in hubbub31_program_urgent_watermarks()
176 if (safe_to_lower || watermarks->a.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
177 > hubbub2->watermarks.a.frac_urg_bw_flip) { in hubbub31_program_urgent_watermarks()
178 hubbub2->watermarks.a.frac_urg_bw_flip = watermarks->a.frac_urg_bw_flip; in hubbub31_program_urgent_watermarks()
181 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_A, watermarks->a.frac_urg_bw_flip); in hubbub31_program_urgent_watermarks()
182 } else if (watermarks->a.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
183 < hubbub2->watermarks.a.frac_urg_bw_flip) in hubbub31_program_urgent_watermarks()
186 if (safe_to_lower || watermarks->a.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
187 > hubbub2->watermarks.a.frac_urg_bw_nom) { in hubbub31_program_urgent_watermarks()
188 hubbub2->watermarks.a.frac_urg_bw_nom = watermarks->a.frac_urg_bw_nom; in hubbub31_program_urgent_watermarks()
191 DCHUBBUB_ARB_FRAC_URG_BW_NOM_A, watermarks->a.frac_urg_bw_nom); in hubbub31_program_urgent_watermarks()
192 } else if (watermarks->a.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
193 < hubbub2->watermarks.a.frac_urg_bw_nom) in hubbub31_program_urgent_watermarks()
196 if (safe_to_lower || watermarks->a.urgent_latency_ns > hubbub2->watermarks.a.urgent_latency_ns) { in hubbub31_program_urgent_watermarks()
197 hubbub2->watermarks.a.urgent_latency_ns = watermarks->a.urgent_latency_ns; in hubbub31_program_urgent_watermarks()
198 prog_wm_value = convert_and_clamp(watermarks->a.urgent_latency_ns, in hubbub31_program_urgent_watermarks()
202 } else if (watermarks->a.urgent_latency_ns < hubbub2->watermarks.a.urgent_latency_ns) in hubbub31_program_urgent_watermarks()
206 if (safe_to_lower || watermarks->b.urgent_ns > hubbub2->watermarks.b.urgent_ns) { in hubbub31_program_urgent_watermarks()
207 hubbub2->watermarks.b.urgent_ns = watermarks->b.urgent_ns; in hubbub31_program_urgent_watermarks()
208 prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns, in hubbub31_program_urgent_watermarks()
215 watermarks->b.urgent_ns, prog_wm_value); in hubbub31_program_urgent_watermarks()
216 } else if (watermarks->b.urgent_ns < hubbub2->watermarks.b.urgent_ns) in hubbub31_program_urgent_watermarks()
220 if (safe_to_lower || watermarks->b.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
221 > hubbub2->watermarks.b.frac_urg_bw_flip) { in hubbub31_program_urgent_watermarks()
222 hubbub2->watermarks.b.frac_urg_bw_flip = watermarks->b.frac_urg_bw_flip; in hubbub31_program_urgent_watermarks()
225 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B, watermarks->b.frac_urg_bw_flip); in hubbub31_program_urgent_watermarks()
226 } else if (watermarks->b.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
227 < hubbub2->watermarks.b.frac_urg_bw_flip) in hubbub31_program_urgent_watermarks()
230 if (safe_to_lower || watermarks->b.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
231 > hubbub2->watermarks.b.frac_urg_bw_nom) { in hubbub31_program_urgent_watermarks()
232 hubbub2->watermarks.b.frac_urg_bw_nom = watermarks->b.frac_urg_bw_nom; in hubbub31_program_urgent_watermarks()
235 DCHUBBUB_ARB_FRAC_URG_BW_NOM_B, watermarks->b.frac_urg_bw_nom); in hubbub31_program_urgent_watermarks()
236 } else if (watermarks->b.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
237 < hubbub2->watermarks.b.frac_urg_bw_nom) in hubbub31_program_urgent_watermarks()
240 if (safe_to_lower || watermarks->b.urgent_latency_ns > hubbub2->watermarks.b.urgent_latency_ns) { in hubbub31_program_urgent_watermarks()
241 hubbub2->watermarks.b.urgent_latency_ns = watermarks->b.urgent_latency_ns; in hubbub31_program_urgent_watermarks()
242 prog_wm_value = convert_and_clamp(watermarks->b.urgent_latency_ns, in hubbub31_program_urgent_watermarks()
246 } else if (watermarks->b.urgent_latency_ns < hubbub2->watermarks.b.urgent_latency_ns) in hubbub31_program_urgent_watermarks()
250 if (safe_to_lower || watermarks->c.urgent_ns > hubbub2->watermarks.c.urgent_ns) { in hubbub31_program_urgent_watermarks()
251 hubbub2->watermarks.c.urgent_ns = watermarks->c.urgent_ns; in hubbub31_program_urgent_watermarks()
252 prog_wm_value = convert_and_clamp(watermarks->c.urgent_ns, in hubbub31_program_urgent_watermarks()
259 watermarks->c.urgent_ns, prog_wm_value); in hubbub31_program_urgent_watermarks()
260 } else if (watermarks->c.urgent_ns < hubbub2->watermarks.c.urgent_ns) in hubbub31_program_urgent_watermarks()
264 if (safe_to_lower || watermarks->c.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
265 > hubbub2->watermarks.c.frac_urg_bw_flip) { in hubbub31_program_urgent_watermarks()
266 hubbub2->watermarks.c.frac_urg_bw_flip = watermarks->c.frac_urg_bw_flip; in hubbub31_program_urgent_watermarks()
269 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_C, watermarks->c.frac_urg_bw_flip); in hubbub31_program_urgent_watermarks()
270 } else if (watermarks->c.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
271 < hubbub2->watermarks.c.frac_urg_bw_flip) in hubbub31_program_urgent_watermarks()
274 if (safe_to_lower || watermarks->c.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
275 > hubbub2->watermarks.c.frac_urg_bw_nom) { in hubbub31_program_urgent_watermarks()
276 hubbub2->watermarks.c.frac_urg_bw_nom = watermarks->c.frac_urg_bw_nom; in hubbub31_program_urgent_watermarks()
279 DCHUBBUB_ARB_FRAC_URG_BW_NOM_C, watermarks->c.frac_urg_bw_nom); in hubbub31_program_urgent_watermarks()
280 } else if (watermarks->c.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
281 < hubbub2->watermarks.c.frac_urg_bw_nom) in hubbub31_program_urgent_watermarks()
284 if (safe_to_lower || watermarks->c.urgent_latency_ns > hubbub2->watermarks.c.urgent_latency_ns) { in hubbub31_program_urgent_watermarks()
285 hubbub2->watermarks.c.urgent_latency_ns = watermarks->c.urgent_latency_ns; in hubbub31_program_urgent_watermarks()
286 prog_wm_value = convert_and_clamp(watermarks->c.urgent_latency_ns, in hubbub31_program_urgent_watermarks()
290 } else if (watermarks->c.urgent_latency_ns < hubbub2->watermarks.c.urgent_latency_ns) in hubbub31_program_urgent_watermarks()
294 if (safe_to_lower || watermarks->d.urgent_ns > hubbub2->watermarks.d.urgent_ns) { in hubbub31_program_urgent_watermarks()
295 hubbub2->watermarks.d.urgent_ns = watermarks->d.urgent_ns; in hubbub31_program_urgent_watermarks()
296 prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns, in hubbub31_program_urgent_watermarks()
303 watermarks->d.urgent_ns, prog_wm_value); in hubbub31_program_urgent_watermarks()
304 } else if (watermarks->d.urgent_ns < hubbub2->watermarks.d.urgent_ns) in hubbub31_program_urgent_watermarks()
308 if (safe_to_lower || watermarks->d.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
309 > hubbub2->watermarks.d.frac_urg_bw_flip) { in hubbub31_program_urgent_watermarks()
310 hubbub2->watermarks.d.frac_urg_bw_flip = watermarks->d.frac_urg_bw_flip; in hubbub31_program_urgent_watermarks()
313 DCHUBBUB_ARB_FRAC_URG_BW_FLIP_D, watermarks->d.frac_urg_bw_flip); in hubbub31_program_urgent_watermarks()
314 } else if (watermarks->d.frac_urg_bw_flip in hubbub31_program_urgent_watermarks()
315 < hubbub2->watermarks.d.frac_urg_bw_flip) in hubbub31_program_urgent_watermarks()
318 if (safe_to_lower || watermarks->d.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
319 > hubbub2->watermarks.d.frac_urg_bw_nom) { in hubbub31_program_urgent_watermarks()
320 hubbub2->watermarks.d.frac_urg_bw_nom = watermarks->d.frac_urg_bw_nom; in hubbub31_program_urgent_watermarks()
323 DCHUBBUB_ARB_FRAC_URG_BW_NOM_D, watermarks->d.frac_urg_bw_nom); in hubbub31_program_urgent_watermarks()
324 } else if (watermarks->d.frac_urg_bw_nom in hubbub31_program_urgent_watermarks()
325 < hubbub2->watermarks.d.frac_urg_bw_nom) in hubbub31_program_urgent_watermarks()
328 if (safe_to_lower || watermarks->d.urgent_latency_ns > hubbub2->watermarks.d.urgent_latency_ns) { in hubbub31_program_urgent_watermarks()
329 hubbub2->watermarks.d.urgent_latency_ns = watermarks->d.urgent_latency_ns; in hubbub31_program_urgent_watermarks()
330 prog_wm_value = convert_and_clamp(watermarks->d.urgent_latency_ns, in hubbub31_program_urgent_watermarks()
334 } else if (watermarks->d.urgent_latency_ns < hubbub2->watermarks.d.urgent_latency_ns) in hubbub31_program_urgent_watermarks()
342 struct dcn_watermark_set *watermarks, in hubbub31_program_stutter_watermarks() argument
351 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
352 > hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub31_program_stutter_watermarks()
353 hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub31_program_stutter_watermarks()
354 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub31_program_stutter_watermarks()
356 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub31_program_stutter_watermarks()
362 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
363 } else if (watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
364 < hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub31_program_stutter_watermarks()
367 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
368 > hubbub2->watermarks.a.cstate_pstate.cstate_exit_ns) { in hubbub31_program_stutter_watermarks()
369 hubbub2->watermarks.a.cstate_pstate.cstate_exit_ns = in hubbub31_program_stutter_watermarks()
370 watermarks->a.cstate_pstate.cstate_exit_ns; in hubbub31_program_stutter_watermarks()
372 watermarks->a.cstate_pstate.cstate_exit_ns, in hubbub31_program_stutter_watermarks()
378 watermarks->a.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
379 } else if (watermarks->a.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
380 < hubbub2->watermarks.a.cstate_pstate.cstate_exit_ns) in hubbub31_program_stutter_watermarks()
383 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
384 > hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
385 hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_z8_ns = in hubbub31_program_stutter_watermarks()
386 watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns; in hubbub31_program_stutter_watermarks()
388 watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns, in hubbub31_program_stutter_watermarks()
394 watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
395 } else if (watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
396 < hubbub2->watermarks.a.cstate_pstate.cstate_enter_plus_exit_z8_ns) in hubbub31_program_stutter_watermarks()
399 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
400 > hubbub2->watermarks.a.cstate_pstate.cstate_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
401 hubbub2->watermarks.a.cstate_pstate.cstate_exit_z8_ns = in hubbub31_program_stutter_watermarks()
402 watermarks->a.cstate_pstate.cstate_exit_z8_ns; in hubbub31_program_stutter_watermarks()
404 watermarks->a.cstate_pstate.cstate_exit_z8_ns, in hubbub31_program_stutter_watermarks()
410 watermarks->a.cstate_pstate.cstate_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
411 } else if (watermarks->a.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
412 < hubbub2->watermarks.a.cstate_pstate.cstate_exit_z8_ns) in hubbub31_program_stutter_watermarks()
416 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
417 > hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub31_program_stutter_watermarks()
418 hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub31_program_stutter_watermarks()
419 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub31_program_stutter_watermarks()
421 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub31_program_stutter_watermarks()
427 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
428 } else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
429 < hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub31_program_stutter_watermarks()
432 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
433 > hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns) { in hubbub31_program_stutter_watermarks()
434 hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns = in hubbub31_program_stutter_watermarks()
435 watermarks->b.cstate_pstate.cstate_exit_ns; in hubbub31_program_stutter_watermarks()
437 watermarks->b.cstate_pstate.cstate_exit_ns, in hubbub31_program_stutter_watermarks()
443 watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
444 } else if (watermarks->b.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
445 < hubbub2->watermarks.b.cstate_pstate.cstate_exit_ns) in hubbub31_program_stutter_watermarks()
448 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
449 > hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
450 hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns = in hubbub31_program_stutter_watermarks()
451 watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns; in hubbub31_program_stutter_watermarks()
453 watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns, in hubbub31_program_stutter_watermarks()
459 watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
460 } else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
461 < hubbub2->watermarks.b.cstate_pstate.cstate_enter_plus_exit_z8_ns) in hubbub31_program_stutter_watermarks()
464 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
465 > hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
466 hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns = in hubbub31_program_stutter_watermarks()
467 watermarks->b.cstate_pstate.cstate_exit_z8_ns; in hubbub31_program_stutter_watermarks()
469 watermarks->b.cstate_pstate.cstate_exit_z8_ns, in hubbub31_program_stutter_watermarks()
475 watermarks->b.cstate_pstate.cstate_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
476 } else if (watermarks->b.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
477 < hubbub2->watermarks.b.cstate_pstate.cstate_exit_z8_ns) in hubbub31_program_stutter_watermarks()
481 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
482 > hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub31_program_stutter_watermarks()
483 hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub31_program_stutter_watermarks()
484 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub31_program_stutter_watermarks()
486 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub31_program_stutter_watermarks()
492 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
493 } else if (watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
494 < hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub31_program_stutter_watermarks()
497 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
498 > hubbub2->watermarks.c.cstate_pstate.cstate_exit_ns) { in hubbub31_program_stutter_watermarks()
499 hubbub2->watermarks.c.cstate_pstate.cstate_exit_ns = in hubbub31_program_stutter_watermarks()
500 watermarks->c.cstate_pstate.cstate_exit_ns; in hubbub31_program_stutter_watermarks()
502 watermarks->c.cstate_pstate.cstate_exit_ns, in hubbub31_program_stutter_watermarks()
508 watermarks->c.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
509 } else if (watermarks->c.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
510 < hubbub2->watermarks.c.cstate_pstate.cstate_exit_ns) in hubbub31_program_stutter_watermarks()
513 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
514 > hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
515 hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_z8_ns = in hubbub31_program_stutter_watermarks()
516 watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns; in hubbub31_program_stutter_watermarks()
518 watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns, in hubbub31_program_stutter_watermarks()
524 watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
525 } else if (watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
526 < hubbub2->watermarks.c.cstate_pstate.cstate_enter_plus_exit_z8_ns) in hubbub31_program_stutter_watermarks()
529 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
530 > hubbub2->watermarks.c.cstate_pstate.cstate_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
531 hubbub2->watermarks.c.cstate_pstate.cstate_exit_z8_ns = in hubbub31_program_stutter_watermarks()
532 watermarks->c.cstate_pstate.cstate_exit_z8_ns; in hubbub31_program_stutter_watermarks()
534 watermarks->c.cstate_pstate.cstate_exit_z8_ns, in hubbub31_program_stutter_watermarks()
540 watermarks->c.cstate_pstate.cstate_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
541 } else if (watermarks->c.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
542 < hubbub2->watermarks.c.cstate_pstate.cstate_exit_z8_ns) in hubbub31_program_stutter_watermarks()
546 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
547 > hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub31_program_stutter_watermarks()
548 hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub31_program_stutter_watermarks()
549 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub31_program_stutter_watermarks()
551 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub31_program_stutter_watermarks()
557 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
558 } else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns in hubbub31_program_stutter_watermarks()
559 < hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub31_program_stutter_watermarks()
562 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
563 > hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns) { in hubbub31_program_stutter_watermarks()
564 hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns = in hubbub31_program_stutter_watermarks()
565 watermarks->d.cstate_pstate.cstate_exit_ns; in hubbub31_program_stutter_watermarks()
567 watermarks->d.cstate_pstate.cstate_exit_ns, in hubbub31_program_stutter_watermarks()
573 watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
574 } else if (watermarks->d.cstate_pstate.cstate_exit_ns in hubbub31_program_stutter_watermarks()
575 < hubbub2->watermarks.d.cstate_pstate.cstate_exit_ns) in hubbub31_program_stutter_watermarks()
578 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
579 > hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
580 hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns = in hubbub31_program_stutter_watermarks()
581 watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns; in hubbub31_program_stutter_watermarks()
583 watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns, in hubbub31_program_stutter_watermarks()
589 watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
590 } else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns in hubbub31_program_stutter_watermarks()
591 < hubbub2->watermarks.d.cstate_pstate.cstate_enter_plus_exit_z8_ns) in hubbub31_program_stutter_watermarks()
594 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
595 > hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns) { in hubbub31_program_stutter_watermarks()
596 hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns = in hubbub31_program_stutter_watermarks()
597 watermarks->d.cstate_pstate.cstate_exit_z8_ns; in hubbub31_program_stutter_watermarks()
599 watermarks->d.cstate_pstate.cstate_exit_z8_ns, in hubbub31_program_stutter_watermarks()
605 watermarks->d.cstate_pstate.cstate_exit_z8_ns, prog_wm_value); in hubbub31_program_stutter_watermarks()
606 } else if (watermarks->d.cstate_pstate.cstate_exit_z8_ns in hubbub31_program_stutter_watermarks()
607 < hubbub2->watermarks.d.cstate_pstate.cstate_exit_z8_ns) in hubbub31_program_stutter_watermarks()
615 struct dcn_watermark_set *watermarks, in hubbub31_program_pstate_watermarks() argument
625 if (safe_to_lower || watermarks->a.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
626 > hubbub2->watermarks.a.cstate_pstate.pstate_change_ns) { in hubbub31_program_pstate_watermarks()
627 hubbub2->watermarks.a.cstate_pstate.pstate_change_ns = in hubbub31_program_pstate_watermarks()
628 watermarks->a.cstate_pstate.pstate_change_ns; in hubbub31_program_pstate_watermarks()
630 watermarks->a.cstate_pstate.pstate_change_ns, in hubbub31_program_pstate_watermarks()
636 watermarks->a.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub31_program_pstate_watermarks()
637 } else if (watermarks->a.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
638 < hubbub2->watermarks.a.cstate_pstate.pstate_change_ns) in hubbub31_program_pstate_watermarks()
642 if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
643 > hubbub2->watermarks.b.cstate_pstate.pstate_change_ns) { in hubbub31_program_pstate_watermarks()
644 hubbub2->watermarks.b.cstate_pstate.pstate_change_ns = in hubbub31_program_pstate_watermarks()
645 watermarks->b.cstate_pstate.pstate_change_ns; in hubbub31_program_pstate_watermarks()
647 watermarks->b.cstate_pstate.pstate_change_ns, in hubbub31_program_pstate_watermarks()
653 watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub31_program_pstate_watermarks()
654 } else if (watermarks->b.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
655 < hubbub2->watermarks.b.cstate_pstate.pstate_change_ns) in hubbub31_program_pstate_watermarks()
659 if (safe_to_lower || watermarks->c.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
660 > hubbub2->watermarks.c.cstate_pstate.pstate_change_ns) { in hubbub31_program_pstate_watermarks()
661 hubbub2->watermarks.c.cstate_pstate.pstate_change_ns = in hubbub31_program_pstate_watermarks()
662 watermarks->c.cstate_pstate.pstate_change_ns; in hubbub31_program_pstate_watermarks()
664 watermarks->c.cstate_pstate.pstate_change_ns, in hubbub31_program_pstate_watermarks()
670 watermarks->c.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub31_program_pstate_watermarks()
671 } else if (watermarks->c.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
672 < hubbub2->watermarks.c.cstate_pstate.pstate_change_ns) in hubbub31_program_pstate_watermarks()
676 if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
677 > hubbub2->watermarks.d.cstate_pstate.pstate_change_ns) { in hubbub31_program_pstate_watermarks()
678 hubbub2->watermarks.d.cstate_pstate.pstate_change_ns = in hubbub31_program_pstate_watermarks()
679 watermarks->d.cstate_pstate.pstate_change_ns; in hubbub31_program_pstate_watermarks()
681 watermarks->d.cstate_pstate.pstate_change_ns, in hubbub31_program_pstate_watermarks()
687 watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub31_program_pstate_watermarks()
688 } else if (watermarks->d.cstate_pstate.pstate_change_ns in hubbub31_program_pstate_watermarks()
689 < hubbub2->watermarks.d.cstate_pstate.pstate_change_ns) in hubbub31_program_pstate_watermarks()
697 struct dcn_watermark_set *watermarks, in hubbub31_program_watermarks() argument
703 if (hubbub31_program_urgent_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub31_program_watermarks()
706 if (hubbub31_program_stutter_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub31_program_watermarks()
709 if (hubbub31_program_pstate_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub31_program_watermarks()