Home
last modified time | relevance | path

Searched refs:vc4_pstate (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/vc4/
Dvc4_plane.c263 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()
[all …]