Lines Matching refs:vc4_pstate
263 struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); in vc4_plane_margins_adj() local
279 vc4_pstate->crtc_x = DIV_ROUND_CLOSEST(vc4_pstate->crtc_x * in vc4_plane_margins_adj()
282 vc4_pstate->crtc_x += left; in vc4_plane_margins_adj()
283 if (vc4_pstate->crtc_x > crtc_state->mode.hdisplay - left) in vc4_plane_margins_adj()
284 vc4_pstate->crtc_x = crtc_state->mode.hdisplay - left; in vc4_plane_margins_adj()
287 vc4_pstate->crtc_y = DIV_ROUND_CLOSEST(vc4_pstate->crtc_y * in vc4_plane_margins_adj()
290 vc4_pstate->crtc_y += top; in vc4_plane_margins_adj()
291 if (vc4_pstate->crtc_y > crtc_state->mode.vdisplay - top) in vc4_plane_margins_adj()
292 vc4_pstate->crtc_y = crtc_state->mode.vdisplay - top; in vc4_plane_margins_adj()
294 vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w * in vc4_plane_margins_adj()
297 vc4_pstate->crtc_h = DIV_ROUND_CLOSEST(vc4_pstate->crtc_h * in vc4_plane_margins_adj()
301 if (!vc4_pstate->crtc_w || !vc4_pstate->crtc_h) in vc4_plane_margins_adj()