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.c1003 struct radeon_encoder_tv_dac *tv_dac) in radeon_legacy_get_tv_dac_info_from_table() argument
1005 tv_dac->ps2_tvdac_adj = default_tvdac_adj[rdev->family]; in radeon_legacy_get_tv_dac_info_from_table()
1007 tv_dac->ps2_tvdac_adj = 0x00880000; in radeon_legacy_get_tv_dac_info_from_table()
1008 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1009 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1021 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_combios_get_tv_dac_info() local
1024 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_combios_get_tv_dac_info()
1025 if (!tv_dac) in radeon_combios_get_tv_dac_info()
1035 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
1039 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
[all …]
Dradeon_legacy_encoders.c1160 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_dac_mode_set() local
1193 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1194 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_dac_mode_set()
1195 tv_dac->tv_std == TV_STD_PAL_M || in radeon_legacy_tv_dac_mode_set()
1196 tv_dac->tv_std == TV_STD_PAL_60) in radeon_legacy_tv_dac_mode_set()
1197 tv_dac_cntl |= tv_dac->ntsc_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1199 tv_dac_cntl |= tv_dac->pal_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1201 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1202 tv_dac->tv_std == TV_STD_NTSC_J) in radeon_legacy_tv_dac_mode_set()
1208 tv_dac->ps2_tvdac_adj); in radeon_legacy_tv_dac_mode_set()
[all …]
Datombios_encoders.c329 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in radeon_atom_mode_fixup() local
330 if (tv_dac) { in radeon_atom_mode_fixup()
331 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_atom_mode_fixup()
332 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_atom_mode_fixup()
333 tv_dac->tv_std == TV_STD_PAL_M) in radeon_atom_mode_fixup()
Dradeon_atombios.c1957 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_atombios_get_tv_dac_info() local
1965 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_atombios_get_tv_dac_info()
1967 if (!tv_dac) in radeon_atombios_get_tv_dac_info()
1972 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1976 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1980 tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1982 tv_dac->tv_std = radeon_atombios_get_tv_info(rdev); in radeon_atombios_get_tv_dac_info()
1984 return tv_dac; in radeon_atombios_get_tv_dac_info()
Datombios_crtc.c100 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in atombios_scaler_setup() local
101 tv_std = tv_dac->tv_std; in atombios_scaler_setup()
/drivers/gpu/drm/i915/display/
Dintel_tv.c1578 u32 tv_dac, save_tv_dac; in intel_tv_detect_type() local
1590 save_tv_dac = tv_dac = intel_de_read(dev_priv, TV_DAC); in intel_tv_detect_type()
1598 tv_dac &= ~(TVDAC_SENSE_MASK | DAC_A_MASK | DAC_B_MASK | DAC_C_MASK); in intel_tv_detect_type()
1599 tv_dac |= (TVDAC_STATE_CHG_EN | in intel_tv_detect_type()
1614 tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL | in intel_tv_detect_type()
1618 intel_de_write(dev_priv, TV_DAC, tv_dac); in intel_tv_detect_type()
1624 tv_dac = intel_de_read(dev_priv, TV_DAC); in intel_tv_detect_type()
1625 drm_dbg_kms(&dev_priv->drm, "TV detected: %x, %x\n", tv_ctl, tv_dac); in intel_tv_detect_type()
1632 if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { in intel_tv_detect_type()
1636 } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { in intel_tv_detect_type()
[all …]