Lines Matching refs:funcs
110 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in handle_conflicting_encoders() local
116 if (funcs->atomic_best_encoder) in handle_conflicting_encoders()
117 new_encoder = funcs->atomic_best_encoder(connector, new_conn_state); in handle_conflicting_encoders()
118 else if (funcs->best_encoder) in handle_conflicting_encoders()
119 new_encoder = funcs->best_encoder(connector); in handle_conflicting_encoders()
280 const struct drm_connector_helper_funcs *funcs; in update_connector_routing() local
310 funcs = connector->helper_private; in update_connector_routing()
312 if (funcs->atomic_best_encoder) in update_connector_routing()
313 new_encoder = funcs->atomic_best_encoder(connector, in update_connector_routing()
315 else if (funcs->best_encoder) in update_connector_routing()
316 new_encoder = funcs->best_encoder(connector); in update_connector_routing()
387 const struct drm_encoder_helper_funcs *funcs; in mode_fixup() local
403 funcs = encoder->helper_private; in mode_fixup()
412 if (funcs && funcs->atomic_check) { in mode_fixup()
413 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
420 } else if (funcs && funcs->mode_fixup) { in mode_fixup()
421 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
432 const struct drm_crtc_helper_funcs *funcs; in mode_fixup() local
441 funcs = crtc->helper_private; in mode_fixup()
442 if (!funcs->mode_fixup) in mode_fixup()
445 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, in mode_fixup()
621 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
643 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
644 ret = funcs->atomic_check(connector, new_connector_state); in drm_atomic_helper_check_modeset()
680 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
685 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
686 ret = funcs->atomic_check(connector, new_connector_state); in drm_atomic_helper_check_modeset()
822 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
826 funcs = plane->helper_private; in drm_atomic_helper_check_planes()
830 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
833 ret = funcs->atomic_check(plane, new_plane_state); in drm_atomic_helper_check_planes()
842 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
844 funcs = crtc->helper_private; in drm_atomic_helper_check_planes()
846 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
849 ret = funcs->atomic_check(crtc, new_crtc_state); in drm_atomic_helper_check_planes()
923 const struct drm_encoder_helper_funcs *funcs; in disable_outputs() local
945 funcs = encoder->helper_private; in disable_outputs()
957 if (funcs) { in disable_outputs()
958 if (new_conn_state->crtc && funcs->prepare) in disable_outputs()
959 funcs->prepare(encoder); in disable_outputs()
960 else if (funcs->disable) in disable_outputs()
961 funcs->disable(encoder); in disable_outputs()
962 else if (funcs->dpms) in disable_outputs()
963 funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in disable_outputs()
970 const struct drm_crtc_helper_funcs *funcs; in disable_outputs() local
980 funcs = crtc->helper_private; in disable_outputs()
987 if (new_crtc_state->enable && funcs->prepare) in disable_outputs()
988 funcs->prepare(crtc); in disable_outputs()
989 else if (funcs->atomic_disable) in disable_outputs()
990 funcs->atomic_disable(crtc, old_crtc_state); in disable_outputs()
991 else if (funcs->disable) in disable_outputs()
992 funcs->disable(crtc); in disable_outputs()
994 funcs->dpms(crtc, DRM_MODE_DPMS_OFF); in disable_outputs()
1101 const struct drm_crtc_helper_funcs *funcs; in crtc_set_mode() local
1106 funcs = crtc->helper_private; in crtc_set_mode()
1108 if (new_crtc_state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
1112 funcs->mode_set_nofb(crtc); in crtc_set_mode()
1117 const struct drm_encoder_helper_funcs *funcs; in crtc_set_mode() local
1125 funcs = encoder->helper_private; in crtc_set_mode()
1140 if (funcs && funcs->atomic_mode_set) { in crtc_set_mode()
1141 funcs->atomic_mode_set(encoder, new_crtc_state, in crtc_set_mode()
1143 } else if (funcs && funcs->mode_set) { in crtc_set_mode()
1144 funcs->mode_set(encoder, mode, adjusted_mode); in crtc_set_mode()
1184 const struct drm_connector_helper_funcs *funcs; in drm_atomic_helper_commit_writebacks() local
1186 funcs = connector->helper_private; in drm_atomic_helper_commit_writebacks()
1187 if (!funcs->atomic_commit) in drm_atomic_helper_commit_writebacks()
1192 funcs->atomic_commit(connector, new_conn_state); in drm_atomic_helper_commit_writebacks()
1222 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
1231 funcs = crtc->helper_private; in drm_atomic_helper_commit_modeset_enables()
1237 if (funcs->atomic_enable) in drm_atomic_helper_commit_modeset_enables()
1238 funcs->atomic_enable(crtc, old_crtc_state); in drm_atomic_helper_commit_modeset_enables()
1240 funcs->commit(crtc); in drm_atomic_helper_commit_modeset_enables()
1245 const struct drm_encoder_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
1256 funcs = encoder->helper_private; in drm_atomic_helper_commit_modeset_enables()
1267 if (funcs) { in drm_atomic_helper_commit_modeset_enables()
1268 if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
1269 funcs->enable(encoder); in drm_atomic_helper_commit_modeset_enables()
1270 else if (funcs->commit) in drm_atomic_helper_commit_modeset_enables()
1271 funcs->commit(encoder); in drm_atomic_helper_commit_modeset_enables()
1498 const struct drm_mode_config_helper_funcs *funcs; in commit_tail() local
1500 funcs = dev->mode_config.helper_private; in commit_tail()
1506 if (funcs && funcs->atomic_commit_tail) in commit_tail()
1507 funcs->atomic_commit_tail(old_state); in commit_tail()
1545 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_check() local
1564 funcs = plane->helper_private; in drm_atomic_helper_async_check()
1565 if (!funcs->atomic_async_update) in drm_atomic_helper_async_check()
1580 return funcs->atomic_async_check(plane, new_plane_state); in drm_atomic_helper_async_check()
1600 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_commit() local
1604 funcs = plane->helper_private; in drm_atomic_helper_async_commit()
1605 funcs->atomic_async_update(plane, plane_state); in drm_atomic_helper_async_commit()
2211 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2213 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2215 if (funcs->prepare_fb) { in drm_atomic_helper_prepare_planes()
2216 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2226 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2231 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2233 if (funcs->cleanup_fb) in drm_atomic_helper_prepare_planes()
2234 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2300 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2302 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2304 if (!funcs || !funcs->atomic_begin) in drm_atomic_helper_commit_planes()
2310 funcs->atomic_begin(crtc, old_crtc_state); in drm_atomic_helper_commit_planes()
2314 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2317 funcs = plane->helper_private; in drm_atomic_helper_commit_planes()
2319 if (!funcs) in drm_atomic_helper_commit_planes()
2342 if (disabling && funcs->atomic_disable) { in drm_atomic_helper_commit_planes()
2351 funcs->atomic_disable(plane, old_plane_state); in drm_atomic_helper_commit_planes()
2353 funcs->atomic_update(plane, old_plane_state); in drm_atomic_helper_commit_planes()
2358 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2360 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2362 if (!funcs || !funcs->atomic_flush) in drm_atomic_helper_commit_planes()
2368 funcs->atomic_flush(crtc, old_crtc_state); in drm_atomic_helper_commit_planes()
2501 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_cleanup_planes() local
2513 funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes()
2515 if (funcs->cleanup_fb) in drm_atomic_helper_cleanup_planes()
2516 funcs->cleanup_fb(plane, plane_state); in drm_atomic_helper_cleanup_planes()