Searched refs:vc4_pstate (Results 1 – 1 of 1) sorted by relevance
447 struct vc4_plane_state *vc4_pstate = to_vc4_plane_state(pstate); in vc4_plane_margins_adj() local463 vc4_pstate->crtc_x = DIV_ROUND_CLOSEST(vc4_pstate->crtc_x * in vc4_plane_margins_adj()466 vc4_pstate->crtc_x += left; in vc4_plane_margins_adj()467 if (vc4_pstate->crtc_x > crtc_state->mode.hdisplay - right) in vc4_plane_margins_adj()468 vc4_pstate->crtc_x = crtc_state->mode.hdisplay - right; in vc4_plane_margins_adj()471 vc4_pstate->crtc_y = DIV_ROUND_CLOSEST(vc4_pstate->crtc_y * in vc4_plane_margins_adj()474 vc4_pstate->crtc_y += top; in vc4_plane_margins_adj()475 if (vc4_pstate->crtc_y > crtc_state->mode.vdisplay - bottom) in vc4_plane_margins_adj()476 vc4_pstate->crtc_y = crtc_state->mode.vdisplay - bottom; in vc4_plane_margins_adj()478 vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w * in vc4_plane_margins_adj()[all …]