Lines Matching +full:orientation +full:- +full:switch

1 // SPDX-License-Identifier: MIT
19 intel_dsi->panel_power_off_time); in intel_dsi_wait_panel_power_cycle()
21 if (panel_power_off_duration < (s64)intel_dsi->panel_pwr_cycle_delay) in intel_dsi_wait_panel_power_cycle()
22 msleep(intel_dsi->panel_pwr_cycle_delay - panel_power_off_duration); in intel_dsi_wait_panel_power_cycle()
34 int bpp = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format); in intel_dsi_bitrate()
39 return intel_dsi->pclk * bpp / intel_dsi->lane_count; in intel_dsi_bitrate()
44 switch (intel_dsi->escape_clk_div) { in intel_dsi_tlpx_ns()
63 struct drm_i915_private *dev_priv = to_i915(connector->dev); in intel_dsi_mode_valid()
67 int max_dotclk = to_i915(connector->dev)->max_dotclk_freq; in intel_dsi_mode_valid()
70 drm_dbg_kms(&dev_priv->drm, "\n"); in intel_dsi_mode_valid()
72 if (mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_dsi_mode_valid()
79 if (fixed_mode->clock > max_dotclk) in intel_dsi_mode_valid()
96 host->base.ops = funcs; in intel_dsi_host_init()
97 host->intel_dsi = intel_dsi; in intel_dsi_host_init()
98 host->port = port; in intel_dsi_host_init()
101 * We should call mipi_dsi_host_register(&host->base) here, but we don't in intel_dsi_host_init()
102 * have a host->dev, and we don't have OF stuff either. So just use the in intel_dsi_host_init()
113 device->host = &host->base; in intel_dsi_host_init()
114 host->device = device; in intel_dsi_host_init()
122 struct drm_i915_private *dev_priv = to_i915(connector->base.dev); in intel_dsi_get_panel_orientation()
123 enum drm_panel_orientation orientation; in intel_dsi_get_panel_orientation() local
125 orientation = connector->panel.vbt.dsi.orientation; in intel_dsi_get_panel_orientation()
126 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation()
127 return orientation; in intel_dsi_get_panel_orientation()
129 orientation = dev_priv->display.vbt.orientation; in intel_dsi_get_panel_orientation()
130 if (orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN) in intel_dsi_get_panel_orientation()
131 return orientation; in intel_dsi_get_panel_orientation()