Lines Matching refs:bpc
1890 int intel_hdmi_tmds_clock(int clock, int bpc, bool ycbcr420_output) in intel_hdmi_tmds_clock() argument
1901 return DIV_ROUND_CLOSEST(clock * bpc, 8); in intel_hdmi_tmds_clock()
1904 static bool intel_hdmi_source_bpc_possible(struct drm_i915_private *i915, int bpc) in intel_hdmi_source_bpc_possible() argument
1906 switch (bpc) { in intel_hdmi_source_bpc_possible()
1914 MISSING_CASE(bpc); in intel_hdmi_source_bpc_possible()
1920 int bpc, bool has_hdmi_sink, bool ycbcr420_output) in intel_hdmi_sink_bpc_possible() argument
1925 switch (bpc) { in intel_hdmi_sink_bpc_possible()
1945 MISSING_CASE(bpc); in intel_hdmi_sink_bpc_possible()
1957 int bpc; in intel_hdmi_mode_clock_valid() local
1964 for (bpc = 12; bpc >= 8; bpc -= 2) { in intel_hdmi_mode_clock_valid()
1965 int tmds_clock = intel_hdmi_tmds_clock(clock, bpc, ycbcr420_output); in intel_hdmi_mode_clock_valid()
1967 if (!intel_hdmi_source_bpc_possible(i915, bpc)) in intel_hdmi_mode_clock_valid()
1970 if (!intel_hdmi_sink_bpc_possible(connector, bpc, has_hdmi_sink, ycbcr420_output)) in intel_hdmi_mode_clock_valid()
2035 int bpc, bool has_hdmi_sink, bool ycbcr420_output) in intel_hdmi_bpc_possible() argument
2046 if (!intel_hdmi_sink_bpc_possible(connector, bpc, has_hdmi_sink, ycbcr420_output)) 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()
2080 int bpc; in intel_hdmi_compute_bpc() local
2086 bpc = max(crtc_state->pipe_bpp / 3, 8); in intel_hdmi_compute_bpc()
2094 bpc = 8; in intel_hdmi_compute_bpc()
2096 for (; bpc >= 8; bpc -= 2) { in intel_hdmi_compute_bpc()
2097 int tmds_clock = intel_hdmi_tmds_clock(clock, bpc, ycbcr420_output); in intel_hdmi_compute_bpc()
2099 if (hdmi_bpc_possible(crtc_state, bpc) && in intel_hdmi_compute_bpc()
2103 return bpc; in intel_hdmi_compute_bpc()
2116 int bpc, clock = adjusted_mode->crtc_clock; in intel_hdmi_compute_clock() local
2121 bpc = intel_hdmi_compute_bpc(encoder, crtc_state, clock, in intel_hdmi_compute_clock()
2123 if (bpc < 0) in intel_hdmi_compute_clock()
2124 return bpc; in intel_hdmi_compute_clock()
2127 intel_hdmi_tmds_clock(clock, bpc, intel_hdmi_is_ycbcr420(crtc_state)); in intel_hdmi_compute_clock()
2134 crtc_state->pipe_bpp = min(crtc_state->pipe_bpp, bpc * 3); in intel_hdmi_compute_clock()
2138 bpc, crtc_state->pipe_bpp); in intel_hdmi_compute_clock()