tv_dac 1573 drivers/gpu/drm/i915/display/intel_tv.c u32 tv_dac, save_tv_dac; tv_dac 1585 drivers/gpu/drm/i915/display/intel_tv.c save_tv_dac = tv_dac = I915_READ(TV_DAC); tv_dac 1593 drivers/gpu/drm/i915/display/intel_tv.c tv_dac &= ~(TVDAC_SENSE_MASK | DAC_A_MASK | DAC_B_MASK | DAC_C_MASK); tv_dac 1594 drivers/gpu/drm/i915/display/intel_tv.c tv_dac |= (TVDAC_STATE_CHG_EN | tv_dac 1609 drivers/gpu/drm/i915/display/intel_tv.c tv_dac &= ~(TVDAC_STATE_CHG_EN | TVDAC_A_SENSE_CTL | tv_dac 1613 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_DAC, tv_dac); tv_dac 1619 drivers/gpu/drm/i915/display/intel_tv.c tv_dac = I915_READ(TV_DAC); tv_dac 1620 drivers/gpu/drm/i915/display/intel_tv.c DRM_DEBUG_KMS("TV detected: %x, %x\n", tv_ctl, tv_dac); tv_dac 1627 drivers/gpu/drm/i915/display/intel_tv.c if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { tv_dac 1630 drivers/gpu/drm/i915/display/intel_tv.c } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { tv_dac 1633 drivers/gpu/drm/i915/display/intel_tv.c } else if ((tv_dac & TVDAC_SENSE_MASK) == 0) { tv_dac 100 drivers/gpu/drm/radeon/atombios_crtc.c struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 101 drivers/gpu/drm/radeon/atombios_crtc.c tv_std = tv_dac->tv_std; tv_dac 328 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder_atom_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 329 drivers/gpu/drm/radeon/atombios_encoders.c if (tv_dac) { tv_dac 330 drivers/gpu/drm/radeon/atombios_encoders.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 331 drivers/gpu/drm/radeon/atombios_encoders.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 332 drivers/gpu/drm/radeon/atombios_encoders.c tv_dac->tv_std == TV_STD_PAL_M) tv_dac 1967 drivers/gpu/drm/radeon/radeon_atombios.c struct radeon_encoder_tv_dac *tv_dac = NULL; tv_dac 1975 drivers/gpu/drm/radeon/radeon_atombios.c tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); tv_dac 1977 drivers/gpu/drm/radeon/radeon_atombios.c if (!tv_dac) tv_dac 1982 drivers/gpu/drm/radeon/radeon_atombios.c tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1986 drivers/gpu/drm/radeon/radeon_atombios.c tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1990 drivers/gpu/drm/radeon/radeon_atombios.c tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1992 drivers/gpu/drm/radeon/radeon_atombios.c tv_dac->tv_std = radeon_atombios_get_tv_info(rdev); tv_dac 1994 drivers/gpu/drm/radeon/radeon_atombios.c return tv_dac; tv_dac 1002 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder_tv_dac *tv_dac) tv_dac 1004 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ps2_tvdac_adj = default_tvdac_adj[rdev->family]; tv_dac 1006 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ps2_tvdac_adj = 0x00880000; tv_dac 1007 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; tv_dac 1008 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; tv_dac 1020 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder_tv_dac *tv_dac = NULL; tv_dac 1023 drivers/gpu/drm/radeon/radeon_combios.c tv_dac = kzalloc(sizeof(struct radeon_encoder_tv_dac), GFP_KERNEL); tv_dac 1024 drivers/gpu/drm/radeon/radeon_combios.c if (!tv_dac) tv_dac 1034 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1038 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1042 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1044 drivers/gpu/drm/radeon/radeon_combios.c if (tv_dac->ps2_tvdac_adj) tv_dac 1049 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1053 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->pal_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1057 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ntsc_tvdac_adj = (bg << 16) | (dac << 20); tv_dac 1059 drivers/gpu/drm/radeon/radeon_combios.c if (tv_dac->ps2_tvdac_adj) tv_dac 1062 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->tv_std = radeon_combios_get_tv_info(rdev); tv_dac 1073 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ps2_tvdac_adj = tv_dac 1075 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; tv_dac 1076 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; tv_dac 1078 drivers/gpu/drm/radeon/radeon_combios.c if (tv_dac->ps2_tvdac_adj) tv_dac 1083 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ps2_tvdac_adj = tv_dac 1085 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->pal_tvdac_adj = tv_dac->ps2_tvdac_adj; tv_dac 1086 drivers/gpu/drm/radeon/radeon_combios.c tv_dac->ntsc_tvdac_adj = tv_dac->ps2_tvdac_adj; tv_dac 1088 drivers/gpu/drm/radeon/radeon_combios.c if (tv_dac->ps2_tvdac_adj) tv_dac 1097 drivers/gpu/drm/radeon/radeon_combios.c radeon_legacy_get_tv_dac_info_from_table(rdev, tv_dac); tv_dac 1099 drivers/gpu/drm/radeon/radeon_combios.c return tv_dac; tv_dac 1160 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 1193 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 1194 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 1195 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 1196 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac->tv_std == TV_STD_PAL_60) tv_dac 1197 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac_cntl |= tv_dac->ntsc_tvdac_adj; tv_dac 1199 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac_cntl |= tv_dac->pal_tvdac_adj; tv_dac 1201 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 1202 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac->tv_std == TV_STD_NTSC_J) tv_dac 1208 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_dac->ps2_tvdac_adj); tv_dac 1541 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 1564 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (tv_detect && tv_dac) tv_dac 243 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 256 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 257 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 258 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M) { tv_dac 391 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 396 drivers/gpu/drm/radeon/radeon_legacy_tv.c WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); tv_dac 397 drivers/gpu/drm/radeon/radeon_legacy_tv.c h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); tv_dac 398 drivers/gpu/drm/radeon/radeon_legacy_tv.c v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); tv_dac 401 drivers/gpu/drm/radeon/radeon_legacy_tv.c tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]); tv_dac 403 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) tv_dac 407 drivers/gpu/drm/radeon/radeon_legacy_tv.c tmp = ((uint32_t)tv_dac->tv.v_code_timing[i+1] << 14) | ((uint32_t)tv_dac->tv.v_code_timing[i]); tv_dac 409 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) tv_dac 418 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 419 drivers/gpu/drm/radeon/radeon_legacy_tv.c WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); tv_dac 420 drivers/gpu/drm/radeon/radeon_legacy_tv.c WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); tv_dac 421 drivers/gpu/drm/radeon/radeon_legacy_tv.c WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); tv_dac 427 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 442 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 443 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 444 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 445 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_60) tv_dac 451 drivers/gpu/drm/radeon/radeon_legacy_tv.c h_offset = tv_dac->h_pos * H_POS_UNIT; tv_dac 453 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 454 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 455 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M) { tv_dac 467 drivers/gpu/drm/radeon/radeon_legacy_tv.c h_changed = (p1 != tv_dac->tv.h_code_timing[H_TABLE_POS1] || tv_dac 468 drivers/gpu/drm/radeon/radeon_legacy_tv.c p2 != tv_dac->tv.h_code_timing[H_TABLE_POS2]); tv_dac 470 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.h_code_timing[H_TABLE_POS1] = p1; tv_dac 471 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.h_code_timing[H_TABLE_POS2] = p2; tv_dac 482 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 483 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 484 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 485 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_60) tv_dac 486 drivers/gpu/drm/radeon/radeon_legacy_tv.c v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(NTSC_TV_LINES_PER_FRAME); tv_dac 488 drivers/gpu/drm/radeon/radeon_legacy_tv.c v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(PAL_TV_LINES_PER_FRAME); tv_dac 493 drivers/gpu/drm/radeon/radeon_legacy_tv.c const_ptr->def_restart, tv_dac->h_pos, tv_dac->v_pos, p1, p2, restart); tv_dac 495 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.hrestart = restart % h_total; tv_dac 497 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.vrestart = restart % v_total; tv_dac 499 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.frestart = restart % f_total; tv_dac 502 drivers/gpu/drm/radeon/radeon_legacy_tv.c (unsigned)tv_dac->tv.frestart, tv_dac 503 drivers/gpu/drm/radeon/radeon_legacy_tv.c (unsigned)tv_dac->tv.vrestart, tv_dac 504 drivers/gpu/drm/radeon/radeon_legacy_tv.c (unsigned)tv_dac->tv.hrestart); tv_dac 507 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 508 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 509 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M) tv_dac 511 drivers/gpu/drm/radeon/radeon_legacy_tv.c (tv_dac->h_size * (int)(NTSC_TV_H_SIZE_UNIT) + (int)(NTSC_TV_ZERO_H_SIZE))); tv_dac 514 drivers/gpu/drm/radeon/radeon_legacy_tv.c (tv_dac->h_size * (int)(PAL_TV_H_SIZE_UNIT) + (int)(PAL_TV_ZERO_H_SIZE))); tv_dac 516 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) | tv_dac 519 drivers/gpu/drm/radeon/radeon_legacy_tv.c DRM_DEBUG_KMS("compute_restart: h_size = %d h_inc = %d\n", tv_dac->h_size, h_inc); tv_dac 531 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; tv_dac 560 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 561 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J) tv_dac 570 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 571 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J) { tv_dac 576 drivers/gpu/drm/radeon/radeon_legacy_tv.c } else if (tv_dac->tv_std == TV_STD_SCART_PAL) { tv_dac 605 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 606 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 607 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 608 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_60) tv_dac 628 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 629 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 630 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 631 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_60) { tv_dac 665 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.timing_cntl = tmp; tv_dac 667 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 668 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 669 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 670 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_60) tv_dac 671 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac_cntl = tv_dac->ntsc_tvdac_adj; tv_dac 673 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac_cntl = tv_dac->pal_tvdac_adj; tv_dac 677 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 678 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J) tv_dac 683 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 684 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J) { tv_dac 718 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv.tv_uv_adr = 0xc8; tv_dac 720 drivers/gpu/drm/radeon/radeon_legacy_tv.c if (tv_dac->tv_std == TV_STD_NTSC || tv_dac 721 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_NTSC_J || tv_dac 722 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_M || tv_dac 723 drivers/gpu/drm/radeon/radeon_legacy_tv.c tv_dac->tv_std == TV_STD_PAL_60) { tv_dac 734 drivers/gpu/drm/radeon/radeon_legacy_tv.c if ((tv_dac->tv.h_code_timing[i] = hor_timing[i]) == 0) tv_dac 739 drivers/gpu/drm/radeon/radeon_legacy_tv.c if ((tv_dac->tv.v_code_timing[i] = vert_timing[i]) == 0) tv_dac 809 drivers/gpu/drm/radeon/radeon_legacy_tv.c WREG32(RADEON_TV_TIMING_CNTL, tv_dac->tv.timing_cntl);