Lines Matching refs:funcs
122 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
128 if (funcs->atomic_best_encoder)
129 new_encoder = funcs->atomic_best_encoder(connector, new_conn_state);
130 else if (funcs->best_encoder)
131 new_encoder = funcs->best_encoder(connector);
292 const struct drm_connector_helper_funcs *funcs;
349 funcs = connector->helper_private;
351 if (funcs->atomic_best_encoder)
352 new_encoder = funcs->atomic_best_encoder(connector,
354 else if (funcs->best_encoder)
355 new_encoder = funcs->best_encoder(connector);
425 const struct drm_encoder_helper_funcs *funcs;
442 funcs = encoder->helper_private;
453 if (funcs && funcs->atomic_check) {
454 ret = funcs->atomic_check(encoder, new_crtc_state,
461 } else if (funcs && funcs->mode_fixup) {
462 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode,
473 const struct drm_crtc_helper_funcs *funcs;
482 funcs = crtc->helper_private;
483 if (!funcs || !funcs->mode_fixup)
486 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
664 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
690 if (funcs->atomic_check)
691 ret = funcs->atomic_check(connector, state);
727 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
732 if (funcs->atomic_check)
733 ret = funcs->atomic_check(connector, state);
869 const struct drm_plane_helper_funcs *funcs;
873 funcs = plane->helper_private;
879 if (!funcs || !funcs->atomic_check)
882 ret = funcs->atomic_check(plane, new_plane_state);
891 const struct drm_crtc_helper_funcs *funcs;
893 funcs = crtc->helper_private;
895 if (!funcs || !funcs->atomic_check)
898 ret = funcs->atomic_check(crtc, new_crtc_state);
995 const struct drm_encoder_helper_funcs *funcs;
1025 funcs = encoder->helper_private;
1038 if (funcs) {
1039 if (funcs->atomic_disable)
1040 funcs->atomic_disable(encoder, old_state);
1041 else if (new_conn_state->crtc && funcs->prepare)
1042 funcs
1043 else if (funcs->disable)
1044 funcs->disable(encoder);
1045 else if (funcs->dpms)
1046 funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
1053 const struct drm_crtc_helper_funcs *funcs;
1063 funcs = crtc->helper_private;
1070 if (new_crtc_state->enable && funcs->prepare)
1071 funcs->prepare(crtc);
1072 else if (funcs->atomic_disable)
1073 funcs->atomic_disable(crtc, old_crtc_state);
1074 else if (funcs->disable)
1075 funcs->disable(crtc);
1076 else if (funcs->dpms)
1077 funcs->dpms(crtc, DRM_MODE_DPMS_OFF);
1184 const struct drm_crtc_helper_funcs *funcs;
1189 funcs = crtc->helper_private;
1191 if (new_crtc_state->enable && funcs->mode_set_nofb) {
1195 funcs->mode_set_nofb(crtc);
1200 const struct drm_encoder_helper_funcs *funcs;
1209 funcs = encoder->helper_private;
1224 if (funcs && funcs->atomic_mode_set) {
1225 funcs->atomic_mode_set(encoder, new_crtc_state,
1227 } else if (funcs && funcs->mode_set) {
1228 funcs->mode_set(encoder, mode, adjusted_mode);
1269 const struct drm_connector_helper_funcs *funcs;
1271 funcs = connector->helper_private;
1272 if (!funcs->atomic_commit)
1277 funcs->atomic_commit(connector, new_conn_state);
1307 const struct drm_crtc_helper_funcs *funcs;
1316 funcs = crtc->helper_private;
1321 if (funcs->atomic_enable)
1322 funcs->atomic_enable(crtc, old_crtc_state);
1323 else if (funcs->commit)
1324 funcs->commit(crtc);
1329 const struct drm_encoder_helper_funcs *funcs;
1341 funcs = encoder->helper_private;
1353 if (funcs) {
1354 if (funcs->atomic_enable)
1355 funcs->atomic_enable(encoder, old_state);
1356 else if (funcs->enable)
1357 funcs->enable(encoder);
1358 else if (funcs->commit)
1359 funcs->commit(encoder);
1613 const struct drm_mode_config_helper_funcs *funcs;
1620 funcs = dev->mode_config.helper_private;
1647 if (funcs && funcs->atomic_commit_tail)
1648 funcs->atomic_commit_tail(old_state);
1692 const struct drm_plane_helper_funcs *funcs;
1711 funcs = plane->helper_private;
1712 if (!funcs->atomic_async_update)
1727 return funcs->atomic_async_check(plane, new_plane_state);
1749 const struct drm_plane_helper_funcs *funcs;
1756 funcs = plane->helper_private;
1757 funcs->atomic_async_update(plane, plane_state);
2394 const struct drm_plane_helper_funcs *funcs;
2396 funcs = plane->helper_private;
2398 if (funcs->prepare_fb) {
2399 ret = funcs->prepare_fb(plane, new_plane_state);
2409 const struct drm_plane_helper_funcs *funcs;
2414 funcs = plane->helper_private;
2416 if (funcs->cleanup_fb)
2417 funcs->cleanup_fb(plane, new_plane_state);
2483 const struct drm_crtc_helper_funcs *funcs;
2485 funcs = crtc->helper_private;
2487 if (!funcs || !funcs->atomic_begin)
2493 funcs->atomic_begin(crtc, old_crtc_state);
2497 const struct drm_plane_helper_funcs *funcs;
2500 funcs = plane->helper_private;
2502 if (!funcs)
2525 if (disabling && funcs->atomic_disable) {
2534 funcs->atomic_disable(plane, old_plane_state);
2536 funcs->atomic_update(plane, old_plane_state);
2541 const struct drm_crtc_helper_funcs *funcs;
2543 funcs = crtc->helper_private;
2545 if (!funcs || !funcs->atomic_flush)
2551 funcs->atomic_flush(crtc, old_crtc_state);
2684 const struct drm_plane_helper_funcs *funcs;
2696 funcs = plane->helper_private;
2698 if (funcs->cleanup_fb)
2699 funcs->cleanup_fb(plane, plane_state);