intel_crtc_has_type
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP))
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST))
if (!intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DP_MST))
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (err == 0 || !intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST)))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST))
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
bool is_mst = intel_crtc_has_type(old_crtc_state,
bool is_hdmi = intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_HDMI);
if (!intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DP_MST))
if (intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_HDMI))
bool is_hdmi = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI);
if (intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_HDMI))
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST) ||
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST) ||
if (intel_crtc_has_type(pipe_config, INTEL_OUTPUT_HDMI)) {
if (!intel_crtc_has_type(ref_crtc_state, INTEL_OUTPUT_DP))
!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI));
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST) ||
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (!intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DSI)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO))
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO))
!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO))
if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI))
!intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DSI);
!intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
bool is_mst = intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST);
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST)) {
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST))
if (!intel_crtc_has_type(intel_atomic_get_new_crtc_state(state, crtc),
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO) ||
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DVO))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS) &&
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO) ||
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) ||
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO)) {
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_TVOUT))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_TVOUT))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DVO)) {
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG) ||
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
bool is_dp = !intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI);
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) ||
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
if (intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) &&
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_SDVO))
intel_crtc_has_type(crtc_state,
return intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP) &&
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP)) {
} else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI)) {
return intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) ? 2 : 1;
intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI);
intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI);
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))