Lines Matching refs:wm

925 					 struct rv515_watermark *wm,  in rv515_crtc_bandwidth_compute()  argument
937 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute()
954 wm->num_line_pair.full = dfixed_const(2); in rv515_crtc_bandwidth_compute()
956 wm->num_line_pair.full = dfixed_const(1); in rv515_crtc_bandwidth_compute()
961 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rv515_crtc_bandwidth_compute()
964 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute()
966 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rv515_crtc_bandwidth_compute()
991 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rv515_crtc_bandwidth_compute()
1009 wm->active_time.full = dfixed_mul(line_time, b); in rv515_crtc_bandwidth_compute()
1010 wm->active_time.full = dfixed_div(wm->active_time, a); in rv515_crtc_bandwidth_compute()
1029 if (dfixed_trunc(wm->num_line_pair) > 1) { in rv515_crtc_bandwidth_compute()
1031 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rv515_crtc_bandwidth_compute()
1032 wm->worst_case_latency.full += read_delay_latency.full; in rv515_crtc_bandwidth_compute()
1034 wm->worst_case_latency.full = chunk_time.full + read_delay_latency.full; in rv515_crtc_bandwidth_compute()
1047 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) { in rv515_crtc_bandwidth_compute()
1050 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2); in rv515_crtc_bandwidth_compute()
1056 wm->dbpp.full = dfixed_const(2 * 16); in rv515_crtc_bandwidth_compute()
1062 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1063 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rv515_crtc_bandwidth_compute()
1064 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rv515_crtc_bandwidth_compute()
1067 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full; in rv515_crtc_bandwidth_compute()
1070 wm->priority_mark.full = wm->priority_mark_max.full; in rv515_crtc_bandwidth_compute()
1073 wm->priority_mark.full = dfixed_div(estimated_width, a); in rv515_crtc_bandwidth_compute()
1074 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rv515_crtc_bandwidth_compute()
1075 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full; in rv515_crtc_bandwidth_compute()