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.c240 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_get_std_mode() local
253 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_get_std_mode()
254 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_get_std_mode()
255 tv_dac->tv_std == TV_STD_PAL_M) { in radeon_legacy_tv_get_std_mode()
388 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_restore_tv_timing_tables() local
393 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
394 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
395 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
398 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()
400 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.c1000 struct radeon_encoder_tv_dac *tv_dac) in radeon_legacy_get_tv_dac_info_from_table() argument
1002 tv_dac->ps2_tvdac_adj = default_tvdac_adj[rdev->family]; in radeon_legacy_get_tv_dac_info_from_table()
1004 tv_dac->ps2_tvdac_adj = 0x00880000; in radeon_legacy_get_tv_dac_info_from_table()
1005 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1006 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1018 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_combios_get_tv_dac_info() local
1021 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_combios_get_tv_dac_info()
1022 if (!tv_dac) in radeon_combios_get_tv_dac_info()
1032 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
1036 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info()
[all …]
Dradeon_legacy_encoders.c1152 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_dac_mode_set() local
1185 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1186 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_dac_mode_set()
1187 tv_dac->tv_std == TV_STD_PAL_M || in radeon_legacy_tv_dac_mode_set()
1188 tv_dac->tv_std == TV_STD_PAL_60) in radeon_legacy_tv_dac_mode_set()
1189 tv_dac_cntl |= tv_dac->ntsc_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1191 tv_dac_cntl |= tv_dac->pal_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
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()
1200 tv_dac->ps2_tvdac_adj); in radeon_legacy_tv_dac_mode_set()
[all …]
Datombios_encoders.c320 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in radeon_atom_mode_fixup() local
321 if (tv_dac) { in radeon_atom_mode_fixup()
322 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_atom_mode_fixup()
323 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_atom_mode_fixup()
324 tv_dac->tv_std == TV_STD_PAL_M) in radeon_atom_mode_fixup()
Dradeon_atombios.c1931 struct radeon_encoder_tv_dac *tv_dac = NULL; in radeon_atombios_get_tv_dac_info() local
1939 tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); in radeon_atombios_get_tv_dac_info()
1941 if (!tv_dac) in radeon_atombios_get_tv_dac_info()
1946 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1950 tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1954 tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); in radeon_atombios_get_tv_dac_info()
1956 tv_dac->tv_std = radeon_atombios_get_tv_info(rdev); in radeon_atombios_get_tv_dac_info()
1958 return tv_dac; in radeon_atombios_get_tv_dac_info()
Datombios_crtc.c96 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in atombios_scaler_setup() local
97 tv_std = tv_dac->tv_std; in atombios_scaler_setup()
/drivers/gpu/drm/i915/
Dintel_tv.c1187 u32 tv_dac, save_tv_dac; in intel_tv_detect_type() local
1199 save_tv_dac = tv_dac = I915_READ(TV_DAC); in intel_tv_detect_type()
1210 tv_dac &= ~(TVDAC_SENSE_MASK | DAC_A_MASK | DAC_B_MASK | DAC_C_MASK); in intel_tv_detect_type()
1211 tv_dac |= (TVDAC_STATE_CHG_EN | in intel_tv_detect_type()
1226 tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL | in intel_tv_detect_type()
1230 I915_WRITE(TV_DAC, tv_dac); in intel_tv_detect_type()
1237 tv_dac = I915_READ(TV_DAC); in intel_tv_detect_type()
1238 DRM_DEBUG_KMS("TV detected: %x, %x\n", tv_ctl, tv_dac); in intel_tv_detect_type()
1245 if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { in intel_tv_detect_type()
1248 } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { in intel_tv_detect_type()
[all …]