Searched refs:tv_dac (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_tv.c | 242 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_get_std_mode() local 255 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_get_std_mode() 256 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_get_std_mode() 257 tv_dac->tv_std == TV_STD_PAL_M) { in radeon_legacy_tv_get_std_mode() 390 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_restore_tv_timing_tables() local 395 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 396 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 397 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 400 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() 402 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 …]
|
H A D | radeon_combios.c | 984 struct radeon_encoder_tv_dac *tv_dac) in radeon_legacy_get_tv_dac_info_from_table() argument 986 tv_dac->ps2_tvdac_adj = default_tvdac_adj[rdev->family]; in radeon_legacy_get_tv_dac_info_from_table() 988 tv_dac->ps2_tvdac_adj = 0x00880000; in radeon_legacy_get_tv_dac_info_from_table() 989 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table() 990 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table() 1002 struct radeon_encoder_tv_dac *tv_dac; in radeon_combios_get_tv_dac_info() local 1005 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_combios_get_tv_dac_info() 1006 if (!tv_dac) in radeon_combios_get_tv_dac_info() 1016 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info() 1020 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info() [all …]
|
H A D | radeon_legacy_encoders.c | 1153 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 …]
|
H A D | atombios_encoders.c | 321 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in radeon_atom_mode_fixup() local 322 if (tv_dac) { in radeon_atom_mode_fixup() 323 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_atom_mode_fixup() 324 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_atom_mode_fixup() 325 tv_dac->tv_std == TV_STD_PAL_M) in radeon_atom_mode_fixup()
|
H A D | radeon_atombios.c | 1955 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_atombios_get_tv_dac_info() local 1963 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_atombios_get_tv_dac_info() 1965 if (!tv_dac) in radeon_atombios_get_tv_dac_info() 1970 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info() 1974 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info() 1978 tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info() 1980 tv_dac->tv_std = radeon_atombios_get_tv_info(rdev); in radeon_atombios_get_tv_dac_info() 1982 return tv_dac; in radeon_atombios_get_tv_dac_info()
|
H A D | atombios_crtc.c | 100 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()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_tv.c | 1594 u32 tv_dac, save_tv_dac; in intel_tv_detect_type() local 1606 save_tv_dac = tv_dac = intel_de_read(display, TV_DAC); in intel_tv_detect_type() 1614 tv_dac &= ~(TVDAC_SENSE_MASK | DAC_A_MASK | DAC_B_MASK | DAC_C_MASK); in intel_tv_detect_type() 1615 tv_dac |= (TVDAC_STATE_CHG_EN | in intel_tv_detect_type() 1630 tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL | in intel_tv_detect_type() 1634 intel_de_write(display, TV_DAC, tv_dac); in intel_tv_detect_type() 1640 tv_dac = intel_de_read(display, TV_DAC); in intel_tv_detect_type() 1641 drm_dbg_kms(display->drm, "TV detected: %x, %x\n", tv_ctl, tv_dac); in intel_tv_detect_type() 1648 if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { in intel_tv_detect_type() 1652 } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { in intel_tv_detect_type() [all …]
|