Lines Matching refs:bpc
85 unsigned int format, unsigned int bpc) in sink_supports_format_bpc() argument
100 if (vic == 1 && bpc != 8) { in sink_supports_format_bpc()
101 drm_dbg_kms(dev, "VIC1 requires a bpc of 8, got %u\n", bpc); in sink_supports_format_bpc()
106 (format != HDMI_COLORSPACE_RGB || bpc != 8)) { in sink_supports_format_bpc()
132 if (bpc == 10 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30)) { in sink_supports_format_bpc()
137 if (bpc == 12 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_36)) { in sink_supports_format_bpc()
159 if (bpc > 12) { in sink_supports_format_bpc()
182 if (bpc == 10 && !(info->edid_hdmi_ycbcr444_dc_modes & DRM_EDID_HDMI_DC_30)) { in sink_supports_format_bpc()
187 if (bpc == 12 && !(info->edid_hdmi_ycbcr444_dc_modes & DRM_EDID_HDMI_DC_36)) { in sink_supports_format_bpc()
227 unsigned int bpc, enum hdmi_colorspace fmt) in hdmi_compute_clock() argument
232 clock = drm_hdmi_compute_mode_clock(mode, bpc, fmt); in hdmi_compute_clock()
249 unsigned int bpc, enum hdmi_colorspace fmt) in hdmi_try_format_bpc() argument
258 if (!sink_supports_format_bpc(connector, info, mode, fmt, bpc)) { in hdmi_try_format_bpc()
261 bpc); in hdmi_try_format_bpc()
265 ret = hdmi_compute_clock(connector, conn_state, mode, bpc, fmt); in hdmi_try_format_bpc()
269 bpc); in hdmi_try_format_bpc()
275 bpc, conn_state->hdmi.tmds_char_rate); in hdmi_try_format_bpc()
284 unsigned int bpc) in hdmi_compute_format() argument
292 if (hdmi_try_format_bpc(connector, conn_state, mode, bpc, HDMI_COLORSPACE_RGB)) { in hdmi_compute_format()
311 unsigned int bpc; in hdmi_compute_config() local
314 for (bpc = max_bpc; bpc >= 8; bpc -= 2) { in hdmi_compute_config()
315 drm_dbg_kms(dev, "Trying with a %d bpc output\n", bpc); in hdmi_compute_config()
317 ret = hdmi_compute_format(connector, conn_state, mode, bpc); in hdmi_compute_config()
321 conn_state->hdmi.output_bpc = bpc; in hdmi_compute_config()