Lines Matching refs:new_crtc_state

420 	struct drm_crtc_state *new_crtc_state;
426 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
427 if (!new_crtc_state->mode_changed &&
428 !new_crtc_state->connectors_changed)
431 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode);
444 new_crtc_state =
456 new_crtc_state,
464 ret = funcs->atomic_check(encoder, new_crtc_state,
473 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode,
474 &new_crtc_state->adjusted_mode);
484 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
487 if (!new_crtc_state->enable)
490 if (!new_crtc_state->mode_changed &&
491 !new_crtc_state->connectors_changed)
498 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
499 &new_crtc_state->adjusted_mode);
649 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
658 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
660 !!new_crtc_state->connector_mask;
664 if (!drm_mode_equal(&old_crtc_state->mode, &new_crtc_state->mode)) {
667 new_crtc_state->mode_changed = true;
670 if (old_crtc_state->enable != new_crtc_state->enable) {
682 new_crtc_state->mode_changed = true;
683 new_crtc_state->connectors_changed = true;
686 if (old_crtc_state->active != new_crtc_state->active) {
689 new_crtc_state->active_changed = true;
692 if (new_crtc_state->enable != has_connectors) {
695 new_crtc_state->enable, has_connectors);
701 new_crtc_state->no_vblank = false;
703 new_crtc_state->no_vblank = true;
727 new_crtc_state = drm_atomic_get_new_crtc_state(state,
731 new_crtc_state->connectors_changed = true;
735 new_crtc_state->connectors_changed = true;
756 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
757 if (!drm_atomic_crtc_needs_modeset(new_crtc_state))
763 new_crtc_state->enable ? 'y' : 'n',
764 new_crtc_state->active ? 'y' : 'n');
1019 struct drm_crtc_state *new_crtc_state;
1047 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
1168 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
1186 new_crtc_state = drm_atomic_get_new_crtc_state(
1190 new_crtc_state = NULL;
1192 if (!crtc_needs_disable(old_crtc_state, new_crtc_state) ||
1231 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
1236 if (!drm_atomic_crtc_needs_modeset(new_crtc_state))
1239 if (!crtc_needs_disable(old_crtc_state, new_crtc_state))
1249 if (new_crtc_state->enable && funcs->prepare)
1266 if (new_crtc_state->self_refresh_active)
1301 struct drm_crtc_state *new_crtc_state;
1338 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
1342 crtc->mode = new_crtc_state->mode;
1343 crtc->enabled = new_crtc_state->enable;
1365 struct drm_crtc_state *new_crtc_state;
1369 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
1370 if (new_crtc_state->enable)
1372 &new_crtc_state->adjusted_mode);
1381 struct drm_crtc_state *new_crtc_state;
1386 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
1389 if (!new_crtc_state->mode_changed)
1394 if (new_crtc_state->enable && funcs->mode_set_nofb) {
1413 new_crtc_state = new_conn_state->crtc->state;
1414 mode = &new_crtc_state->mode;
1415 adjusted_mode = &new_crtc_state->adjusted_mode;
1417 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed)
1428 funcs->atomic_mode_set(encoder, new_crtc_state,
1505 struct drm_crtc_state *new_crtc_state;
1510 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
1514 if (!drm_atomic_crtc_needs_modeset(new_crtc_state))
1517 if (!new_crtc_state->active)
1522 if (new_crtc_state->enable) {
1581 struct drm_crtc_state *new_crtc_state;
1587 for_each_new_crtc_in_state (state, crtc, new_crtc_state, i) {
1590 if (drm_atomic_crtc_needs_modeset(new_crtc_state))
1593 if (!new_crtc_state->active)
1688 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
1699 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
1700 if (!new_crtc_state->active)
1837 struct drm_crtc_state *new_crtc_state;
1862 * We cannot safely access new_crtc_state after
1866 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i)
1867 if (new_crtc_state->self_refresh_active)
2247 struct drm_crtc_state *new_crtc_state;
2249 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
2251 return new_crtc_state->commit;
2314 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
2325 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2332 new_crtc_state->commit = commit;
2343 if (!old_crtc_state->active && !new_crtc_state->active) {
2354 if (!new_crtc_state->event) {
2360 new_crtc_state->event = commit->event;
2363 new_crtc_state->event->base.completion = &commit->flip_done;
2364 new_crtc_state->event->base.completion_release = release_crtc_commit;
2493 struct drm_crtc_state *new_crtc_state;
2497 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) {
2500 if (!new_crtc_state->no_vblank)
2504 if (new_crtc_state->event) {
2506 new_crtc_state->event);
2507 new_crtc_state->event = NULL;
2532 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
2536 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2537 commit = new_crtc_state->commit;
2542 * copy new_crtc_state->commit to old_crtc_state->commit,
2543 * it's unsafe to touch new_crtc_state after hw_done,
2552 WARN_ON(new_crtc_state->event);
2777 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
2784 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2792 if (active_only && !new_crtc_state->active)
2847 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
2855 if (active_only && !new_crtc_state->active)
2897 struct drm_crtc_state *new_crtc_state =
2903 plane_mask |= new_crtc_state->plane_mask;
3060 struct drm_crtc_state *old_crtc_state, *new_crtc_state;
3121 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
3125 new_crtc_state->state = NULL;
3128 crtc->state = new_crtc_state;
3130 if (new_crtc_state->commit) {
3132 list_add(&new_crtc_state->commit->commit_entry,
3136 new_crtc_state->commit->event = NULL;
3650 struct drm_crtc_state *new_crtc_state;
3657 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i)