Home
last modified time | relevance | path

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

/dragonfly/sys/dev/drm/radeon/
H A Dradeon_legacy_tv.c398 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()
404 tmp = ((uint32_t)tv_dac->tv.v_code_timing[i+1] << 14) | ((uint32_t)tv_dac->tv.v_code_timing[i]); in radeon_restore_tv_timing_tables()
406 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables()
500 const_ptr->def_restart, tv_dac->h_pos, tv_dac->v_pos, p1, p2, restart); in radeon_legacy_tv_init_restarts()
509 (unsigned)tv_dac->tv.frestart, in radeon_legacy_tv_init_restarts()
510 (unsigned)tv_dac->tv.vrestart, in radeon_legacy_tv_init_restarts()
511 (unsigned)tv_dac->tv.hrestart); in radeon_legacy_tv_init_restarts()
523 tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) | in radeon_legacy_tv_init_restarts()
672 tv_dac->tv.timing_cntl = tmp; in radeon_legacy_tv_mode_set()
[all …]
H A Dradeon_combios.c1000 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1001 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_legacy_get_tv_dac_info_from_table()
1017 if (!tv_dac) in radeon_combios_get_tv_dac_info()
1037 if (tv_dac->ps2_tvdac_adj) in radeon_combios_get_tv_dac_info()
1066 tv_dac->ps2_tvdac_adj = in radeon_combios_get_tv_dac_info()
1068 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_combios_get_tv_dac_info()
1069 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_combios_get_tv_dac_info()
1076 tv_dac->ps2_tvdac_adj = in radeon_combios_get_tv_dac_info()
1078 tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_combios_get_tv_dac_info()
1079 tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; in radeon_combios_get_tv_dac_info()
[all …]
H A Dradeon_legacy_encoders.c1159 struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; in radeon_legacy_tv_dac_mode_set() local
1192 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1193 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_legacy_tv_dac_mode_set()
1194 tv_dac->tv_std == TV_STD_PAL_M || in radeon_legacy_tv_dac_mode_set()
1195 tv_dac->tv_std == TV_STD_PAL_60) in radeon_legacy_tv_dac_mode_set()
1196 tv_dac_cntl |= tv_dac->ntsc_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1198 tv_dac_cntl |= tv_dac->pal_tvdac_adj; in radeon_legacy_tv_dac_mode_set()
1200 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_legacy_tv_dac_mode_set()
1201 tv_dac->tv_std == TV_STD_NTSC_J) in radeon_legacy_tv_dac_mode_set()
1207 tv_dac->ps2_tvdac_adj); in radeon_legacy_tv_dac_mode_set()
[all …]
H A Datombios_encoders.c381 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in radeon_atom_mode_fixup() local
382 if (tv_dac) { in radeon_atom_mode_fixup()
383 if (tv_dac->tv_std == TV_STD_NTSC || in radeon_atom_mode_fixup()
384 tv_dac->tv_std == TV_STD_NTSC_J || in radeon_atom_mode_fixup()
385 tv_dac->tv_std == TV_STD_PAL_M) in radeon_atom_mode_fixup()
H A Dradeon_atombios.c1955 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 Datombios_crtc.c97 struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; in atombios_scaler_setup() local
98 tv_std = tv_dac->tv_std; in atombios_scaler_setup()
/dragonfly/sys/dev/drm/i915/
H A Dintel_tv.c1144 u32 tv_dac, save_tv_dac; in intel_tv_detect_type() local
1156 save_tv_dac = tv_dac = I915_READ(TV_DAC); in intel_tv_detect_type()
1167 tv_dac &= ~(TVDAC_SENSE_MASK | DAC_A_MASK | DAC_B_MASK | DAC_C_MASK); in intel_tv_detect_type()
1168 tv_dac |= (TVDAC_STATE_CHG_EN | in intel_tv_detect_type()
1183 tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL | in intel_tv_detect_type()
1187 I915_WRITE(TV_DAC, tv_dac); in intel_tv_detect_type()
1193 tv_dac = I915_READ(TV_DAC); in intel_tv_detect_type()
1194 DRM_DEBUG_KMS("TV detected: %x, %x\n", tv_ctl, tv_dac); in intel_tv_detect_type()
1201 if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { in intel_tv_detect_type()
1204 } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { in intel_tv_detect_type()
[all …]