Lines Matching defs:funcs

120 		const struct drm_connector_helper_funcs *funcs = connector->helper_private;
126 if (funcs->atomic_best_encoder)
127 new_encoder = funcs->atomic_best_encoder(connector,
129 else if (funcs->best_encoder)
130 new_encoder = funcs->best_encoder(connector);
296 const struct drm_connector_helper_funcs *funcs;
356 funcs = connector->helper_private;
358 if (funcs->atomic_best_encoder)
359 new_encoder = funcs->atomic_best_encoder(connector, state);
360 else if (funcs->best_encoder)
361 new_encoder = funcs->best_encoder(connector);
434 const struct drm_encoder_helper_funcs *funcs;
451 funcs = encoder->helper_private;
462 if (funcs && funcs->atomic_check) {
463 ret = funcs->atomic_check(encoder, new_crtc_state,
471 } else if (funcs && funcs->mode_fixup) {
472 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode,
484 const struct drm_crtc_helper_funcs *funcs;
493 funcs = crtc->helper_private;
494 if (!funcs || !funcs->mode_fixup)
497 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
685 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
712 if (funcs->atomic_check)
713 ret = funcs->atomic_check(connector, state);
754 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
759 if (funcs->atomic_check)
760 ret = funcs->atomic_check(connector, state);
995 const struct drm_plane_helper_funcs *funcs;
999 funcs = plane->helper_private;
1005 if (!funcs || !funcs->atomic_check)
1008 ret = funcs->atomic_check(plane, state);
1018 const struct drm_crtc_helper_funcs *funcs;
1020 funcs = crtc->helper_private;
1022 if (!funcs || !funcs->atomic_check)
1025 ret = funcs->atomic_check(crtc, state);
1133 const struct drm_encoder_helper_funcs *funcs;
1165 funcs = encoder->helper_private;
1178 if (funcs) {
1179 if (funcs->atomic_disable)
1180 funcs->atomic_disable(encoder, old_state);
1181 else if (new_conn_state->crtc && funcs->prepare)
1182 funcs->prepare(encoder);
1183 else if (funcs->disable)
1184 funcs->disable(encoder);
1185 else if (funcs->dpms)
1186 funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
1193 const struct drm_crtc_helper_funcs *funcs;
1203 funcs = crtc->helper_private;
1210 if (new_crtc_state->enable && funcs->prepare)
1211 funcs->prepare(crtc);
1212 else if (funcs->atomic_disable)
1213 funcs->atomic_disable(crtc, old_state);
1214 else if (funcs->disable)
1215 funcs->disable(crtc);
1216 else if (funcs->dpms)
1217 funcs->dpms(crtc, DRM_MODE_DPMS_OFF);
1348 const struct drm_crtc_helper_funcs *funcs;
1353 funcs = crtc->helper_private;
1355 if (new_crtc_state->enable && funcs->mode_set_nofb) {
1359 funcs->mode_set_nofb(crtc);
1364 const struct drm_encoder_helper_funcs *funcs;
1373 funcs = encoder->helper_private;
1388 if (funcs && funcs->atomic_mode_set) {
1389 funcs->atomic_mode_set(encoder, new_crtc_state,
1391 } else if (funcs && funcs->mode_set) {
1392 funcs->mode_set(encoder, mode, adjusted_mode);
1434 const struct drm_connector_helper_funcs *funcs;
1436 funcs = connector->helper_private;
1437 if (!funcs->atomic_commit)
1442 funcs->atomic_commit(connector, old_state);
1472 const struct drm_crtc_helper_funcs *funcs;
1481 funcs = crtc->helper_private;
1486 if (funcs->atomic_enable)
1487 funcs->atomic_enable(crtc, old_state);
1488 else if (funcs->commit)
1489 funcs->commit(crtc);
1494 const struct drm_encoder_helper_funcs *funcs;
1506 funcs = encoder->helper_private;
1518 if (funcs) {
1519 if (funcs->atomic_enable)
1520 funcs->atomic_enable(encoder, old_state);
1521 else if (funcs->enable)
1522 funcs->enable(encoder);
1523 else if (funcs->commit)
1524 funcs->commit(encoder);
1797 const struct drm_mode_config_helper_funcs *funcs;
1804 funcs = dev->mode_config.helper_private;
1831 if (funcs && funcs->atomic_commit_tail)
1832 funcs->atomic_commit_tail(old_state);
1876 const struct drm_plane_helper_funcs *funcs;
1902 funcs = plane->helper_private;
1903 if (!funcs->atomic_async_update) {
1930 ret = funcs->atomic_async_check(plane, state);
1957 const struct drm_plane_helper_funcs *funcs;
1964 funcs = plane->helper_private;
1965 funcs->atomic_async_update(plane, state);
2282 const struct drm_mode_config_helper_funcs *funcs;
2285 funcs = state->dev->mode_config.helper_private;
2379 if (funcs && funcs->atomic_commit_setup)
2380 return funcs->atomic_commit_setup(state);
2595 const struct drm_plane_helper_funcs *funcs;
2597 funcs = plane->helper_private;
2599 if (funcs->prepare_fb) {
2600 ret = funcs->prepare_fb(plane, new_plane_state);
2604 WARN_ON_ONCE(funcs->cleanup_fb);
2616 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2618 if (funcs->begin_fb_access) {
2619 ret = funcs->begin_fb_access(plane, new_plane_state);
2629 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2634 if (funcs->end_fb_access)
2635 funcs->end_fb_access(plane, new_plane_state);
2640 const struct drm_plane_helper_funcs *funcs;
2645 funcs = plane->helper_private;
2647 if (funcs->cleanup_fb)
2648 funcs->cleanup_fb(plane, new_plane_state);
2673 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2675 if (funcs->end_fb_access)
2676 funcs->end_fb_access(plane, new_plane_state);
2680 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2682 if (funcs->cleanup_fb)
2683 funcs->cleanup_fb(plane, new_plane_state);
2747 const struct drm_crtc_helper_funcs *funcs;
2749 funcs = crtc->helper_private;
2751 if (!funcs || !funcs->atomic_begin)
2757 funcs->atomic_begin(crtc, old_state);
2761 const struct drm_plane_helper_funcs *funcs;
2764 funcs = plane->helper_private;
2766 if (!funcs)
2789 if (disabling && funcs->atomic_disable) {
2798 funcs->atomic_disable(plane, old_state);
2800 funcs->atomic_update(plane, old_state);
2802 if (!disabling && funcs->atomic_enable) {
2804 funcs->atomic_enable(plane, old_state);
2810 const struct drm_crtc_helper_funcs *funcs;
2812 funcs = crtc->helper_private;
2814 if (!funcs || !funcs->atomic_flush)
2820 funcs->atomic_flush(crtc, old_state);
2828 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2830 if (funcs->end_fb_access)
2831 funcs->end_fb_access(plane, old_plane_state);
2972 const struct drm_plane_helper_funcs *funcs = plane->helper_private;
2974 if (funcs->cleanup_fb)
2975 funcs->cleanup_fb(plane, old_plane_state);