Lines Matching refs:wm
785 struct rv515_watermark *wm)
793 wm->lb_request_fifo_depth = 4;
798 wm->num_line_pair.full = dfixed_const(2);
800 wm->num_line_pair.full = dfixed_const(1);
805 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair);
808 wm->lb_request_fifo_depth = 4;
810 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth);
835 wm->consumption_rate.full = dfixed_div(a, consumption_time);
853 wm->active_time.full = dfixed_mul(line_time, b);
854 wm->active_time.full = dfixed_div(wm->active_time, a);
873 if (dfixed_trunc(wm->num_line_pair) > 1) {
875 wm->worst_case_latency.full = dfixed_mul(a, chunk_time);
876 wm->worst_case_latency.full += read_delay_latency.full;
878 wm->worst_case_latency.full = chunk_time.full + read_delay_latency.full;
891 if ((2+wm->lb_request_fifo_depth) >= dfixed_trunc(request_fifo_depth)) {
894 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2);
900 wm->dbpp.full = dfixed_const(2 * 16);
906 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
907 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a);
908 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max);
911 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full;
914 wm->priority_mark.full = wm->priority_mark_max.full;
917 wm->priority_mark.full = dfixed_div(estimated_width, a);
918 wm->priority_mark.full = dfixed_ceil(wm->priority_mark);
919 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full;