Lines Matching refs:funcs

122 		const struct drm_connector_helper_funcs *funcs = connector->helper_private;  in handle_conflicting_encoders()  local
128 if (funcs->atomic_best_encoder) in handle_conflicting_encoders()
129 new_encoder = funcs->atomic_best_encoder(connector, in handle_conflicting_encoders()
131 else if (funcs->best_encoder) in handle_conflicting_encoders()
132 new_encoder = funcs->best_encoder(connector); in handle_conflicting_encoders()
298 const struct drm_connector_helper_funcs *funcs; in update_connector_routing() local
358 funcs = connector->helper_private; in update_connector_routing()
360 if (funcs->atomic_best_encoder) in update_connector_routing()
361 new_encoder = funcs->atomic_best_encoder(connector, state); in update_connector_routing()
362 else if (funcs->best_encoder) in update_connector_routing()
363 new_encoder = funcs->best_encoder(connector); in update_connector_routing()
436 const struct drm_encoder_helper_funcs *funcs; in mode_fixup() local
453 funcs = encoder->helper_private; in mode_fixup()
464 if (funcs && funcs->atomic_check) { in mode_fixup()
465 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
473 } else if (funcs && funcs->mode_fixup) { in mode_fixup()
474 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
486 const struct drm_crtc_helper_funcs *funcs; in mode_fixup() local
495 funcs = crtc->helper_private; in mode_fixup()
496 if (!funcs || !funcs->mode_fixup) in mode_fixup()
499 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, in mode_fixup()
712 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
739 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
740 ret = funcs->atomic_check(connector, state); in drm_atomic_helper_check_modeset()
785 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
790 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
791 ret = funcs->atomic_check(connector, state); in drm_atomic_helper_check_modeset()
1026 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
1030 funcs = plane->helper_private; in drm_atomic_helper_check_planes()
1036 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
1039 ret = funcs->atomic_check(plane, state); in drm_atomic_helper_check_planes()
1049 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
1051 funcs = crtc->helper_private; in drm_atomic_helper_check_planes()
1053 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
1056 ret = funcs->atomic_check(crtc, state); in drm_atomic_helper_check_planes()
1172 const struct drm_encoder_helper_funcs *funcs; in encoder_bridge_disable() local
1204 funcs = encoder->helper_private; in encoder_bridge_disable()
1217 if (funcs) { in encoder_bridge_disable()
1218 if (funcs->atomic_disable) in encoder_bridge_disable()
1219 funcs->atomic_disable(encoder, state); in encoder_bridge_disable()
1220 else if (new_conn_state->crtc && funcs->prepare) in encoder_bridge_disable()
1221 funcs->prepare(encoder); in encoder_bridge_disable()
1222 else if (funcs->disable) in encoder_bridge_disable()
1223 funcs->disable(encoder); in encoder_bridge_disable()
1224 else if (funcs->dpms) in encoder_bridge_disable()
1225 funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in encoder_bridge_disable()
1238 const struct drm_crtc_helper_funcs *funcs; in crtc_disable() local
1248 funcs = crtc->helper_private; in crtc_disable()
1255 if (new_crtc_state->enable && funcs->prepare) in crtc_disable()
1256 funcs->prepare(crtc); in crtc_disable()
1257 else if (funcs->atomic_disable) in crtc_disable()
1258 funcs->atomic_disable(crtc, state); in crtc_disable()
1259 else if (funcs->disable) in crtc_disable()
1260 funcs->disable(crtc); in crtc_disable()
1261 else if (funcs->dpms) in crtc_disable()
1262 funcs->dpms(crtc, DRM_MODE_DPMS_OFF); in crtc_disable()
1455 const struct drm_crtc_helper_funcs *funcs; in crtc_set_mode() local
1460 funcs = crtc->helper_private; in crtc_set_mode()
1462 if (new_crtc_state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
1466 funcs->mode_set_nofb(crtc); in crtc_set_mode()
1471 const struct drm_encoder_helper_funcs *funcs; in crtc_set_mode() local
1480 funcs = encoder->helper_private; in crtc_set_mode()
1495 if (funcs && funcs->atomic_mode_set) { in crtc_set_mode()
1496 funcs->atomic_mode_set(encoder, new_crtc_state, in crtc_set_mode()
1498 } else if (funcs && funcs->mode_set) { in crtc_set_mode()
1499 funcs->mode_set(encoder, mode, adjusted_mode); in crtc_set_mode()
1541 const struct drm_connector_helper_funcs *funcs; in drm_atomic_helper_commit_writebacks() local
1543 funcs = connector->helper_private; in drm_atomic_helper_commit_writebacks()
1544 if (!funcs->atomic_commit) in drm_atomic_helper_commit_writebacks()
1549 funcs->atomic_commit(connector, state); in drm_atomic_helper_commit_writebacks()
1595 const struct drm_crtc_helper_funcs *funcs; in crtc_enable() local
1604 funcs = crtc->helper_private; in crtc_enable()
1609 if (funcs->atomic_enable) in crtc_enable()
1610 funcs->atomic_enable(crtc, state); in crtc_enable()
1611 else if (funcs->commit) in crtc_enable()
1612 funcs->commit(crtc); in crtc_enable()
1625 const struct drm_encoder_helper_funcs *funcs; in encoder_bridge_enable() local
1637 funcs = encoder->helper_private; in encoder_bridge_enable()
1648 if (funcs) { in encoder_bridge_enable()
1649 if (funcs->atomic_enable) in encoder_bridge_enable()
1650 funcs->atomic_enable(encoder, state); in encoder_bridge_enable()
1651 else if (funcs->enable) in encoder_bridge_enable()
1652 funcs->enable(encoder); in encoder_bridge_enable()
1653 else if (funcs->commit) in encoder_bridge_enable()
1654 funcs->commit(encoder); in encoder_bridge_enable()
1951 const struct drm_mode_config_helper_funcs *funcs; in commit_tail() local
1958 funcs = dev->mode_config.helper_private; in commit_tail()
1985 if (funcs && funcs->atomic_commit_tail) in commit_tail()
1986 funcs->atomic_commit_tail(state); in commit_tail()
2030 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_check() local
2056 funcs = plane->helper_private; in drm_atomic_helper_async_check()
2057 if (!funcs->atomic_async_update) { in drm_atomic_helper_async_check()
2084 ret = funcs->atomic_async_check(plane, state, false); in drm_atomic_helper_async_check()
2111 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_commit() local
2118 funcs = plane->helper_private; in drm_atomic_helper_async_commit()
2119 funcs->atomic_async_update(plane, state); in drm_atomic_helper_async_commit()
2435 const struct drm_mode_config_helper_funcs *funcs; in drm_atomic_helper_setup_commit() local
2438 funcs = state->dev->mode_config.helper_private; in drm_atomic_helper_setup_commit()
2532 if (funcs && funcs->atomic_commit_setup) in drm_atomic_helper_setup_commit()
2533 return funcs->atomic_commit_setup(state); in drm_atomic_helper_setup_commit()
2748 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2750 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2752 if (funcs->prepare_fb) { in drm_atomic_helper_prepare_planes()
2753 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2757 WARN_ON_ONCE(funcs->cleanup_fb); in drm_atomic_helper_prepare_planes()
2769 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_prepare_planes() local
2771 if (funcs->begin_fb_access) { in drm_atomic_helper_prepare_planes()
2772 ret = funcs->begin_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2782 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_prepare_planes() local
2787 if (funcs->end_fb_access) in drm_atomic_helper_prepare_planes()
2788 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2793 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2798 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2800 if (funcs->cleanup_fb) in drm_atomic_helper_prepare_planes()
2801 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2826 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_unprepare_planes() local
2828 if (funcs->end_fb_access) in drm_atomic_helper_unprepare_planes()
2829 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2833 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_unprepare_planes() local
2835 if (funcs->cleanup_fb) in drm_atomic_helper_unprepare_planes()
2836 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2900 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2902 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2904 if (!funcs || !funcs->atomic_begin) in drm_atomic_helper_commit_planes()
2910 funcs->atomic_begin(crtc, state); in drm_atomic_helper_commit_planes()
2914 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2917 funcs = plane->helper_private; in drm_atomic_helper_commit_planes()
2919 if (!funcs) in drm_atomic_helper_commit_planes()
2942 if (disabling && funcs->atomic_disable) { in drm_atomic_helper_commit_planes()
2951 funcs->atomic_disable(plane, state); in drm_atomic_helper_commit_planes()
2953 funcs->atomic_update(plane, state); in drm_atomic_helper_commit_planes()
2955 if (!disabling && funcs->atomic_enable) { in drm_atomic_helper_commit_planes()
2957 funcs->atomic_enable(plane, state); in drm_atomic_helper_commit_planes()
2963 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2965 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2967 if (!funcs || !funcs->atomic_flush) in drm_atomic_helper_commit_planes()
2973 funcs->atomic_flush(crtc, state); in drm_atomic_helper_commit_planes()
2981 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_commit_planes() local
2983 if (funcs->end_fb_access) in drm_atomic_helper_commit_planes()
2984 funcs->end_fb_access(plane, old_plane_state); in drm_atomic_helper_commit_planes()
3125 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes() local
3127 if (funcs->cleanup_fb) in drm_atomic_helper_cleanup_planes()
3128 funcs->cleanup_fb(plane, old_plane_state); in drm_atomic_helper_cleanup_planes()