Lines Matching refs:wm

273 					 struct rs690_watermark *wm,  in rs690_crtc_bandwidth_compute()  argument
285 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
305 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
307 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
312 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute()
315 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
317 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rs690_crtc_bandwidth_compute()
342 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute()
360 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute()
361 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute()
407 if (dfixed_trunc(wm->num_line_pair) > 1) { in rs690_crtc_bandwidth_compute()
409 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
410 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
413 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
414 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
427 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) { in rs690_crtc_bandwidth_compute()
430 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2); in rs690_crtc_bandwidth_compute()
436 wm->dbpp.full = dfixed_const(4 * 8); in rs690_crtc_bandwidth_compute()
442 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
443 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rs690_crtc_bandwidth_compute()
444 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rs690_crtc_bandwidth_compute()
447 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full; in rs690_crtc_bandwidth_compute()
450 wm->priority_mark.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
453 wm->priority_mark.full = dfixed_div(estimated_width, a); in rs690_crtc_bandwidth_compute()
454 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rs690_crtc_bandwidth_compute()
455 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full; in rs690_crtc_bandwidth_compute()