Lines Matching refs:wm

263 					 struct rs690_watermark *wm,  in rs690_crtc_bandwidth_compute()  argument
275 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
295 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
297 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
302 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute()
305 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
307 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rs690_crtc_bandwidth_compute()
332 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute()
350 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute()
351 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute()
397 if (dfixed_trunc(wm->num_line_pair) > 1) { in rs690_crtc_bandwidth_compute()
399 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
400 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
403 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
404 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
417 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) { in rs690_crtc_bandwidth_compute()
420 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2); in rs690_crtc_bandwidth_compute()
426 wm->dbpp.full = dfixed_const(4 * 8); in rs690_crtc_bandwidth_compute()
432 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
433 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rs690_crtc_bandwidth_compute()
434 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rs690_crtc_bandwidth_compute()
437 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full; in rs690_crtc_bandwidth_compute()
440 wm->priority_mark.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
443 wm->priority_mark.full = dfixed_div(estimated_width, a); in rs690_crtc_bandwidth_compute()
444 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rs690_crtc_bandwidth_compute()
445 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full; in rs690_crtc_bandwidth_compute()