Lines Matching refs:bpc
382 unsigned int format, unsigned int bpc) in sink_supports_format_bpc() argument
397 if (vic == 1 && bpc != 8) { in sink_supports_format_bpc()
398 drm_dbg_kms(dev, "VIC1 requires a bpc of 8, got %u\n", bpc); in sink_supports_format_bpc()
403 (format != HDMI_COLORSPACE_RGB || bpc != 8)) { in sink_supports_format_bpc()
434 if (bpc == 10 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30)) { in sink_supports_format_bpc()
439 if (bpc == 12 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_36)) { in sink_supports_format_bpc()
461 if (bpc == 10 && !(info->hdmi.y420_dc_modes & DRM_EDID_YCBCR420_DC_30)) { in sink_supports_format_bpc()
466 if (bpc == 12 && !(info->hdmi.y420_dc_modes & DRM_EDID_YCBCR420_DC_36)) { in sink_supports_format_bpc()
471 if (bpc == 16 && !(info->hdmi.y420_dc_modes & DRM_EDID_YCBCR420_DC_48)) { in sink_supports_format_bpc()
488 if (bpc > 12) { in sink_supports_format_bpc()
511 if (bpc == 10 && !(info->edid_hdmi_ycbcr444_dc_modes & DRM_EDID_HDMI_DC_30)) { in sink_supports_format_bpc()
516 if (bpc == 12 && !(info->edid_hdmi_ycbcr444_dc_modes & DRM_EDID_HDMI_DC_36)) { in sink_supports_format_bpc()
556 unsigned int bpc, enum hdmi_colorspace fmt) in hdmi_compute_clock() argument
561 clock = drm_hdmi_compute_mode_clock(mode, bpc, fmt); in hdmi_compute_clock()
578 unsigned int bpc, enum hdmi_colorspace fmt) in hdmi_try_format_bpc() argument
586 bpc); in hdmi_try_format_bpc()
588 if (!sink_supports_format_bpc(connector, info, mode, fmt, bpc)) { in hdmi_try_format_bpc()
591 bpc); in hdmi_try_format_bpc()
595 ret = hdmi_compute_clock(connector, conn_state, mode, bpc, fmt); in hdmi_try_format_bpc()
599 bpc); in hdmi_try_format_bpc()
605 bpc, conn_state->hdmi.tmds_char_rate); in hdmi_try_format_bpc()
617 unsigned int bpc; in hdmi_compute_format_bpc() local
620 for (bpc = max_bpc; bpc >= 8; bpc -= 2) { in hdmi_compute_format_bpc()
621 ret = hdmi_try_format_bpc(connector, conn_state, mode, bpc, fmt); in hdmi_compute_format_bpc()
625 conn_state->hdmi.output_bpc = bpc; in hdmi_compute_format_bpc()