Lines Matching refs:bpc
1879 int intel_hdmi_tmds_clock(int clock, int bpc, in intel_hdmi_tmds_clock() argument
1891 return DIV_ROUND_CLOSEST(clock * bpc, 8); in intel_hdmi_tmds_clock()
1894 static bool intel_hdmi_source_bpc_possible(struct drm_i915_private *i915, int bpc) in intel_hdmi_source_bpc_possible() argument
1896 switch (bpc) { in intel_hdmi_source_bpc_possible()
1904 MISSING_CASE(bpc); in intel_hdmi_source_bpc_possible()
1910 int bpc, bool has_hdmi_sink, in intel_hdmi_sink_bpc_possible() argument
1916 switch (bpc) { in intel_hdmi_sink_bpc_possible()
1936 MISSING_CASE(bpc); in intel_hdmi_sink_bpc_possible()
1949 int bpc; in intel_hdmi_mode_clock_valid() local
1956 for (bpc = 12; bpc >= 8; bpc -= 2) { in intel_hdmi_mode_clock_valid()
1957 int tmds_clock = intel_hdmi_tmds_clock(clock, bpc, sink_format); in intel_hdmi_mode_clock_valid()
1959 if (!intel_hdmi_source_bpc_possible(i915, bpc)) in intel_hdmi_mode_clock_valid()
1962 if (!intel_hdmi_sink_bpc_possible(connector, bpc, has_hdmi_sink, sink_format)) in intel_hdmi_mode_clock_valid()
2034 int bpc, bool has_hdmi_sink) in intel_hdmi_bpc_possible() argument
2045 if (!intel_hdmi_sink_bpc_possible(connector, bpc, has_hdmi_sink, in intel_hdmi_bpc_possible()
2053 static bool hdmi_bpc_possible(const struct intel_crtc_state *crtc_state, int bpc) in hdmi_bpc_possible() argument
2060 if (!intel_hdmi_source_bpc_possible(dev_priv, bpc)) in hdmi_bpc_possible()
2065 bpc == 10 && DISPLAY_VER(dev_priv) == 11 && in hdmi_bpc_possible()
2070 return intel_hdmi_bpc_possible(crtc_state, bpc, crtc_state->has_hdmi_sink); in hdmi_bpc_possible()
2078 int bpc; in intel_hdmi_compute_bpc() local
2084 bpc = max(crtc_state->pipe_bpp / 3, 8); in intel_hdmi_compute_bpc()
2092 bpc = 8; in intel_hdmi_compute_bpc()
2094 for (; bpc >= 8; bpc -= 2) { in intel_hdmi_compute_bpc()
2095 int tmds_clock = intel_hdmi_tmds_clock(clock, bpc, in intel_hdmi_compute_bpc()
2098 if (hdmi_bpc_possible(crtc_state, bpc) && in intel_hdmi_compute_bpc()
2102 return bpc; in intel_hdmi_compute_bpc()
2115 int bpc, clock = adjusted_mode->crtc_clock; in intel_hdmi_compute_clock() local
2120 bpc = intel_hdmi_compute_bpc(encoder, crtc_state, clock, in intel_hdmi_compute_clock()
2122 if (bpc < 0) in intel_hdmi_compute_clock()
2123 return bpc; in intel_hdmi_compute_clock()
2126 intel_hdmi_tmds_clock(clock, bpc, crtc_state->sink_format); in intel_hdmi_compute_clock()
2133 crtc_state->pipe_bpp = min(crtc_state->pipe_bpp, bpc * 3); in intel_hdmi_compute_clock()
2137 bpc, crtc_state->pipe_bpp); in intel_hdmi_compute_clock()