Searched refs:vc4_pstate (Results 1 – 1 of 1) sorted by relevance
295 struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); in vc4_plane_margins_adj() local311 vc4_pstate->crtc_x = DIV_ROUND_CLOSEST(vc4_pstate->crtc_x * in vc4_plane_margins_adj()314 vc4_pstate->crtc_x += left; in vc4_plane_margins_adj()315 if (vc4_pstate->crtc_x > crtc_state->mode.hdisplay - right) in vc4_plane_margins_adj()316 vc4_pstate->crtc_x = crtc_state->mode.hdisplay - right; in vc4_plane_margins_adj()319 vc4_pstate->crtc_y = DIV_ROUND_CLOSEST(vc4_pstate->crtc_y * in vc4_plane_margins_adj()322 vc4_pstate->crtc_y += top; in vc4_plane_margins_adj()323 if (vc4_pstate->crtc_y > crtc_state->mode.vdisplay - bottom) in vc4_plane_margins_adj()324 vc4_pstate->crtc_y = crtc_state->mode.vdisplay - bottom; in vc4_plane_margins_adj()326 vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w * in vc4_plane_margins_adj()[all …]