Lines Matching refs:wm
274 struct rs690_watermark *wm, in rs690_crtc_bandwidth_compute() argument
286 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
306 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
308 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
313 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute()
316 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
318 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rs690_crtc_bandwidth_compute()
343 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute()
361 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute()
362 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute()
408 if (dfixed_trunc(wm->num_line_pair) > 1) { in rs690_crtc_bandwidth_compute()
410 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
411 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
414 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
415 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
428 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) { in rs690_crtc_bandwidth_compute()
431 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2); in rs690_crtc_bandwidth_compute()
437 wm->dbpp.full = dfixed_const(4 * 8); in rs690_crtc_bandwidth_compute()
443 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
444 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rs690_crtc_bandwidth_compute()
445 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rs690_crtc_bandwidth_compute()
448 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full; in rs690_crtc_bandwidth_compute()
451 wm->priority_mark.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
454 wm->priority_mark.full = dfixed_div(estimated_width, a); in rs690_crtc_bandwidth_compute()
455 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rs690_crtc_bandwidth_compute()
456 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full; in rs690_crtc_bandwidth_compute()