Lines Matching refs:funcs
121 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in handle_conflicting_encoders() local
127 if (funcs->atomic_best_encoder) in handle_conflicting_encoders()
128 new_encoder = funcs->atomic_best_encoder(connector, in handle_conflicting_encoders()
130 else if (funcs->best_encoder) in handle_conflicting_encoders()
131 new_encoder = funcs->best_encoder(connector); in handle_conflicting_encoders()
297 const struct drm_connector_helper_funcs *funcs; in update_connector_routing() local
357 funcs = connector->helper_private; in update_connector_routing()
359 if (funcs->atomic_best_encoder) in update_connector_routing()
360 new_encoder = funcs->atomic_best_encoder(connector, state); in update_connector_routing()
361 else if (funcs->best_encoder) in update_connector_routing()
362 new_encoder = funcs->best_encoder(connector); in update_connector_routing()
435 const struct drm_encoder_helper_funcs *funcs; in mode_fixup() local
452 funcs = encoder->helper_private; in mode_fixup()
463 if (funcs && funcs->atomic_check) { in mode_fixup()
464 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
472 } else if (funcs && funcs->mode_fixup) { in mode_fixup()
473 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
485 const struct drm_crtc_helper_funcs *funcs; in mode_fixup() local
494 funcs = crtc->helper_private; in mode_fixup()
495 if (!funcs || !funcs->mode_fixup) in mode_fixup()
498 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, in mode_fixup()
686 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
713 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
714 ret = funcs->atomic_check(connector, state); in drm_atomic_helper_check_modeset()
755 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
760 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
761 ret = funcs->atomic_check(connector, state); in drm_atomic_helper_check_modeset()
996 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
1000 funcs = plane->helper_private; in drm_atomic_helper_check_planes()
1006 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
1009 ret = funcs->atomic_check(plane, state); in drm_atomic_helper_check_planes()
1019 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
1021 funcs = crtc->helper_private; in drm_atomic_helper_check_planes()
1023 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
1026 ret = funcs->atomic_check(crtc, state); in drm_atomic_helper_check_planes()
1134 const struct drm_encoder_helper_funcs *funcs; in disable_outputs() local
1166 funcs = encoder->helper_private; in disable_outputs()
1179 if (funcs) { in disable_outputs()
1180 if (funcs->atomic_disable) in disable_outputs()
1181 funcs->atomic_disable(encoder, old_state); in disable_outputs()
1182 else if (new_conn_state->crtc && funcs->prepare) in disable_outputs()
1183 funcs->prepare(encoder); in disable_outputs()
1184 else if (funcs->disable) in disable_outputs()
1185 funcs->disable(encoder); in disable_outputs()
1186 else if (funcs->dpms) in disable_outputs()
1187 funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in disable_outputs()
1194 const struct drm_crtc_helper_funcs *funcs; in disable_outputs() local
1204 funcs = crtc->helper_private; in disable_outputs()
1211 if (new_crtc_state->enable && funcs->prepare) in disable_outputs()
1212 funcs->prepare(crtc); in disable_outputs()
1213 else if (funcs->atomic_disable) in disable_outputs()
1214 funcs->atomic_disable(crtc, old_state); in disable_outputs()
1215 else if (funcs->disable) in disable_outputs()
1216 funcs->disable(crtc); in disable_outputs()
1217 else if (funcs->dpms) in disable_outputs()
1218 funcs->dpms(crtc, DRM_MODE_DPMS_OFF); in disable_outputs()
1349 const struct drm_crtc_helper_funcs *funcs; in crtc_set_mode() local
1354 funcs = crtc->helper_private; in crtc_set_mode()
1356 if (new_crtc_state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
1360 funcs->mode_set_nofb(crtc); in crtc_set_mode()
1365 const struct drm_encoder_helper_funcs *funcs; in crtc_set_mode() local
1374 funcs = encoder->helper_private; in crtc_set_mode()
1389 if (funcs && funcs->atomic_mode_set) { in crtc_set_mode()
1390 funcs->atomic_mode_set(encoder, new_crtc_state, in crtc_set_mode()
1392 } else if (funcs && funcs->mode_set) { in crtc_set_mode()
1393 funcs->mode_set(encoder, mode, adjusted_mode); in crtc_set_mode()
1435 const struct drm_connector_helper_funcs *funcs; in drm_atomic_helper_commit_writebacks() local
1437 funcs = connector->helper_private; in drm_atomic_helper_commit_writebacks()
1438 if (!funcs->atomic_commit) in drm_atomic_helper_commit_writebacks()
1443 funcs->atomic_commit(connector, old_state); in drm_atomic_helper_commit_writebacks()
1473 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
1482 funcs = crtc->helper_private; in drm_atomic_helper_commit_modeset_enables()
1487 if (funcs->atomic_enable) in drm_atomic_helper_commit_modeset_enables()
1488 funcs->atomic_enable(crtc, old_state); in drm_atomic_helper_commit_modeset_enables()
1489 else if (funcs->commit) in drm_atomic_helper_commit_modeset_enables()
1490 funcs->commit(crtc); in drm_atomic_helper_commit_modeset_enables()
1495 const struct drm_encoder_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
1507 funcs = encoder->helper_private; in drm_atomic_helper_commit_modeset_enables()
1519 if (funcs) { in drm_atomic_helper_commit_modeset_enables()
1520 if (funcs->atomic_enable) in drm_atomic_helper_commit_modeset_enables()
1521 funcs->atomic_enable(encoder, old_state); in drm_atomic_helper_commit_modeset_enables()
1522 else if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
1523 funcs->enable(encoder); in drm_atomic_helper_commit_modeset_enables()
1524 else if (funcs->commit) in drm_atomic_helper_commit_modeset_enables()
1525 funcs->commit(encoder); in drm_atomic_helper_commit_modeset_enables()
1798 const struct drm_mode_config_helper_funcs *funcs; in commit_tail() local
1805 funcs = dev->mode_config.helper_private; in commit_tail()
1832 if (funcs && funcs->atomic_commit_tail) in commit_tail()
1833 funcs->atomic_commit_tail(old_state); in commit_tail()
1877 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_check() local
1903 funcs = plane->helper_private; in drm_atomic_helper_async_check()
1904 if (!funcs->atomic_async_update) { in drm_atomic_helper_async_check()
1931 ret = funcs->atomic_async_check(plane, state); in drm_atomic_helper_async_check()
1958 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_commit() local
1965 funcs = plane->helper_private; in drm_atomic_helper_async_commit()
1966 funcs->atomic_async_update(plane, state); in drm_atomic_helper_async_commit()
2282 const struct drm_mode_config_helper_funcs *funcs; in drm_atomic_helper_setup_commit() local
2285 funcs = state->dev->mode_config.helper_private; in drm_atomic_helper_setup_commit()
2379 if (funcs && funcs->atomic_commit_setup) in drm_atomic_helper_setup_commit()
2380 return funcs->atomic_commit_setup(state); in drm_atomic_helper_setup_commit()
2595 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2597 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2599 if (funcs->prepare_fb) { in drm_atomic_helper_prepare_planes()
2600 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2604 WARN_ON_ONCE(funcs->cleanup_fb); in drm_atomic_helper_prepare_planes()
2616 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_prepare_planes() local
2618 if (funcs->begin_fb_access) { in drm_atomic_helper_prepare_planes()
2619 ret = funcs->begin_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2629 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_prepare_planes() local
2634 if (funcs->end_fb_access) in drm_atomic_helper_prepare_planes()
2635 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2640 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2645 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2647 if (funcs->cleanup_fb) in drm_atomic_helper_prepare_planes()
2648 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2673 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_unprepare_planes() local
2675 if (funcs->end_fb_access) in drm_atomic_helper_unprepare_planes()
2676 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2680 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_unprepare_planes() local
2682 if (funcs->cleanup_fb) in drm_atomic_helper_unprepare_planes()
2683 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2747 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2749 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2751 if (!funcs || !funcs->atomic_begin) in drm_atomic_helper_commit_planes()
2757 funcs->atomic_begin(crtc, old_state); in drm_atomic_helper_commit_planes()
2761 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2764 funcs = plane->helper_private; in drm_atomic_helper_commit_planes()
2766 if (!funcs) in drm_atomic_helper_commit_planes()
2789 if (disabling && funcs->atomic_disable) { in drm_atomic_helper_commit_planes()
2798 funcs->atomic_disable(plane, old_state); in drm_atomic_helper_commit_planes()
2800 funcs->atomic_update(plane, old_state); in drm_atomic_helper_commit_planes()
2802 if (!disabling && funcs->atomic_enable) { in drm_atomic_helper_commit_planes()
2804 funcs->atomic_enable(plane, old_state); in drm_atomic_helper_commit_planes()
2810 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2812 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2814 if (!funcs || !funcs->atomic_flush) in drm_atomic_helper_commit_planes()
2820 funcs->atomic_flush(crtc, old_state); in drm_atomic_helper_commit_planes()
2828 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_commit_planes() local
2830 if (funcs->end_fb_access) in drm_atomic_helper_commit_planes()
2831 funcs->end_fb_access(plane, old_plane_state); in drm_atomic_helper_commit_planes()
2972 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes() local
2974 if (funcs->cleanup_fb) in drm_atomic_helper_cleanup_planes()
2975 funcs->cleanup_fb(plane, old_plane_state); in drm_atomic_helper_cleanup_planes()