Lines Matching refs:old_state

1106 crtc_needs_disable(struct drm_crtc_state *old_state,  in crtc_needs_disable()  argument
1114 return drm_atomic_crtc_effectively_active(old_state); in crtc_needs_disable()
1121 if (old_state->self_refresh_active && in crtc_needs_disable()
1122 old_state->crtc != new_state->crtc) in crtc_needs_disable()
1131 return old_state->active || in crtc_needs_disable()
1132 (old_state->self_refresh_active && !new_state->active) || in crtc_needs_disable()
1137 disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state) in disable_outputs() argument
1145 for_each_oldnew_connector_in_state(old_state, connector, old_conn_state, new_conn_state, i) { in disable_outputs()
1157 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, old_conn_state->crtc); in disable_outputs()
1161 old_state, in disable_outputs()
1188 drm_atomic_bridge_chain_disable(bridge, old_state); in disable_outputs()
1193 funcs->atomic_disable(encoder, old_state); in disable_outputs()
1202 drm_atomic_bridge_chain_post_disable(bridge, old_state); in disable_outputs()
1205 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in disable_outputs()
1226 funcs->atomic_disable(crtc, old_state); in disable_outputs()
1261 struct drm_atomic_state *old_state) in drm_atomic_helper_update_legacy_modeset_state() argument
1270 for_each_oldnew_connector_in_state(old_state, connector, old_conn_state, new_conn_state, i) { in drm_atomic_helper_update_legacy_modeset_state()
1291 for_each_new_connector_in_state(old_state, connector, new_conn_state, i) { in drm_atomic_helper_update_legacy_modeset_state()
1303 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in drm_atomic_helper_update_legacy_modeset_state()
1311 drm_atomic_get_new_plane_state(old_state, primary); in drm_atomic_helper_update_legacy_modeset_state()
1343 crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *old_state) in crtc_set_mode() argument
1351 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in crtc_set_mode()
1367 for_each_new_connector_in_state(old_state, connector, new_conn_state, i) { in crtc_set_mode()
1419 struct drm_atomic_state *old_state) in drm_atomic_helper_commit_modeset_disables() argument
1421 disable_outputs(dev, old_state); in drm_atomic_helper_commit_modeset_disables()
1423 drm_atomic_helper_update_legacy_modeset_state(dev, old_state); in drm_atomic_helper_commit_modeset_disables()
1424 drm_atomic_helper_calc_timestamping_constants(old_state); in drm_atomic_helper_commit_modeset_disables()
1426 crtc_set_mode(dev, old_state); in drm_atomic_helper_commit_modeset_disables()
1431 struct drm_atomic_state *old_state) in drm_atomic_helper_commit_writebacks() argument
1437 for_each_new_connector_in_state(old_state, connector, new_conn_state, i) { in drm_atomic_helper_commit_writebacks()
1446 funcs->atomic_commit(connector, old_state); in drm_atomic_helper_commit_writebacks()
1466 struct drm_atomic_state *old_state) in drm_atomic_helper_commit_modeset_enables() argument
1475 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_modeset_enables()
1491 funcs->atomic_enable(crtc, old_state); in drm_atomic_helper_commit_modeset_enables()
1497 for_each_new_connector_in_state(old_state, connector, new_conn_state, i) { in drm_atomic_helper_commit_modeset_enables()
1520 drm_atomic_bridge_chain_pre_enable(bridge, old_state); in drm_atomic_helper_commit_modeset_enables()
1524 funcs->atomic_enable(encoder, old_state); in drm_atomic_helper_commit_modeset_enables()
1531 drm_atomic_bridge_chain_enable(bridge, old_state); in drm_atomic_helper_commit_modeset_enables()
1534 drm_atomic_helper_commit_writebacks(dev, old_state); in drm_atomic_helper_commit_modeset_enables()
1607 struct drm_atomic_state *old_state) in drm_atomic_helper_wait_for_vblanks() argument
1618 if (old_state->legacy_cursor_update) in drm_atomic_helper_wait_for_vblanks()
1621 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_wait_for_vblanks()
1630 old_state->crtcs[i].last_vblank_count = drm_crtc_vblank_count(crtc); in drm_atomic_helper_wait_for_vblanks()
1633 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in drm_atomic_helper_wait_for_vblanks()
1638 old_state->crtcs[i].last_vblank_count != in drm_atomic_helper_wait_for_vblanks()
1666 struct drm_atomic_state *old_state) in drm_atomic_helper_wait_for_flip_done() argument
1672 struct drm_crtc_commit *commit = old_state->crtcs[i].commit; in drm_atomic_helper_wait_for_flip_done()
1675 crtc = old_state->crtcs[i].ptr; in drm_atomic_helper_wait_for_flip_done()
1686 if (old_state->fake_commit) in drm_atomic_helper_wait_for_flip_done()
1687 complete_all(&old_state->fake_commit->flip_done); in drm_atomic_helper_wait_for_flip_done()
1704 void drm_atomic_helper_commit_tail(struct drm_atomic_state *old_state) in drm_atomic_helper_commit_tail() argument
1706 struct drm_device *dev = old_state->dev; in drm_atomic_helper_commit_tail()
1708 drm_atomic_helper_commit_modeset_disables(dev, old_state); in drm_atomic_helper_commit_tail()
1710 drm_atomic_helper_commit_planes(dev, old_state, 0); in drm_atomic_helper_commit_tail()
1712 drm_atomic_helper_commit_modeset_enables(dev, old_state); in drm_atomic_helper_commit_tail()
1714 drm_atomic_helper_fake_vblank(old_state); in drm_atomic_helper_commit_tail()
1716 drm_atomic_helper_commit_hw_done(old_state); in drm_atomic_helper_commit_tail()
1718 drm_atomic_helper_wait_for_vblanks(dev, old_state); in drm_atomic_helper_commit_tail()
1720 drm_atomic_helper_cleanup_planes(dev, old_state); in drm_atomic_helper_commit_tail()
1734 void drm_atomic_helper_commit_tail_rpm(struct drm_atomic_state *old_state) in drm_atomic_helper_commit_tail_rpm() argument
1736 struct drm_device *dev = old_state->dev; in drm_atomic_helper_commit_tail_rpm()
1738 drm_atomic_helper_commit_modeset_disables(dev, old_state); in drm_atomic_helper_commit_tail_rpm()
1740 drm_atomic_helper_commit_modeset_enables(dev, old_state); in drm_atomic_helper_commit_tail_rpm()
1742 drm_atomic_helper_commit_planes(dev, old_state, in drm_atomic_helper_commit_tail_rpm()
1745 drm_atomic_helper_fake_vblank(old_state); in drm_atomic_helper_commit_tail_rpm()
1747 drm_atomic_helper_commit_hw_done(old_state); in drm_atomic_helper_commit_tail_rpm()
1749 drm_atomic_helper_wait_for_vblanks(dev, old_state); in drm_atomic_helper_commit_tail_rpm()
1751 drm_atomic_helper_cleanup_planes(dev, old_state); in drm_atomic_helper_commit_tail_rpm()
1755 static void commit_tail(struct drm_atomic_state *old_state) in commit_tail() argument
1757 struct drm_device *dev = old_state->dev; in commit_tail()
1779 drm_atomic_helper_wait_for_fences(dev, old_state, false); in commit_tail()
1781 drm_atomic_helper_wait_for_dependencies(old_state); in commit_tail()
1788 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) in commit_tail()
1793 funcs->atomic_commit_tail(old_state); in commit_tail()
1795 drm_atomic_helper_commit_tail(old_state); in commit_tail()
1799 drm_self_refresh_helper_update_avg_times(old_state, in commit_tail()
1803 drm_atomic_helper_commit_cleanup_done(old_state); in commit_tail()
1805 drm_atomic_state_put(old_state); in commit_tail()
2359 void drm_atomic_helper_wait_for_dependencies(struct drm_atomic_state *old_state) in drm_atomic_helper_wait_for_dependencies() argument
2370 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in drm_atomic_helper_wait_for_dependencies()
2378 for_each_old_connector_in_state(old_state, conn, old_conn_state, i) { in drm_atomic_helper_wait_for_dependencies()
2386 for_each_old_plane_in_state(old_state, plane, old_plane_state, i) { in drm_atomic_helper_wait_for_dependencies()
2414 void drm_atomic_helper_fake_vblank(struct drm_atomic_state *old_state) in drm_atomic_helper_fake_vblank() argument
2420 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in drm_atomic_helper_fake_vblank()
2426 spin_lock_irqsave(&old_state->dev->event_lock, flags); in drm_atomic_helper_fake_vblank()
2432 spin_unlock_irqrestore(&old_state->dev->event_lock, flags); in drm_atomic_helper_fake_vblank()
2452 void drm_atomic_helper_commit_hw_done(struct drm_atomic_state *old_state) in drm_atomic_helper_commit_hw_done() argument
2459 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_hw_done()
2479 if (old_state->fake_commit) { in drm_atomic_helper_commit_hw_done()
2480 complete_all(&old_state->fake_commit->hw_done); in drm_atomic_helper_commit_hw_done()
2481 complete_all(&old_state->fake_commit->flip_done); in drm_atomic_helper_commit_hw_done()
2497 void drm_atomic_helper_commit_cleanup_done(struct drm_atomic_state *old_state) in drm_atomic_helper_commit_cleanup_done() argument
2504 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in drm_atomic_helper_commit_cleanup_done()
2517 if (old_state->fake_commit) { in drm_atomic_helper_commit_cleanup_done()
2518 complete_all(&old_state->fake_commit->cleanup_done); in drm_atomic_helper_commit_cleanup_done()
2519 WARN_ON(!try_wait_for_completion(&old_state->fake_commit->hw_done)); in drm_atomic_helper_commit_cleanup_done()
2642 struct drm_atomic_state *old_state, in drm_atomic_helper_commit_planes() argument
2653 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_planes()
2664 funcs->atomic_begin(crtc, old_state); in drm_atomic_helper_commit_planes()
2667 for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_commit_planes()
2705 funcs->atomic_disable(plane, old_state); in drm_atomic_helper_commit_planes()
2707 funcs->atomic_update(plane, old_state); in drm_atomic_helper_commit_planes()
2711 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_commit_planes()
2722 funcs->atomic_flush(crtc, old_state); in drm_atomic_helper_commit_planes()
2749 struct drm_atomic_state *old_state = old_crtc_state->state; in drm_atomic_helper_commit_planes_on_crtc() local
2751 drm_atomic_get_new_crtc_state(old_state, crtc); in drm_atomic_helper_commit_planes_on_crtc()
2760 crtc_funcs->atomic_begin(crtc, old_state); in drm_atomic_helper_commit_planes_on_crtc()
2764 drm_atomic_get_old_plane_state(old_state, plane); in drm_atomic_helper_commit_planes_on_crtc()
2766 drm_atomic_get_new_plane_state(old_state, plane); in drm_atomic_helper_commit_planes_on_crtc()
2779 plane_funcs->atomic_disable(plane, old_state); in drm_atomic_helper_commit_planes_on_crtc()
2782 plane_funcs->atomic_update(plane, old_state); in drm_atomic_helper_commit_planes_on_crtc()
2786 crtc_funcs->atomic_flush(crtc, old_state); in drm_atomic_helper_commit_planes_on_crtc()
2848 struct drm_atomic_state *old_state) in drm_atomic_helper_cleanup_planes() argument
2854 for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_cleanup_planes()
3459 state->planes[i].old_state = plane->state; in drm_atomic_helper_commit_duplicated_state()
3462 state->crtcs[i].old_state = crtc->state; in drm_atomic_helper_commit_duplicated_state()
3465 state->connectors[i].old_state = connector->state; in drm_atomic_helper_commit_duplicated_state()