Home
last modified time | relevance | path

Searched refs:tv_dac (Results 1 – 7 of 7) sorted by relevance

/drivers/gpu/drm/radeon/
Dradeon_legacy_tv.c243 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_get_std_mode() local
256 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_get_std_mode()
257 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_get_std_mode()
258 tv_dac->tv_std == TV_STD_PAL_M) { in radeon_legacy_tv_get_std_mode()
391 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_restore_tv_timing_tables() local
396 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
397 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
398 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
401 tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]); in radeon_restore_tv_timing_tables()
403 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables()
[all …]
Dradeon_combios.c999 struct radeon_encoder_tv_dac *tv_dac) in radeon_legacy_get_tv_dac_info_from_table() argument
1001 tv_dac->ps2_tvdac_adj = default_tvdac_adj[rdev->family]; in radeon_legacy_get_tv_dac_info_from_table()
1003 tv_dac->ps2_tvdac_adj = 0x00880000; in radeon_legacy_get_tv_dac_info_from_table()
1004 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1005 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1017 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_combios_get_tv_dac_info() local
1020 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_combios_get_tv_dac_info()
1021 if (!tv_dac) in radeon_combios_get_tv_dac_info()
1031 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
1035 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
[all …]
Dradeon_legacy_encoders.c1153 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_dac_mode_set() local
1186 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1187 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_dac_mode_set()
1188 tv_dac->tv_std == TV_STD_PAL_M || in radeon_legacy_tv_dac_mode_set()
1189 tv_dac->tv_std == TV_STD_PAL_60) in radeon_legacy_tv_dac_mode_set()
1190 tv_dac_cntl |= tv_dac->ntsc_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1192 tv_dac_cntl |= tv_dac->pal_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1194 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1195 tv_dac->tv_std == TV_STD_NTSC_J) in radeon_legacy_tv_dac_mode_set()
1201 tv_dac->ps2_tvdac_adj); in radeon_legacy_tv_dac_mode_set()
[all …]
Datombios_encoders.c319 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in radeon_atom_mode_fixup() local
320 if (tv_dac) { in radeon_atom_mode_fixup()
321 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_atom_mode_fixup()
322 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_atom_mode_fixup()
323 tv_dac->tv_std == TV_STD_PAL_M) in radeon_atom_mode_fixup()
Dradeon_atombios.c1949 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_atombios_get_tv_dac_info() local
1957 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_atombios_get_tv_dac_info()
1959 if (!tv_dac) in radeon_atombios_get_tv_dac_info()
1964 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1968 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1972 tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1974 tv_dac->tv_std = radeon_atombios_get_tv_info(rdev); in radeon_atombios_get_tv_dac_info()
1976 return tv_dac; in radeon_atombios_get_tv_dac_info()
Datombios_crtc.c101 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in atombios_scaler_setup() local
102 tv_std = tv_dac->tv_std; in atombios_scaler_setup()
/drivers/gpu/drm/i915/display/
Dintel_tv.c1595 u32 tv_dac, save_tv_dac; in intel_tv_detect_type() local
1607 save_tv_dac = tv_dac = intel_de_read(dev_priv, TV_DAC); in intel_tv_detect_type()
1615 tv_dac &= ~(TVDAC_SENSE_MASK | DAC_A_MASK | DAC_B_MASK | DAC_C_MASK); in intel_tv_detect_type()
1616 tv_dac |= (TVDAC_STATE_CHG_EN | in intel_tv_detect_type()
1631 tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL | in intel_tv_detect_type()
1635 intel_de_write(dev_priv, TV_DAC, tv_dac); in intel_tv_detect_type()
1641 tv_dac = intel_de_read(dev_priv, TV_DAC); in intel_tv_detect_type()
1642 drm_dbg_kms(&dev_priv->drm, "TV detected: %x, %x\n", tv_ctl, tv_dac); in intel_tv_detect_type()
1649 if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { in intel_tv_detect_type()
1653 } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { in intel_tv_detect_type()
[all …]