Lines Matching defs:funcs

118 		const struct drm_connector_helper_funcs *funcs = connector->helper_private;
124 if (funcs->atomic_best_encoder)
125 new_encoder = funcs->atomic_best_encoder(connector, new_conn_state);
126 else if (funcs->best_encoder)
127 new_encoder = funcs->best_encoder(connector);
288 const struct drm_connector_helper_funcs *funcs;
345 funcs = connector->helper_private;
347 if (funcs->atomic_best_encoder)
348 new_encoder = funcs->atomic_best_encoder(connector,
350 else if (funcs->best_encoder)
351 new_encoder = funcs->best_encoder(connector);
421 const struct drm_encoder_helper_funcs *funcs;
438 funcs = encoder->helper_private;
449 if (funcs && funcs->atomic_check) {
450 ret = funcs->atomic_check(encoder, new_crtc_state,
457 } else if (funcs && funcs->mode_fixup) {
458 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode,
469 const struct drm_crtc_helper_funcs *funcs;
478 funcs = crtc->helper_private;
479 if (!funcs || !funcs->mode_fixup)
482 ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
667 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
693 if (funcs->atomic_check)
694 ret = funcs->atomic_check(connector, state);
730 const struct drm_connector_helper_funcs *funcs = connector->helper_private;
735 if (funcs->atomic_check)
736 ret = funcs->atomic_check(connector, state);
892 const struct drm_plane_helper_funcs *funcs;
896 funcs = plane->helper_private;
902 if (!funcs || !funcs->atomic_check)
905 ret = funcs->atomic_check(plane, new_plane_state);
914 const struct drm_crtc_helper_funcs *funcs;
916 funcs = crtc->helper_private;
918 if (!funcs || !funcs->atomic_check)
921 ret = funcs->atomic_check(crtc, new_crtc_state);
1028 const struct drm_encoder_helper_funcs *funcs;
1058 funcs = encoder->helper_private;
1071 if (funcs) {
1072 if (funcs->atomic_disable)
1073 funcs->atomic_disable(encoder, old_state);
1074 else if (new_conn_state->crtc && funcs->prepare)
1075 funcs->prepare(encoder);
1076 else if (funcs->disable)
1077 funcs->disable(encoder);
1078 else if (funcs->dpms)
1079 funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
1086 const struct drm_crtc_helper_funcs *funcs;
1096 funcs = crtc->helper_private;
1103 if (new_crtc_state->enable && funcs->prepare)
1104 funcs->prepare(crtc);
1105 else if (funcs->atomic_disable)
1106 funcs->atomic_disable(crtc, old_crtc_state);
1107 else if (funcs->disable)
1108 funcs->disable(crtc);
1109 else if (funcs->dpms)
1110 funcs->dpms(crtc, DRM_MODE_DPMS_OFF);
1241 const struct drm_crtc_helper_funcs *funcs;
1246 funcs = crtc->helper_private;
1248 if (new_crtc_state->enable && funcs->mode_set_nofb) {
1252 funcs->mode_set_nofb(crtc);
1257 const struct drm_encoder_helper_funcs *funcs;
1266 funcs = encoder->helper_private;
1281 if (funcs && funcs->atomic_mode_set) {
1282 funcs->atomic_mode_set(encoder, new_crtc_state,
1284 } else if (funcs && funcs->mode_set) {
1285 funcs->mode_set(encoder, mode, adjusted_mode);
1327 const struct drm_connector_helper_funcs *funcs;
1329 funcs = connector->helper_private;
1330 if (!funcs->atomic_commit)
1335 funcs->atomic_commit(connector, new_conn_state);
1365 const struct drm_crtc_helper_funcs *funcs;
1374 funcs = crtc->helper_private;
1379 if (funcs->atomic_enable)
1380 funcs->atomic_enable(crtc, old_crtc_state);
1381 else if (funcs->commit)
1382 funcs->commit(crtc);
1387 const struct drm_encoder_helper_funcs *funcs;
1399 funcs = encoder->helper_private;
1411 if (funcs) {
1412 if (funcs->atomic_enable)
1413 funcs->atomic_enable(encoder, old_state);
1414 else if (funcs->enable)
1415 funcs->enable(encoder);
1416 else if (funcs->commit)
1417 funcs->commit(encoder);
1647 const struct drm_mode_config_helper_funcs *funcs;
1654 funcs = dev->mode_config.helper_private;
1681 if (funcs && funcs->atomic_commit_tail)
1682 funcs->atomic_commit_tail(old_state);
1726 const struct drm_plane_helper_funcs *funcs;
1745 funcs = plane->helper_private;
1746 if (!funcs->atomic_async_update)
1761 return funcs->atomic_async_check(plane, new_plane_state);
1783 const struct drm_plane_helper_funcs *funcs;
1790 funcs = plane->helper_private;
1791 funcs->atomic_async_update(plane, plane_state);
2430 const struct drm_plane_helper_funcs *funcs;
2432 funcs = plane->helper_private;
2434 if (funcs->prepare_fb) {
2435 ret = funcs->prepare_fb(plane, new_plane_state);
2445 const struct drm_plane_helper_funcs *funcs;
2450 funcs = plane->helper_private;
2452 if (funcs->cleanup_fb)
2453 funcs->cleanup_fb(plane, new_plane_state);
2519 const struct drm_crtc_helper_funcs *funcs;
2521 funcs = crtc->helper_private;
2523 if (!funcs || !funcs->atomic_begin)
2529 funcs->atomic_begin(crtc, old_crtc_state);
2533 const struct drm_plane_helper_funcs *funcs;
2536 funcs = plane->helper_private;
2538 if (!funcs)
2561 if (disabling && funcs->atomic_disable) {
2570 funcs->atomic_disable(plane, old_plane_state);
2572 funcs->atomic_update(plane, old_plane_state);
2577 const struct drm_crtc_helper_funcs *funcs;
2579 funcs = crtc->helper_private;
2581 if (!funcs || !funcs->atomic_flush)
2587 funcs->atomic_flush(crtc, old_crtc_state);
2720 const struct drm_plane_helper_funcs *funcs;
2732 funcs = plane->helper_private;
2734 if (funcs->cleanup_fb)
2735 funcs->cleanup_fb(plane, plane_state);