Lines Matching refs:funcs

120 		const struct drm_connector_helper_funcs *funcs = connector->helper_private;  in handle_conflicting_encoders()  local
126 if (funcs->atomic_best_encoder) in handle_conflicting_encoders()
127 new_encoder = funcs->atomic_best_encoder(connector, in handle_conflicting_encoders()
129 else if (funcs->best_encoder) in handle_conflicting_encoders()
130 new_encoder = funcs->best_encoder(connector); in handle_conflicting_encoders()
296 const struct drm_connector_helper_funcs *funcs; in update_connector_routing() local
356 funcs = connector->helper_private; in update_connector_routing()
358 if (funcs->atomic_best_encoder) in update_connector_routing()
359 new_encoder = funcs->atomic_best_encoder(connector, state); in update_connector_routing()
360 else if (funcs->best_encoder) in update_connector_routing()
361 new_encoder = funcs->best_encoder(connector); in update_connector_routing()
434 const struct drm_encoder_helper_funcs *funcs; in mode_fixup() local
451 funcs = encoder->helper_private; in mode_fixup()
462 if (funcs && funcs->atomic_check) { in mode_fixup()
463 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
471 } else if (funcs && funcs->mode_fixup) { in mode_fixup()
472 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
484 const struct drm_crtc_helper_funcs *funcs; in mode_fixup() local
493 funcs = crtc->helper_private; in mode_fixup()
494 if (!funcs || !funcs->mode_fixup) in mode_fixup()
497 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, in mode_fixup()
685 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
712 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
713 ret = funcs->atomic_check(connector, state); in drm_atomic_helper_check_modeset()
754 const struct drm_connector_helper_funcs *funcs = connector->helper_private; in drm_atomic_helper_check_modeset() local
759 if (funcs->atomic_check) in drm_atomic_helper_check_modeset()
760 ret = funcs->atomic_check(connector, state); in drm_atomic_helper_check_modeset()
993 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
997 funcs = plane->helper_private; in drm_atomic_helper_check_planes()
1003 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
1006 ret = funcs->atomic_check(plane, state); in drm_atomic_helper_check_planes()
1016 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
1018 funcs = crtc->helper_private; in drm_atomic_helper_check_planes()
1020 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
1023 ret = funcs->atomic_check(crtc, state); in drm_atomic_helper_check_planes()
1131 const struct drm_encoder_helper_funcs *funcs; in disable_outputs() local
1163 funcs = encoder->helper_private; in disable_outputs()
1176 if (funcs) { in disable_outputs()
1177 if (funcs->atomic_disable) in disable_outputs()
1178 funcs->atomic_disable(encoder, old_state); in disable_outputs()
1179 else if (new_conn_state->crtc && funcs->prepare) in disable_outputs()
1180 funcs->prepare(encoder); in disable_outputs()
1181 else if (funcs->disable) in disable_outputs()
1182 funcs->disable(encoder); in disable_outputs()
1183 else if (funcs->dpms) in disable_outputs()
1184 funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in disable_outputs()
1191 const struct drm_crtc_helper_funcs *funcs; in disable_outputs() local
1201 funcs = crtc->helper_private; in disable_outputs()
1208 if (new_crtc_state->enable && funcs->prepare) in disable_outputs()
1209 funcs->prepare(crtc); in disable_outputs()
1210 else if (funcs->atomic_disable) in disable_outputs()
1211 funcs->atomic_disable(crtc, old_state); in disable_outputs()
1212 else if (funcs->disable) in disable_outputs()
1213 funcs->disable(crtc); in disable_outputs()
1214 else if (funcs->dpms) in disable_outputs()
1215 funcs->dpms(crtc, DRM_MODE_DPMS_OFF); in disable_outputs()
1346 const struct drm_crtc_helper_funcs *funcs; in crtc_set_mode() local
1351 funcs = crtc->helper_private; in crtc_set_mode()
1353 if (new_crtc_state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
1357 funcs->mode_set_nofb(crtc); in crtc_set_mode()
1362 const struct drm_encoder_helper_funcs *funcs; in crtc_set_mode() local
1371 funcs = encoder->helper_private; in crtc_set_mode()
1386 if (funcs && funcs->atomic_mode_set) { in crtc_set_mode()
1387 funcs->atomic_mode_set(encoder, new_crtc_state, in crtc_set_mode()
1389 } else if (funcs && funcs->mode_set) { in crtc_set_mode()
1390 funcs->mode_set(encoder, mode, adjusted_mode); in crtc_set_mode()
1432 const struct drm_connector_helper_funcs *funcs; in drm_atomic_helper_commit_writebacks() local
1434 funcs = connector->helper_private; in drm_atomic_helper_commit_writebacks()
1435 if (!funcs->atomic_commit) in drm_atomic_helper_commit_writebacks()
1440 funcs->atomic_commit(connector, old_state); in drm_atomic_helper_commit_writebacks()
1470 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
1479 funcs = crtc->helper_private; in drm_atomic_helper_commit_modeset_enables()
1484 if (funcs->atomic_enable) in drm_atomic_helper_commit_modeset_enables()
1485 funcs->atomic_enable(crtc, old_state); in drm_atomic_helper_commit_modeset_enables()
1486 else if (funcs->commit) in drm_atomic_helper_commit_modeset_enables()
1487 funcs->commit(crtc); in drm_atomic_helper_commit_modeset_enables()
1492 const struct drm_encoder_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
1504 funcs = encoder->helper_private; in drm_atomic_helper_commit_modeset_enables()
1516 if (funcs) { in drm_atomic_helper_commit_modeset_enables()
1517 if (funcs->atomic_enable) in drm_atomic_helper_commit_modeset_enables()
1518 funcs->atomic_enable(encoder, old_state); in drm_atomic_helper_commit_modeset_enables()
1519 else if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
1520 funcs->enable(encoder); in drm_atomic_helper_commit_modeset_enables()
1521 else if (funcs->commit) in drm_atomic_helper_commit_modeset_enables()
1522 funcs->commit(encoder); in drm_atomic_helper_commit_modeset_enables()
1795 const struct drm_mode_config_helper_funcs *funcs; in commit_tail() local
1802 funcs = dev->mode_config.helper_private; in commit_tail()
1829 if (funcs && funcs->atomic_commit_tail) in commit_tail()
1830 funcs->atomic_commit_tail(old_state); in commit_tail()
1874 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_check() local
1900 funcs = plane->helper_private; in drm_atomic_helper_async_check()
1901 if (!funcs->atomic_async_update) { in drm_atomic_helper_async_check()
1928 ret = funcs->atomic_async_check(plane, state); in drm_atomic_helper_async_check()
1955 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_async_commit() local
1962 funcs = plane->helper_private; in drm_atomic_helper_async_commit()
1963 funcs->atomic_async_update(plane, state); in drm_atomic_helper_async_commit()
2280 const struct drm_mode_config_helper_funcs *funcs; in drm_atomic_helper_setup_commit() local
2283 funcs = state->dev->mode_config.helper_private; in drm_atomic_helper_setup_commit()
2377 if (funcs && funcs->atomic_commit_setup) in drm_atomic_helper_setup_commit()
2378 return funcs->atomic_commit_setup(state); in drm_atomic_helper_setup_commit()
2593 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2595 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2597 if (funcs->prepare_fb) { in drm_atomic_helper_prepare_planes()
2598 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2602 WARN_ON_ONCE(funcs->cleanup_fb); in drm_atomic_helper_prepare_planes()
2614 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_prepare_planes() local
2616 if (funcs->begin_fb_access) { in drm_atomic_helper_prepare_planes()
2617 ret = funcs->begin_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2627 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_prepare_planes() local
2632 if (funcs->end_fb_access) in drm_atomic_helper_prepare_planes()
2633 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2638 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
2643 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
2645 if (funcs->cleanup_fb) in drm_atomic_helper_prepare_planes()
2646 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2712 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2714 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2716 if (!funcs || !funcs->atomic_begin) in drm_atomic_helper_commit_planes()
2722 funcs->atomic_begin(crtc, old_state); in drm_atomic_helper_commit_planes()
2726 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2729 funcs = plane->helper_private; in drm_atomic_helper_commit_planes()
2731 if (!funcs) in drm_atomic_helper_commit_planes()
2754 if (disabling && funcs->atomic_disable) { in drm_atomic_helper_commit_planes()
2763 funcs->atomic_disable(plane, old_state); in drm_atomic_helper_commit_planes()
2765 funcs->atomic_update(plane, old_state); in drm_atomic_helper_commit_planes()
2767 if (!disabling && funcs->atomic_enable) { in drm_atomic_helper_commit_planes()
2769 funcs->atomic_enable(plane, old_state); in drm_atomic_helper_commit_planes()
2775 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
2777 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
2779 if (!funcs || !funcs->atomic_flush) in drm_atomic_helper_commit_planes()
2785 funcs->atomic_flush(crtc, old_state); in drm_atomic_helper_commit_planes()
2925 const struct drm_plane_helper_funcs *funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes() local
2927 if (funcs->end_fb_access) in drm_atomic_helper_cleanup_planes()
2928 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_cleanup_planes()
2932 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_cleanup_planes() local
2944 funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes()
2946 if (funcs->cleanup_fb) in drm_atomic_helper_cleanup_planes()
2947 funcs->cleanup_fb(plane, plane_state); in drm_atomic_helper_cleanup_planes()