Lines Matching defs:wm
885 struct rv515_watermark *wm)
894 wm->lb_request_fifo_depth = 4;
899 wm->num_line_pair.full = dfixed_const(2);
901 wm->num_line_pair.full = dfixed_const(1);
906 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair);
909 wm->lb_request_fifo_depth = 4;
911 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth);
936 wm->consumption_rate.full = dfixed_div(a, consumption_time);
954 wm->active_time.full = dfixed_mul(line_time, b);
955 wm->active_time.full = dfixed_div(wm->active_time, a);
974 if (dfixed_trunc(wm->num_line_pair) > 1) {
976 wm->worst_case_latency.full = dfixed_mul(a, chunk_time);
977 wm->worst_case_latency.full += read_delay_latency.full;
979 wm->worst_case_latency.full = chunk_time.full + read_delay_latency.full;
992 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) {
995 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2);
1001 wm->dbpp.full = dfixed_const(2 * 16);
1007 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
1008 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a);
1009 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max);
1012 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full;
1015 wm->priority_mark.full = wm->priority_mark_max.full;
1018 wm->priority_mark.full = dfixed_div(estimated_width, a);
1019 wm->priority_mark.full = dfixed_ceil(wm->priority_mark);
1020 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full;