Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_plane.c409 vc4_pstate->crtc_x = DIV_ROUND_CLOSEST(vc4_pstate->crtc_x * in vc4_plane_margins_adj()
412 vc4_pstate->crtc_x += left; in vc4_plane_margins_adj()
413 if (vc4_pstate->crtc_x > crtc_state->mode.hdisplay - right) in vc4_plane_margins_adj()
414 vc4_pstate->crtc_x = crtc_state->mode.hdisplay - right; in vc4_plane_margins_adj()
417 vc4_pstate->crtc_y = DIV_ROUND_CLOSEST(vc4_pstate->crtc_y * in vc4_plane_margins_adj()
420 vc4_pstate->crtc_y += top; in vc4_plane_margins_adj()
421 if (vc4_pstate->crtc_y > crtc_state->mode.vdisplay - bottom) in vc4_plane_margins_adj()
422 vc4_pstate->crtc_y = crtc_state->mode.vdisplay - bottom; in vc4_plane_margins_adj()
424 vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w * in vc4_plane_margins_adj()
427 vc4_pstate->crtc_h = DIV_ROUND_CLOSEST(vc4_pstate->crtc_h * in vc4_plane_margins_adj()
[all …]