Lines Matching refs:new_crtc_state

407 	struct drm_crtc_state *new_crtc_state;  in mode_fixup()  local
413 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
414 if (!new_crtc_state->mode_changed && in mode_fixup()
415 !new_crtc_state->connectors_changed) in mode_fixup()
418 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
431 new_crtc_state = in mode_fixup()
443 new_crtc_state, in mode_fixup()
451 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
459 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
460 &new_crtc_state->adjusted_mode); in mode_fixup()
469 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
472 if (!new_crtc_state->enable) in mode_fixup()
475 if (!new_crtc_state->mode_changed && in mode_fixup()
476 !new_crtc_state->connectors_changed) in mode_fixup()
483 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, in mode_fixup()
484 &new_crtc_state->adjusted_mode); in mode_fixup()
609 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_check_modeset() local
615 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_check_modeset()
617 !!new_crtc_state->connector_mask; in drm_atomic_helper_check_modeset()
621 if (!drm_mode_equal(&old_crtc_state->mode, &new_crtc_state->mode)) { in drm_atomic_helper_check_modeset()
624 new_crtc_state->mode_changed = true; in drm_atomic_helper_check_modeset()
627 if (old_crtc_state->enable != new_crtc_state->enable) { in drm_atomic_helper_check_modeset()
639 new_crtc_state->mode_changed = true; in drm_atomic_helper_check_modeset()
640 new_crtc_state->connectors_changed = true; in drm_atomic_helper_check_modeset()
643 if (old_crtc_state->active != new_crtc_state->active) { in drm_atomic_helper_check_modeset()
646 new_crtc_state->active_changed = true; in drm_atomic_helper_check_modeset()
649 if (new_crtc_state->enable != has_connectors) { in drm_atomic_helper_check_modeset()
657 new_crtc_state->no_vblank = false; in drm_atomic_helper_check_modeset()
659 new_crtc_state->no_vblank = true; in drm_atomic_helper_check_modeset()
682 new_crtc_state = drm_atomic_get_new_crtc_state(state, in drm_atomic_helper_check_modeset()
686 new_crtc_state->connectors_changed = true; in drm_atomic_helper_check_modeset()
690 new_crtc_state->connectors_changed = true; in drm_atomic_helper_check_modeset()
707 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_check_modeset()
708 if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) in drm_atomic_helper_check_modeset()
713 new_crtc_state->enable ? 'y' : 'n', in drm_atomic_helper_check_modeset()
714 new_crtc_state->active ? 'y' : 'n'); in drm_atomic_helper_check_modeset()
886 struct drm_crtc_state *new_crtc_state; in drm_atomic_helper_check_planes() local
913 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in drm_atomic_helper_check_planes()
1014 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in disable_outputs() local
1032 new_crtc_state = drm_atomic_get_new_crtc_state( in disable_outputs()
1036 new_crtc_state = NULL; in disable_outputs()
1038 if (!crtc_needs_disable(old_crtc_state, new_crtc_state) || in disable_outputs()
1077 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in disable_outputs()
1082 if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) in disable_outputs()
1085 if (!crtc_needs_disable(old_crtc_state, new_crtc_state)) in disable_outputs()
1095 if (new_crtc_state->enable && funcs->prepare) in disable_outputs()
1138 struct drm_crtc_state *new_crtc_state; in drm_atomic_helper_update_legacy_modeset_state() local
1175 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in drm_atomic_helper_update_legacy_modeset_state()
1179 crtc->mode = new_crtc_state->mode; in drm_atomic_helper_update_legacy_modeset_state()
1180 crtc->enabled = new_crtc_state->enable; in drm_atomic_helper_update_legacy_modeset_state()
1202 struct drm_crtc_state *new_crtc_state; in drm_atomic_helper_calc_timestamping_constants() local
1206 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in drm_atomic_helper_calc_timestamping_constants()
1207 if (new_crtc_state->enable) in drm_atomic_helper_calc_timestamping_constants()
1209 &new_crtc_state->adjusted_mode); in drm_atomic_helper_calc_timestamping_constants()
1218 struct drm_crtc_state *new_crtc_state; in crtc_set_mode() local
1223 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in crtc_set_mode()
1226 if (!new_crtc_state->mode_changed) in crtc_set_mode()
1231 if (new_crtc_state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
1250 new_crtc_state = new_conn_state->crtc->state; in crtc_set_mode()
1251 mode = &new_crtc_state->mode; in crtc_set_mode()
1252 adjusted_mode = &new_crtc_state->adjusted_mode; in crtc_set_mode()
1254 if (!new_crtc_state->mode_changed) in crtc_set_mode()
1265 funcs->atomic_mode_set(encoder, new_crtc_state, in crtc_set_mode()
1342 struct drm_crtc_state *new_crtc_state; in drm_atomic_helper_commit_modeset_enables() local
1347 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_modeset_enables()
1351 if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) in drm_atomic_helper_commit_modeset_enables()
1354 if (!new_crtc_state->active) in drm_atomic_helper_commit_modeset_enables()
1359 if (new_crtc_state->enable) { in drm_atomic_helper_commit_modeset_enables()
1482 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_wait_for_vblanks() local
1493 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_wait_for_vblanks()
1494 if (!new_crtc_state->active) in drm_atomic_helper_wait_for_vblanks()
1631 struct drm_crtc_state *new_crtc_state; in commit_tail() local
1660 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) in commit_tail()
1661 if (new_crtc_state->self_refresh_active) in commit_tail()
2019 struct drm_crtc_state *new_crtc_state; in crtc_or_fake_commit() local
2021 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in crtc_or_fake_commit()
2023 return new_crtc_state->commit; in crtc_or_fake_commit()
2087 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_setup_commit() local
2098 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_setup_commit()
2105 new_crtc_state->commit = commit; in drm_atomic_helper_setup_commit()
2116 if (!old_crtc_state->active && !new_crtc_state->active) { in drm_atomic_helper_setup_commit()
2127 if (!new_crtc_state->event) { in drm_atomic_helper_setup_commit()
2133 new_crtc_state->event = commit->event; in drm_atomic_helper_setup_commit()
2136 new_crtc_state->event->base.completion = &commit->flip_done; in drm_atomic_helper_setup_commit()
2137 new_crtc_state->event->base.completion_release = release_crtc_commit; in drm_atomic_helper_setup_commit()
2261 struct drm_crtc_state *new_crtc_state; in drm_atomic_helper_fake_vblank() local
2265 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in drm_atomic_helper_fake_vblank()
2268 if (!new_crtc_state->no_vblank) in drm_atomic_helper_fake_vblank()
2272 if (new_crtc_state->event) { in drm_atomic_helper_fake_vblank()
2274 new_crtc_state->event); in drm_atomic_helper_fake_vblank()
2275 new_crtc_state->event = NULL; in drm_atomic_helper_fake_vblank()
2300 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_commit_hw_done() local
2304 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_hw_done()
2305 commit = new_crtc_state->commit; in drm_atomic_helper_commit_hw_done()
2320 WARN_ON(new_crtc_state->event); in drm_atomic_helper_commit_hw_done()
2491 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_commit_planes() local
2498 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_planes()
2506 if (active_only && !new_crtc_state->active) in drm_atomic_helper_commit_planes()
2556 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_planes()
2564 if (active_only && !new_crtc_state->active) in drm_atomic_helper_commit_planes()
2595 struct drm_crtc_state *new_crtc_state = in drm_atomic_helper_commit_planes_on_crtc() local
2601 plane_mask |= new_crtc_state->plane_mask; in drm_atomic_helper_commit_planes_on_crtc()
2762 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_swap_state() local
2823 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_swap_state()
2827 new_crtc_state->state = NULL; in drm_atomic_helper_swap_state()
2830 crtc->state = new_crtc_state; in drm_atomic_helper_swap_state()
2832 if (new_crtc_state->commit) { in drm_atomic_helper_swap_state()
2834 list_add(&new_crtc_state->commit->commit_entry, in drm_atomic_helper_swap_state()
2838 new_crtc_state->commit->event = NULL; in drm_atomic_helper_swap_state()
3297 struct drm_crtc_state *new_crtc_state; in drm_atomic_helper_commit_duplicated_state() local
3304 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) in drm_atomic_helper_commit_duplicated_state()