Lines Matching refs:funcs
154 const struct drm_connector_helper_funcs *funcs; in update_connector_routing() local
198 funcs = connector->helper_private; in update_connector_routing()
200 if (funcs->atomic_best_encoder) in update_connector_routing()
201 new_encoder = funcs->atomic_best_encoder(connector, in update_connector_routing()
204 new_encoder = funcs->best_encoder(connector); in update_connector_routing()
283 const struct drm_encoder_helper_funcs *funcs; in mode_fixup() local
299 funcs = encoder->helper_private; in mode_fixup()
300 if (!funcs) in mode_fixup()
310 if (funcs->atomic_check) { in mode_fixup()
311 ret = funcs->atomic_check(encoder, crtc_state, in mode_fixup()
318 } else if (funcs->mode_fixup) { in mode_fixup()
319 ret = funcs->mode_fixup(encoder, &crtc_state->mode, in mode_fixup()
330 const struct drm_crtc_helper_funcs *funcs; in mode_fixup() local
336 funcs = crtc->helper_private; in mode_fixup()
337 if (!funcs->mode_fixup) in mode_fixup()
340 ret = funcs->mode_fixup(crtc, &crtc_state->mode, in mode_fixup()
501 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
503 funcs = plane->helper_private; in drm_atomic_helper_check_planes()
507 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
510 ret = funcs->atomic_check(plane, plane_state); in drm_atomic_helper_check_planes()
519 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
521 funcs = crtc->helper_private; in drm_atomic_helper_check_planes()
523 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
526 ret = funcs->atomic_check(crtc, state->crtc_states[i]); in drm_atomic_helper_check_planes()
585 const struct drm_encoder_helper_funcs *funcs; in disable_outputs() local
608 funcs = encoder->helper_private; in disable_outputs()
620 if (connector->state->crtc && funcs->prepare) in disable_outputs()
621 funcs->prepare(encoder); in disable_outputs()
622 else if (funcs->disable) in disable_outputs()
623 funcs->disable(encoder); in disable_outputs()
625 funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in disable_outputs()
631 const struct drm_crtc_helper_funcs *funcs; in disable_outputs() local
640 funcs = crtc->helper_private; in disable_outputs()
647 if (crtc->state->enable && funcs->prepare) in disable_outputs()
648 funcs->prepare(crtc); in disable_outputs()
649 else if (funcs->disable) in disable_outputs()
650 funcs->disable(crtc); in disable_outputs()
652 funcs->dpms(crtc, DRM_MODE_DPMS_OFF); in disable_outputs()
746 const struct drm_crtc_helper_funcs *funcs; in crtc_set_mode() local
751 funcs = crtc->helper_private; in crtc_set_mode()
753 if (crtc->state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
757 funcs->mode_set_nofb(crtc); in crtc_set_mode()
762 const struct drm_encoder_helper_funcs *funcs; in crtc_set_mode() local
771 funcs = encoder->helper_private; in crtc_set_mode()
786 if (funcs->mode_set) in crtc_set_mode()
787 funcs->mode_set(encoder, mode, adjusted_mode); in crtc_set_mode()
842 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
851 funcs = crtc->helper_private; in drm_atomic_helper_commit_modeset_enables()
857 if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
858 funcs->enable(crtc); in drm_atomic_helper_commit_modeset_enables()
860 funcs->commit(crtc); in drm_atomic_helper_commit_modeset_enables()
865 const struct drm_encoder_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
876 funcs = encoder->helper_private; in drm_atomic_helper_commit_modeset_enables()
887 if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
888 funcs->enable(encoder); in drm_atomic_helper_commit_modeset_enables()
890 funcs->commit(encoder); in drm_atomic_helper_commit_modeset_enables()
1135 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
1142 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
1144 if (funcs->prepare_fb) { in drm_atomic_helper_prepare_planes()
1145 ret = funcs->prepare_fb(plane, plane_state); in drm_atomic_helper_prepare_planes()
1155 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
1162 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
1164 if (funcs->cleanup_fb) in drm_atomic_helper_prepare_planes()
1165 funcs->cleanup_fb(plane, plane_state); in drm_atomic_helper_prepare_planes()
1223 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
1225 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
1227 if (!funcs || !funcs->atomic_begin) in drm_atomic_helper_commit_planes()
1233 funcs->atomic_begin(crtc, old_crtc_state); in drm_atomic_helper_commit_planes()
1237 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
1240 funcs = plane->helper_private; in drm_atomic_helper_commit_planes()
1242 if (!funcs) in drm_atomic_helper_commit_planes()
1264 if (disabling && funcs->atomic_disable) in drm_atomic_helper_commit_planes()
1265 funcs->atomic_disable(plane, old_plane_state); in drm_atomic_helper_commit_planes()
1267 funcs->atomic_update(plane, old_plane_state); in drm_atomic_helper_commit_planes()
1271 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
1273 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
1275 if (!funcs || !funcs->atomic_flush) in drm_atomic_helper_commit_planes()
1281 funcs->atomic_flush(crtc, old_crtc_state); in drm_atomic_helper_commit_planes()
1364 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_cleanup_planes() local
1366 funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes()
1368 if (funcs->cleanup_fb) in drm_atomic_helper_cleanup_planes()
1369 funcs->cleanup_fb(plane, plane_state); in drm_atomic_helper_cleanup_planes()