Lines Matching refs:wm0
461 struct rs690_watermark *wm0, in rs690_compute_mode_priority() argument
475 if (dfixed_trunc(wm0->dbpp) > 64) in rs690_compute_mode_priority()
476 a.full = dfixed_mul(wm0->dbpp, wm0->num_line_pair); in rs690_compute_mode_priority()
478 a.full = wm0->num_line_pair.full; in rs690_compute_mode_priority()
484 fill_rate.full = dfixed_div(wm0->sclk, a); in rs690_compute_mode_priority()
485 if (wm0->consumption_rate.full > fill_rate.full) { in rs690_compute_mode_priority()
486 b.full = wm0->consumption_rate.full - fill_rate.full; in rs690_compute_mode_priority()
487 b.full = dfixed_mul(b, wm0->active_time); in rs690_compute_mode_priority()
488 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
489 wm0->consumption_rate); in rs690_compute_mode_priority()
494 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
495 wm0->consumption_rate); in rs690_compute_mode_priority()
513 if (wm0->priority_mark.full > priority_mark02.full) in rs690_compute_mode_priority()
514 priority_mark02.full = wm0->priority_mark.full; in rs690_compute_mode_priority()
515 if (wm0->priority_mark_max.full > priority_mark02.full) in rs690_compute_mode_priority()
516 priority_mark02.full = wm0->priority_mark_max.full; in rs690_compute_mode_priority()
528 if (dfixed_trunc(wm0->dbpp) > 64) in rs690_compute_mode_priority()
529 a.full = dfixed_mul(wm0->dbpp, wm0->num_line_pair); in rs690_compute_mode_priority()
531 a.full = wm0->num_line_pair.full; in rs690_compute_mode_priority()
532 fill_rate.full = dfixed_div(wm0->sclk, a); in rs690_compute_mode_priority()
533 if (wm0->consumption_rate.full > fill_rate.full) { in rs690_compute_mode_priority()
534 b.full = wm0->consumption_rate.full - fill_rate.full; in rs690_compute_mode_priority()
535 b.full = dfixed_mul(b, wm0->active_time); in rs690_compute_mode_priority()
536 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
537 wm0->consumption_rate); in rs690_compute_mode_priority()
542 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
543 wm0->consumption_rate); in rs690_compute_mode_priority()
547 if (wm0->priority_mark.full > priority_mark02.full) in rs690_compute_mode_priority()
548 priority_mark02.full = wm0->priority_mark.full; in rs690_compute_mode_priority()
549 if (wm0->priority_mark_max.full > priority_mark02.full) in rs690_compute_mode_priority()
550 priority_mark02.full = wm0->priority_mark_max.full; in rs690_compute_mode_priority()