Lines Matching refs:funcs

154 	const struct drm_connector_helper_funcs *funcs;  in update_connector_routing()  local
198 funcs = connector->helper_private; in update_connector_routing()
199 new_encoder = funcs->best_encoder(connector); in update_connector_routing()
266 const struct drm_encoder_helper_funcs *funcs; in mode_fixup() local
282 funcs = encoder->helper_private; in mode_fixup()
284 if (encoder->bridge && encoder->bridge->funcs->mode_fixup) { in mode_fixup()
285 ret = encoder->bridge->funcs->mode_fixup( in mode_fixup()
294 if (funcs->atomic_check) { in mode_fixup()
295 ret = funcs->atomic_check(encoder, crtc_state, in mode_fixup()
303 ret = funcs->mode_fixup(encoder, &crtc_state->mode, in mode_fixup()
314 const struct drm_crtc_helper_funcs *funcs; in mode_fixup() local
319 funcs = crtc->helper_private; in mode_fixup()
320 ret = funcs->mode_fixup(crtc, &crtc_state->mode, in mode_fixup()
465 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
467 funcs = plane->helper_private; in drm_atomic_helper_check_planes()
471 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
474 ret = funcs->atomic_check(plane, plane_state); in drm_atomic_helper_check_planes()
483 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_check_planes() local
485 funcs = crtc->helper_private; in drm_atomic_helper_check_planes()
487 if (!funcs || !funcs->atomic_check) in drm_atomic_helper_check_planes()
490 ret = funcs->atomic_check(crtc, state->crtc_states[i]); in drm_atomic_helper_check_planes()
549 const struct drm_encoder_helper_funcs *funcs; in disable_outputs() local
572 funcs = encoder->helper_private; in disable_outputs()
582 encoder->bridge->funcs->disable(encoder->bridge); in disable_outputs()
585 if (connector->state->crtc && funcs->prepare) in disable_outputs()
586 funcs->prepare(encoder); in disable_outputs()
587 else if (funcs->disable) in disable_outputs()
588 funcs->disable(encoder); in disable_outputs()
590 funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in disable_outputs()
593 encoder->bridge->funcs->post_disable(encoder->bridge); in disable_outputs()
597 const struct drm_crtc_helper_funcs *funcs; in disable_outputs() local
606 funcs = crtc->helper_private; in disable_outputs()
613 if (crtc->state->enable && funcs->prepare) in disable_outputs()
614 funcs->prepare(crtc); in disable_outputs()
615 else if (funcs->disable) in disable_outputs()
616 funcs->disable(crtc); in disable_outputs()
618 funcs->dpms(crtc, DRM_MODE_DPMS_OFF); in disable_outputs()
673 const struct drm_crtc_helper_funcs *funcs; in crtc_set_mode() local
678 funcs = crtc->helper_private; in crtc_set_mode()
680 if (crtc->state->enable && funcs->mode_set_nofb) { in crtc_set_mode()
684 funcs->mode_set_nofb(crtc); in crtc_set_mode()
689 const struct drm_encoder_helper_funcs *funcs; in crtc_set_mode() local
698 funcs = encoder->helper_private; in crtc_set_mode()
713 if (funcs->mode_set) in crtc_set_mode()
714 funcs->mode_set(encoder, mode, adjusted_mode); in crtc_set_mode()
716 if (encoder->bridge && encoder->bridge->funcs->mode_set) in crtc_set_mode()
717 encoder->bridge->funcs->mode_set(encoder->bridge, in crtc_set_mode()
769 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
778 funcs = crtc->helper_private; in drm_atomic_helper_commit_modeset_enables()
784 if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
785 funcs->enable(crtc); in drm_atomic_helper_commit_modeset_enables()
787 funcs->commit(crtc); in drm_atomic_helper_commit_modeset_enables()
792 const struct drm_encoder_helper_funcs *funcs; in drm_atomic_helper_commit_modeset_enables() local
803 funcs = encoder->helper_private; in drm_atomic_helper_commit_modeset_enables()
813 encoder->bridge->funcs->pre_enable(encoder->bridge); in drm_atomic_helper_commit_modeset_enables()
815 if (funcs->enable) in drm_atomic_helper_commit_modeset_enables()
816 funcs->enable(encoder); in drm_atomic_helper_commit_modeset_enables()
818 funcs->commit(encoder); in drm_atomic_helper_commit_modeset_enables()
821 encoder->bridge->funcs->enable(encoder->bridge); in drm_atomic_helper_commit_modeset_enables()
1048 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
1056 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
1060 if (fb && funcs->prepare_fb) { in drm_atomic_helper_prepare_planes()
1061 ret = funcs->prepare_fb(plane, fb, plane_state); in drm_atomic_helper_prepare_planes()
1071 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_prepare_planes() local
1079 funcs = plane->helper_private; in drm_atomic_helper_prepare_planes()
1083 if (fb && funcs->cleanup_fb) in drm_atomic_helper_prepare_planes()
1084 funcs->cleanup_fb(plane, fb, plane_state); in drm_atomic_helper_prepare_planes()
1115 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
1117 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
1119 if (!funcs || !funcs->atomic_begin) in drm_atomic_helper_commit_planes()
1122 funcs->atomic_begin(crtc); in drm_atomic_helper_commit_planes()
1126 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
1128 funcs = plane->helper_private; in drm_atomic_helper_commit_planes()
1130 if (!funcs) in drm_atomic_helper_commit_planes()
1139 funcs->atomic_disable) in drm_atomic_helper_commit_planes()
1140 funcs->atomic_disable(plane, old_plane_state); in drm_atomic_helper_commit_planes()
1142 funcs->atomic_update(plane, old_plane_state); in drm_atomic_helper_commit_planes()
1146 const struct drm_crtc_helper_funcs *funcs; in drm_atomic_helper_commit_planes() local
1148 funcs = crtc->helper_private; in drm_atomic_helper_commit_planes()
1150 if (!funcs || !funcs->atomic_flush) in drm_atomic_helper_commit_planes()
1153 funcs->atomic_flush(crtc); in drm_atomic_helper_commit_planes()
1178 const struct drm_plane_helper_funcs *funcs; in drm_atomic_helper_cleanup_planes() local
1181 funcs = plane->helper_private; in drm_atomic_helper_cleanup_planes()
1185 if (old_fb && funcs->cleanup_fb) in drm_atomic_helper_cleanup_planes()
1186 funcs->cleanup_fb(plane, old_fb, plane_state); in drm_atomic_helper_cleanup_planes()