Lines Matching full:source
54 static int i8xx_pipe_crc_ctl_reg(enum intel_pipe_crc_source *source, in i8xx_pipe_crc_ctl_reg() argument
57 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in i8xx_pipe_crc_ctl_reg()
58 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in i8xx_pipe_crc_ctl_reg()
60 switch (*source) { in i8xx_pipe_crc_ctl_reg()
76 enum intel_pipe_crc_source *source) in i9xx_pipe_crc_auto_source() argument
84 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in i9xx_pipe_crc_auto_source()
98 *source = INTEL_PIPE_CRC_SOURCE_TV; in i9xx_pipe_crc_auto_source()
105 *source = INTEL_PIPE_CRC_SOURCE_DP_B; in i9xx_pipe_crc_auto_source()
108 *source = INTEL_PIPE_CRC_SOURCE_DP_C; in i9xx_pipe_crc_auto_source()
111 *source = INTEL_PIPE_CRC_SOURCE_DP_D; in i9xx_pipe_crc_auto_source()
130 enum intel_pipe_crc_source *source, in vlv_pipe_crc_ctl_reg() argument
135 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) { in vlv_pipe_crc_ctl_reg()
136 int ret = i9xx_pipe_crc_auto_source(dev_priv, pipe, source); in vlv_pipe_crc_ctl_reg()
141 switch (*source) { in vlv_pipe_crc_ctl_reg()
200 enum intel_pipe_crc_source *source, in i9xx_pipe_crc_ctl_reg() argument
203 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) { in i9xx_pipe_crc_ctl_reg()
204 int ret = i9xx_pipe_crc_auto_source(dev_priv, pipe, source); in i9xx_pipe_crc_ctl_reg()
209 switch (*source) { in i9xx_pipe_crc_ctl_reg()
223 * The DP CRC source doesn't work on g4x. in i9xx_pipe_crc_ctl_reg()
225 * the correct CRC source before the port is enabled, in i9xx_pipe_crc_ctl_reg()
226 * and not touching the CRC source bits again until in i9xx_pipe_crc_ctl_reg()
261 static int ilk_pipe_crc_ctl_reg(enum intel_pipe_crc_source *source, in ilk_pipe_crc_ctl_reg() argument
264 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in ilk_pipe_crc_ctl_reg()
265 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in ilk_pipe_crc_ctl_reg()
267 switch (*source) { in ilk_pipe_crc_ctl_reg()
340 enum intel_pipe_crc_source *source, in ivb_pipe_crc_ctl_reg() argument
343 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in ivb_pipe_crc_ctl_reg()
344 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in ivb_pipe_crc_ctl_reg()
346 switch (*source) { in ivb_pipe_crc_ctl_reg()
368 enum intel_pipe_crc_source *source, in skl_pipe_crc_ctl_reg() argument
371 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in skl_pipe_crc_ctl_reg()
372 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in skl_pipe_crc_ctl_reg()
374 switch (*source) { in skl_pipe_crc_ctl_reg()
411 enum intel_pipe_crc_source *source, u32 *val) in get_new_crc_ctl_reg() argument
414 return i8xx_pipe_crc_ctl_reg(source, val); in get_new_crc_ctl_reg()
416 return i9xx_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
418 return vlv_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
420 return ilk_pipe_crc_ctl_reg(source, val); in get_new_crc_ctl_reg()
422 return ivb_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
424 return skl_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
453 const enum intel_pipe_crc_source source) in i8xx_crc_source_valid() argument
455 switch (source) { in i8xx_crc_source_valid()
465 const enum intel_pipe_crc_source source) in i9xx_crc_source_valid() argument
467 switch (source) { in i9xx_crc_source_valid()
478 const enum intel_pipe_crc_source source) in vlv_crc_source_valid() argument
480 switch (source) { in vlv_crc_source_valid()
493 const enum intel_pipe_crc_source source) in ilk_crc_source_valid() argument
495 switch (source) { in ilk_crc_source_valid()
507 const enum intel_pipe_crc_source source) in ivb_crc_source_valid() argument
509 switch (source) { in ivb_crc_source_valid()
521 const enum intel_pipe_crc_source source) in skl_crc_source_valid() argument
523 switch (source) { in skl_crc_source_valid()
541 const enum intel_pipe_crc_source source) in intel_is_valid_crc_source() argument
544 return i8xx_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
546 return i9xx_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
548 return vlv_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
550 return ilk_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
552 return ivb_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
554 return skl_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
568 enum intel_pipe_crc_source source; in intel_crtc_verify_crc_source() local
570 if (display_crc_ctl_parse_source(source_name, &source) < 0) { in intel_crtc_verify_crc_source()
571 drm_dbg(&dev_priv->drm, "unknown source %s\n", source_name); in intel_crtc_verify_crc_source()
575 if (source == INTEL_PIPE_CRC_SOURCE_AUTO || in intel_crtc_verify_crc_source()
576 intel_is_valid_crc_source(dev_priv, source) == 0) { in intel_crtc_verify_crc_source()
590 enum intel_pipe_crc_source source; in intel_crtc_set_crc_source() local
597 if (display_crc_ctl_parse_source(source_name, &source) < 0) { in intel_crtc_set_crc_source()
598 drm_dbg(&dev_priv->drm, "unknown source %s\n", source_name); in intel_crtc_set_crc_source()
610 enable = source != INTEL_PIPE_CRC_SOURCE_NONE; in intel_crtc_set_crc_source()
614 ret = get_new_crc_ctl_reg(dev_priv, pipe, &source, &val); in intel_crtc_set_crc_source()
618 pipe_crc->source = source; in intel_crtc_set_crc_source()
622 if (!source) { in intel_crtc_set_crc_source()
648 if (get_new_crc_ctl_reg(dev_priv, pipe, &pipe_crc->source, &val) < 0) in intel_crtc_enable_pipe_crc()