Lines Matching refs:source
55 static int i8xx_pipe_crc_ctl_reg(enum intel_pipe_crc_source *source, in i8xx_pipe_crc_ctl_reg() argument
58 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in i8xx_pipe_crc_ctl_reg()
59 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in i8xx_pipe_crc_ctl_reg()
61 switch (*source) { in i8xx_pipe_crc_ctl_reg()
77 enum intel_pipe_crc_source *source) in i9xx_pipe_crc_auto_source() argument
83 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in i9xx_pipe_crc_auto_source()
97 *source = INTEL_PIPE_CRC_SOURCE_TV; in i9xx_pipe_crc_auto_source()
104 *source = INTEL_PIPE_CRC_SOURCE_DP_B; in i9xx_pipe_crc_auto_source()
107 *source = INTEL_PIPE_CRC_SOURCE_DP_C; in i9xx_pipe_crc_auto_source()
110 *source = INTEL_PIPE_CRC_SOURCE_DP_D; in i9xx_pipe_crc_auto_source()
127 enum intel_pipe_crc_source *source, in vlv_pipe_crc_ctl_reg() argument
132 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in vlv_pipe_crc_ctl_reg()
133 i9xx_pipe_crc_auto_source(dev_priv, pipe, source); in vlv_pipe_crc_ctl_reg()
135 switch (*source) { in vlv_pipe_crc_ctl_reg()
194 enum intel_pipe_crc_source *source, in i9xx_pipe_crc_ctl_reg() argument
197 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in i9xx_pipe_crc_ctl_reg()
198 i9xx_pipe_crc_auto_source(dev_priv, pipe, source); in i9xx_pipe_crc_ctl_reg()
200 switch (*source) { in i9xx_pipe_crc_ctl_reg()
252 static int ilk_pipe_crc_ctl_reg(enum intel_pipe_crc_source *source, in ilk_pipe_crc_ctl_reg() argument
255 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in ilk_pipe_crc_ctl_reg()
256 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in ilk_pipe_crc_ctl_reg()
258 switch (*source) { in ilk_pipe_crc_ctl_reg()
332 enum intel_pipe_crc_source *source, in ivb_pipe_crc_ctl_reg() argument
335 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in ivb_pipe_crc_ctl_reg()
336 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in ivb_pipe_crc_ctl_reg()
338 switch (*source) { in ivb_pipe_crc_ctl_reg()
360 enum intel_pipe_crc_source *source, in skl_pipe_crc_ctl_reg() argument
363 if (*source == INTEL_PIPE_CRC_SOURCE_AUTO) in skl_pipe_crc_ctl_reg()
364 *source = INTEL_PIPE_CRC_SOURCE_PIPE; in skl_pipe_crc_ctl_reg()
366 switch (*source) { in skl_pipe_crc_ctl_reg()
403 enum intel_pipe_crc_source *source, u32 *val) in get_new_crc_ctl_reg() argument
406 return i8xx_pipe_crc_ctl_reg(source, val); in get_new_crc_ctl_reg()
408 return i9xx_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
410 return vlv_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
412 return ilk_pipe_crc_ctl_reg(source, val); in get_new_crc_ctl_reg()
414 return ivb_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
416 return skl_pipe_crc_ctl_reg(dev_priv, pipe, source, val); in get_new_crc_ctl_reg()
445 const enum intel_pipe_crc_source source) in i8xx_crc_source_valid() argument
447 switch (source) { in i8xx_crc_source_valid()
457 const enum intel_pipe_crc_source source) in i9xx_crc_source_valid() argument
459 switch (source) { in i9xx_crc_source_valid()
470 const enum intel_pipe_crc_source source) in vlv_crc_source_valid() argument
472 switch (source) { in vlv_crc_source_valid()
485 const enum intel_pipe_crc_source source) in ilk_crc_source_valid() argument
487 switch (source) { in ilk_crc_source_valid()
499 const enum intel_pipe_crc_source source) in ivb_crc_source_valid() argument
501 switch (source) { in ivb_crc_source_valid()
513 const enum intel_pipe_crc_source source) in skl_crc_source_valid() argument
515 switch (source) { in skl_crc_source_valid()
533 const enum intel_pipe_crc_source source) in intel_is_valid_crc_source() argument
536 return i8xx_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
538 return i9xx_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
540 return vlv_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
542 return ilk_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
544 return ivb_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
546 return skl_crc_source_valid(dev_priv, source); in intel_is_valid_crc_source()
560 enum intel_pipe_crc_source source; in intel_crtc_verify_crc_source() local
562 if (display_crc_ctl_parse_source(source_name, &source) < 0) { in intel_crtc_verify_crc_source()
567 if (source == INTEL_PIPE_CRC_SOURCE_AUTO || in intel_crtc_verify_crc_source()
568 intel_is_valid_crc_source(dev_priv, source) == 0) { in intel_crtc_verify_crc_source()
582 enum intel_pipe_crc_source source; in intel_crtc_set_crc_source() local
589 if (display_crc_ctl_parse_source(source_name, &source) < 0) { in intel_crtc_set_crc_source()
602 enable = source != INTEL_PIPE_CRC_SOURCE_NONE; in intel_crtc_set_crc_source()
606 ret = get_new_crc_ctl_reg(dev_priv, pipe, &source, &val); in intel_crtc_set_crc_source()
610 pipe_crc->source = source; in intel_crtc_set_crc_source()
614 if (!source) { in intel_crtc_set_crc_source()
640 if (get_new_crc_ctl_reg(dev_priv, pipe, &pipe_crc->source, &val) < 0) in intel_crtc_enable_pipe_crc()