Lines Matching refs:wm
942 struct rv515_watermark *wm)
951 wm->lb_request_fifo_depth = 4;
956 wm->num_line_pair.full = dfixed_const(2);
958 wm->num_line_pair.full = dfixed_const(1);
963 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair);
966 wm->lb_request_fifo_depth = 4;
968 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth);
993 wm->consumption_rate.full = dfixed_div(a, consumption_time);
1011 wm->active_time.full = dfixed_mul(line_time, b);
1012 wm->active_time.full = dfixed_div(wm->active_time, a);
1031 if (dfixed_trunc(wm->num_line_pair) > 1) {
1033 wm->worst_case_latency.full = dfixed_mul(a, chunk_time);
1034 wm->worst_case_latency.full += read_delay_latency.full;
1036 wm->worst_case_latency.full = chunk_time.full + read_delay_latency.full;
1049 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) {
1052 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2);
1058 wm->dbpp.full = dfixed_const(2 * 16);
1064 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
1065 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a);
1066 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max);
1069 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full;
1072 wm->priority_mark.full = wm->priority_mark_max.full;
1075 wm->priority_mark.full = dfixed_div(estimated_width, a);
1076 wm->priority_mark.full = dfixed_ceil(wm->priority_mark);
1077 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full;