Lines Matching refs:primary_state
1355 struct drm_plane_state *primary_state; in __drm_atomic_helper_set_config() local
1364 primary_state = drm_atomic_get_plane_state(state, crtc->primary); in __drm_atomic_helper_set_config()
1365 if (IS_ERR(primary_state)) in __drm_atomic_helper_set_config()
1366 return PTR_ERR(primary_state); in __drm_atomic_helper_set_config()
1378 ret = drm_atomic_set_crtc_for_plane(primary_state, NULL); in __drm_atomic_helper_set_config()
1382 drm_atomic_set_fb_for_plane(primary_state, NULL); in __drm_atomic_helper_set_config()
1396 ret = drm_atomic_set_crtc_for_plane(primary_state, crtc); in __drm_atomic_helper_set_config()
1402 drm_atomic_set_fb_for_plane(primary_state, set->fb); in __drm_atomic_helper_set_config()
1403 primary_state->crtc_x = 0; in __drm_atomic_helper_set_config()
1404 primary_state->crtc_y = 0; in __drm_atomic_helper_set_config()
1405 primary_state->crtc_w = hdisplay; in __drm_atomic_helper_set_config()
1406 primary_state->crtc_h = vdisplay; in __drm_atomic_helper_set_config()
1407 primary_state->src_x = set->x << 16; in __drm_atomic_helper_set_config()
1408 primary_state->src_y = set->y << 16; in __drm_atomic_helper_set_config()
1409 if (drm_rotation_90_or_270(primary_state->rotation)) { in __drm_atomic_helper_set_config()
1410 primary_state->src_w = vdisplay << 16; in __drm_atomic_helper_set_config()
1411 primary_state->src_h = hdisplay << 16; in __drm_atomic_helper_set_config()
1413 primary_state->src_w = hdisplay << 16; in __drm_atomic_helper_set_config()
1414 primary_state->src_h = vdisplay << 16; in __drm_atomic_helper_set_config()