Lines Matching defs:funcs

121 		const struct drm_connector_helper_funcs *funcs = connector->helper_private;
127 if (funcs->atomic_best_encoder)
128 new_encoder = funcs->atomic_best_encoder(connector,
130 else if (funcs->best_encoder)
131 new_encoder = funcs->best_encoder(connector);
297 const struct drm_connector_helper_funcs *funcs;
357 funcs = connector->helper_private;
359 if (funcs->atomic_best_encoder)
360 new_encoder = funcs->atomic_best_encoder(connector, state);
361 else if (funcs->best_encoder)
362 new_encoder = funcs->best_encoder(connector);
435 const struct drm_encoder_helper_funcs *funcs;
452 funcs = encoder->helper_private;
463 if (funcs && funcs->atomic_check) {
464 ret = funcs->atomic_check(encoder, new_crtc_state,
472 } else if (funcs && funcs->mode_fixup) {
473 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode,
485 const struct drm_crtc_helper_funcs *funcs;
494 funcs = crtc->helper_private;
495 if (!funcs || !funcs->mode_fixup)
498 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
711 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
738 if (funcs->atomic_check)
739 ret = funcs->atomic_check(connector, state);
784 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
789 if (funcs->atomic_check)
790 ret = funcs->atomic_check(connector, state);
1025 const struct drm_plane_helper_funcs *funcs;
1029 funcs = plane->helper_private;
1035 if (!funcs || !funcs->atomic_check)
1038 ret = funcs->atomic_check(plane, state);
1048 const struct drm_crtc_helper_funcs *funcs;
1050 funcs = crtc->helper_private;
1052 if (!funcs || !funcs->atomic_check)
1055 ret = funcs->atomic_check(crtc, state);
1172 const struct drm_encoder_helper_funcs *funcs;
1204 funcs = encoder->helper_private;
1217 if (funcs) {
1218 if (funcs->atomic_disable)
1219 funcs->atomic_disable(encoder, state);
1220 else if (new_conn_state->crtc && funcs->prepare)
1221 funcs->prepare(encoder);
1222 else if (funcs->disable)
1223 funcs->disable(encoder);
1224 else if (funcs->dpms)
1225 funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
1232 const struct drm_crtc_helper_funcs *funcs;
1242 funcs = crtc->helper_private;
1249 if (new_crtc_state->enable && funcs->prepare)
1250 funcs->prepare(crtc);
1251 else if (funcs->atomic_disable)
1252 funcs->atomic_disable(crtc, state);
1253 else if (funcs->disable)
1254 funcs->disable(crtc);
1255 else if (funcs->dpms)
1256 funcs->dpms(crtc, DRM_MODE_DPMS_OFF);
1387 const struct drm_crtc_helper_funcs *funcs;
1392 funcs = crtc->helper_private;
1394 if (new_crtc_state->enable && funcs->mode_set_nofb) {
1398 funcs->mode_set_nofb(crtc);
1403 const struct drm_encoder_helper_funcs *funcs;
1412 funcs = encoder->helper_private;
1427 if (funcs && funcs->atomic_mode_set) {
1428 funcs->atomic_mode_set(encoder, new_crtc_state,
1430 } else if (funcs && funcs->mode_set) {
1431 funcs->mode_set(encoder, mode, adjusted_mode);
1473 const struct drm_connector_helper_funcs *funcs;
1475 funcs = connector->helper_private;
1476 if (!funcs->atomic_commit)
1481 funcs->atomic_commit(connector, state);
1511 const struct drm_crtc_helper_funcs *funcs;
1520 funcs = crtc->helper_private;
1525 if (funcs->atomic_enable)
1526 funcs->atomic_enable(crtc, state);
1527 else if (funcs->commit)
1528 funcs->commit(crtc);
1533 const struct drm_encoder_helper_funcs *funcs;
1545 funcs = encoder->helper_private;
1557 if (funcs) {
1558 if (funcs->atomic_enable)
1559 funcs->atomic_enable(encoder, state);
1560 else if (funcs->enable)
1561 funcs->enable(encoder);
1562 else if (funcs->commit)
1563 funcs->commit(encoder);
1836 const struct drm_mode_config_helper_funcs *funcs;
1843 funcs = dev->mode_config.helper_private;
1870 if (funcs && funcs->atomic_commit_tail)
1871 funcs->atomic_commit_tail(state);
1915 const struct drm_plane_helper_funcs *funcs;
1941 funcs = plane->helper_private;
1942 if (!funcs->atomic_async_update) {
1969 ret = funcs->atomic_async_check(plane, state, false);
1996 const struct drm_plane_helper_funcs *funcs;
2003 funcs = plane->helper_private;
2004 funcs->atomic_async_update(plane, state);
2320 const struct drm_mode_config_helper_funcs *funcs;
2323 funcs = state->dev->mode_config.helper_private;
2417 if (funcs && funcs->atomic_commit_setup)
2418 return funcs->atomic_commit_setup(state);
2633 const struct drm_plane_helper_funcs *funcs;
2635 funcs = plane->helper_private;
2637 if (funcs->prepare_fb) {
2638 ret = funcs->prepare_fb(plane, new_plane_state);
2642 WARN_ON_ONCE(funcs->cleanup_fb);
2654 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2656 if (funcs->begin_fb_access) {
2657 ret = funcs->begin_fb_access(plane, new_plane_state);
2667 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2672 if (funcs->end_fb_access)
2673 funcs->end_fb_access(plane, new_plane_state);
2678 const struct drm_plane_helper_funcs *funcs;
2683 funcs = plane->helper_private;
2685 if (funcs->cleanup_fb)
2686 funcs->cleanup_fb(plane, new_plane_state);
2711 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2713 if (funcs->end_fb_access)
2714 funcs->end_fb_access(plane, new_plane_state);
2718 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2720 if (funcs->cleanup_fb)
2721 funcs->cleanup_fb(plane, new_plane_state);
2785 const struct drm_crtc_helper_funcs *funcs;
2787 funcs = crtc->helper_private;
2789 if (!funcs || !funcs->atomic_begin)
2795 funcs->atomic_begin(crtc, state);
2799 const struct drm_plane_helper_funcs *funcs;
2802 funcs = plane->helper_private;
2804 if (!funcs)
2827 if (disabling && funcs->atomic_disable) {
2836 funcs->atomic_disable(plane, state);
2838 funcs->atomic_update(plane, state);
2840 if (!disabling && funcs->atomic_enable) {
2842 funcs->atomic_enable(plane, state);
2848 const struct drm_crtc_helper_funcs *funcs;
2850 funcs = crtc->helper_private;
2852 if (!funcs || !funcs->atomic_flush)
2858 funcs->atomic_flush(crtc, state);
2866 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2868 if (funcs->end_fb_access)
2869 funcs->end_fb_access(plane, old_plane_state);
3010 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
3012 if (funcs->cleanup_fb)
3013 funcs->cleanup_fb(plane, old_plane_state);