Lines Matching refs:watermarks
245 struct dcn_watermark_set *watermarks, in hubbub1_program_urgent_watermarks() argument
255 if (safe_to_lower || watermarks->a.urgent_ns > hubbub1->watermarks.a.urgent_ns) { in hubbub1_program_urgent_watermarks()
256 hubbub1->watermarks.a.urgent_ns = watermarks->a.urgent_ns; in hubbub1_program_urgent_watermarks()
257 prog_wm_value = convert_and_clamp(watermarks->a.urgent_ns, in hubbub1_program_urgent_watermarks()
264 watermarks->a.urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
265 } else if (watermarks->a.urgent_ns < hubbub1->watermarks.a.urgent_ns) in hubbub1_program_urgent_watermarks()
268 if (safe_to_lower || watermarks->a.pte_meta_urgent_ns > hubbub1->watermarks.a.pte_meta_urgent_ns) { in hubbub1_program_urgent_watermarks()
269 hubbub1->watermarks.a.pte_meta_urgent_ns = watermarks->a.pte_meta_urgent_ns; in hubbub1_program_urgent_watermarks()
270 prog_wm_value = convert_and_clamp(watermarks->a.pte_meta_urgent_ns, in hubbub1_program_urgent_watermarks()
275 watermarks->a.pte_meta_urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
276 } else if (watermarks->a.pte_meta_urgent_ns < hubbub1->watermarks.a.pte_meta_urgent_ns) in hubbub1_program_urgent_watermarks()
280 if (safe_to_lower || watermarks->b.urgent_ns > hubbub1->watermarks.b.urgent_ns) { in hubbub1_program_urgent_watermarks()
281 hubbub1->watermarks.b.urgent_ns = watermarks->b.urgent_ns; in hubbub1_program_urgent_watermarks()
282 prog_wm_value = convert_and_clamp(watermarks->b.urgent_ns, in hubbub1_program_urgent_watermarks()
289 watermarks->b.urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
290 } else if (watermarks->b.urgent_ns < hubbub1->watermarks.b.urgent_ns) in hubbub1_program_urgent_watermarks()
293 if (safe_to_lower || watermarks->b.pte_meta_urgent_ns > hubbub1->watermarks.b.pte_meta_urgent_ns) { in hubbub1_program_urgent_watermarks()
294 hubbub1->watermarks.b.pte_meta_urgent_ns = watermarks->b.pte_meta_urgent_ns; in hubbub1_program_urgent_watermarks()
295 prog_wm_value = convert_and_clamp(watermarks->b.pte_meta_urgent_ns, in hubbub1_program_urgent_watermarks()
300 watermarks->b.pte_meta_urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
301 } else if (watermarks->b.pte_meta_urgent_ns < hubbub1->watermarks.b.pte_meta_urgent_ns) in hubbub1_program_urgent_watermarks()
305 if (safe_to_lower || watermarks->c.urgent_ns > hubbub1->watermarks.c.urgent_ns) { in hubbub1_program_urgent_watermarks()
306 hubbub1->watermarks.c.urgent_ns = watermarks->c.urgent_ns; in hubbub1_program_urgent_watermarks()
307 prog_wm_value = convert_and_clamp(watermarks->c.urgent_ns, in hubbub1_program_urgent_watermarks()
314 watermarks->c.urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
315 } else if (watermarks->c.urgent_ns < hubbub1->watermarks.c.urgent_ns) in hubbub1_program_urgent_watermarks()
318 if (safe_to_lower || watermarks->c.pte_meta_urgent_ns > hubbub1->watermarks.c.pte_meta_urgent_ns) { in hubbub1_program_urgent_watermarks()
319 hubbub1->watermarks.c.pte_meta_urgent_ns = watermarks->c.pte_meta_urgent_ns; in hubbub1_program_urgent_watermarks()
320 prog_wm_value = convert_and_clamp(watermarks->c.pte_meta_urgent_ns, in hubbub1_program_urgent_watermarks()
325 watermarks->c.pte_meta_urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
326 } else if (watermarks->c.pte_meta_urgent_ns < hubbub1->watermarks.c.pte_meta_urgent_ns) in hubbub1_program_urgent_watermarks()
330 if (safe_to_lower || watermarks->d.urgent_ns > hubbub1->watermarks.d.urgent_ns) { in hubbub1_program_urgent_watermarks()
331 hubbub1->watermarks.d.urgent_ns = watermarks->d.urgent_ns; in hubbub1_program_urgent_watermarks()
332 prog_wm_value = convert_and_clamp(watermarks->d.urgent_ns, in hubbub1_program_urgent_watermarks()
339 watermarks->d.urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
340 } else if (watermarks->d.urgent_ns < hubbub1->watermarks.d.urgent_ns) in hubbub1_program_urgent_watermarks()
343 if (safe_to_lower || watermarks->d.pte_meta_urgent_ns > hubbub1->watermarks.d.pte_meta_urgent_ns) { in hubbub1_program_urgent_watermarks()
344 hubbub1->watermarks.d.pte_meta_urgent_ns = watermarks->d.pte_meta_urgent_ns; in hubbub1_program_urgent_watermarks()
345 prog_wm_value = convert_and_clamp(watermarks->d.pte_meta_urgent_ns, in hubbub1_program_urgent_watermarks()
350 watermarks->d.pte_meta_urgent_ns, prog_wm_value); in hubbub1_program_urgent_watermarks()
351 } else if (watermarks->d.pte_meta_urgent_ns < hubbub1->watermarks.d.pte_meta_urgent_ns) in hubbub1_program_urgent_watermarks()
359 struct dcn_watermark_set *watermarks, in hubbub1_program_stutter_watermarks() argument
368 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
369 > hubbub1->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub1_program_stutter_watermarks()
370 hubbub1->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub1_program_stutter_watermarks()
371 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub1_program_stutter_watermarks()
373 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub1_program_stutter_watermarks()
379 watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
380 } else if (watermarks->a.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
381 < hubbub1->watermarks.a.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub1_program_stutter_watermarks()
384 if (safe_to_lower || watermarks->a.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
385 > hubbub1->watermarks.a.cstate_pstate.cstate_exit_ns) { in hubbub1_program_stutter_watermarks()
386 hubbub1->watermarks.a.cstate_pstate.cstate_exit_ns = in hubbub1_program_stutter_watermarks()
387 watermarks->a.cstate_pstate.cstate_exit_ns; in hubbub1_program_stutter_watermarks()
389 watermarks->a.cstate_pstate.cstate_exit_ns, in hubbub1_program_stutter_watermarks()
395 watermarks->a.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
396 } else if (watermarks->a.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
397 < hubbub1->watermarks.a.cstate_pstate.cstate_exit_ns) in hubbub1_program_stutter_watermarks()
401 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
402 > hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub1_program_stutter_watermarks()
403 hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub1_program_stutter_watermarks()
404 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub1_program_stutter_watermarks()
406 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub1_program_stutter_watermarks()
412 watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
413 } else if (watermarks->b.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
414 < hubbub1->watermarks.b.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub1_program_stutter_watermarks()
417 if (safe_to_lower || watermarks->b.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
418 > hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns) { in hubbub1_program_stutter_watermarks()
419 hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns = in hubbub1_program_stutter_watermarks()
420 watermarks->b.cstate_pstate.cstate_exit_ns; in hubbub1_program_stutter_watermarks()
422 watermarks->b.cstate_pstate.cstate_exit_ns, in hubbub1_program_stutter_watermarks()
428 watermarks->b.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
429 } else if (watermarks->b.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
430 < hubbub1->watermarks.b.cstate_pstate.cstate_exit_ns) in hubbub1_program_stutter_watermarks()
434 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
435 > hubbub1->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub1_program_stutter_watermarks()
436 hubbub1->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub1_program_stutter_watermarks()
437 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub1_program_stutter_watermarks()
439 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub1_program_stutter_watermarks()
445 watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
446 } else if (watermarks->c.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
447 < hubbub1->watermarks.c.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub1_program_stutter_watermarks()
450 if (safe_to_lower || watermarks->c.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
451 > hubbub1->watermarks.c.cstate_pstate.cstate_exit_ns) { in hubbub1_program_stutter_watermarks()
452 hubbub1->watermarks.c.cstate_pstate.cstate_exit_ns = in hubbub1_program_stutter_watermarks()
453 watermarks->c.cstate_pstate.cstate_exit_ns; in hubbub1_program_stutter_watermarks()
455 watermarks->c.cstate_pstate.cstate_exit_ns, in hubbub1_program_stutter_watermarks()
461 watermarks->c.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
462 } else if (watermarks->c.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
463 < hubbub1->watermarks.c.cstate_pstate.cstate_exit_ns) in hubbub1_program_stutter_watermarks()
467 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
468 > hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) { in hubbub1_program_stutter_watermarks()
469 hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns = in hubbub1_program_stutter_watermarks()
470 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns; in hubbub1_program_stutter_watermarks()
472 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, in hubbub1_program_stutter_watermarks()
478 watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
479 } else if (watermarks->d.cstate_pstate.cstate_enter_plus_exit_ns in hubbub1_program_stutter_watermarks()
480 < hubbub1->watermarks.d.cstate_pstate.cstate_enter_plus_exit_ns) in hubbub1_program_stutter_watermarks()
483 if (safe_to_lower || watermarks->d.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
484 > hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns) { in hubbub1_program_stutter_watermarks()
485 hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns = in hubbub1_program_stutter_watermarks()
486 watermarks->d.cstate_pstate.cstate_exit_ns; in hubbub1_program_stutter_watermarks()
488 watermarks->d.cstate_pstate.cstate_exit_ns, in hubbub1_program_stutter_watermarks()
494 watermarks->d.cstate_pstate.cstate_exit_ns, prog_wm_value); in hubbub1_program_stutter_watermarks()
495 } else if (watermarks->d.cstate_pstate.cstate_exit_ns in hubbub1_program_stutter_watermarks()
496 < hubbub1->watermarks.d.cstate_pstate.cstate_exit_ns) in hubbub1_program_stutter_watermarks()
504 struct dcn_watermark_set *watermarks, in hubbub1_program_pstate_watermarks() argument
513 if (safe_to_lower || watermarks->a.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
514 > hubbub1->watermarks.a.cstate_pstate.pstate_change_ns) { in hubbub1_program_pstate_watermarks()
515 hubbub1->watermarks.a.cstate_pstate.pstate_change_ns = in hubbub1_program_pstate_watermarks()
516 watermarks->a.cstate_pstate.pstate_change_ns; in hubbub1_program_pstate_watermarks()
518 watermarks->a.cstate_pstate.pstate_change_ns, in hubbub1_program_pstate_watermarks()
524 watermarks->a.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub1_program_pstate_watermarks()
525 } else if (watermarks->a.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
526 < hubbub1->watermarks.a.cstate_pstate.pstate_change_ns) in hubbub1_program_pstate_watermarks()
530 if (safe_to_lower || watermarks->b.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
531 > hubbub1->watermarks.b.cstate_pstate.pstate_change_ns) { in hubbub1_program_pstate_watermarks()
532 hubbub1->watermarks.b.cstate_pstate.pstate_change_ns = in hubbub1_program_pstate_watermarks()
533 watermarks->b.cstate_pstate.pstate_change_ns; in hubbub1_program_pstate_watermarks()
535 watermarks->b.cstate_pstate.pstate_change_ns, in hubbub1_program_pstate_watermarks()
541 watermarks->b.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub1_program_pstate_watermarks()
542 } else if (watermarks->b.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
543 < hubbub1->watermarks.b.cstate_pstate.pstate_change_ns) in hubbub1_program_pstate_watermarks()
547 if (safe_to_lower || watermarks->c.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
548 > hubbub1->watermarks.c.cstate_pstate.pstate_change_ns) { in hubbub1_program_pstate_watermarks()
549 hubbub1->watermarks.c.cstate_pstate.pstate_change_ns = in hubbub1_program_pstate_watermarks()
550 watermarks->c.cstate_pstate.pstate_change_ns; in hubbub1_program_pstate_watermarks()
552 watermarks->c.cstate_pstate.pstate_change_ns, in hubbub1_program_pstate_watermarks()
558 watermarks->c.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub1_program_pstate_watermarks()
559 } else if (watermarks->c.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
560 < hubbub1->watermarks.c.cstate_pstate.pstate_change_ns) in hubbub1_program_pstate_watermarks()
564 if (safe_to_lower || watermarks->d.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
565 > hubbub1->watermarks.d.cstate_pstate.pstate_change_ns) { in hubbub1_program_pstate_watermarks()
566 hubbub1->watermarks.d.cstate_pstate.pstate_change_ns = in hubbub1_program_pstate_watermarks()
567 watermarks->d.cstate_pstate.pstate_change_ns; in hubbub1_program_pstate_watermarks()
569 watermarks->d.cstate_pstate.pstate_change_ns, in hubbub1_program_pstate_watermarks()
575 watermarks->d.cstate_pstate.pstate_change_ns, prog_wm_value); in hubbub1_program_pstate_watermarks()
576 } else if (watermarks->d.cstate_pstate.pstate_change_ns in hubbub1_program_pstate_watermarks()
577 < hubbub1->watermarks.d.cstate_pstate.pstate_change_ns) in hubbub1_program_pstate_watermarks()
585 struct dcn_watermark_set *watermarks, in hubbub1_program_watermarks() argument
595 if (hubbub1_program_urgent_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub1_program_watermarks()
598 if (hubbub1_program_stutter_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub1_program_watermarks()
601 if (hubbub1_program_pstate_watermarks(hubbub, watermarks, refclk_mhz, safe_to_lower)) in hubbub1_program_watermarks()