Lines Matching refs:radeon_crtc
38 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_overscan_setup() local
40 WREG32(RADEON_OVR_CLR + radeon_crtc->crtc_offset, 0); in radeon_overscan_setup()
41 WREG32(RADEON_OVR_WID_LEFT_RIGHT + radeon_crtc->crtc_offset, 0); in radeon_overscan_setup()
42 WREG32(RADEON_OVR_WID_TOP_BOTTOM + radeon_crtc->crtc_offset, 0); in radeon_overscan_setup()
50 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_legacy_rmx_mode_set() local
62 struct drm_display_mode *native_mode = &radeon_crtc->native_mode; in radeon_legacy_rmx_mode_set()
125 switch (radeon_crtc->rmx_type) { in radeon_legacy_rmx_mode_set()
295 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_dpms() local
301 if (radeon_crtc->crtc_id) in radeon_crtc_dpms()
323 radeon_crtc->enabled = true; in radeon_crtc_dpms()
326 if (radeon_crtc->crtc_id) in radeon_crtc_dpms()
333 drm_vblank_post_modeset(dev, radeon_crtc->crtc_id); in radeon_crtc_dpms()
341 drm_vblank_pre_modeset(dev, radeon_crtc->crtc_id); in radeon_crtc_dpms()
342 if (radeon_crtc->crtc_id) in radeon_crtc_dpms()
349 radeon_crtc->enabled = false; in radeon_crtc_dpms()
375 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_do_set_base() local
472 radeon_crtc->legacy_display_base_addr = rdev->mc.vram_start; in radeon_crtc_do_set_base()
474 base -= radeon_crtc->legacy_display_base_addr; in radeon_crtc_do_set_base()
535 if (radeon_crtc->crtc_id == 1) in radeon_crtc_do_set_base()
548 WREG32(RADEON_DISPLAY_BASE_ADDR + radeon_crtc->crtc_offset, radeon_crtc->legacy_display_base_addr); in radeon_crtc_do_set_base()
551 if (radeon_crtc->crtc_id) in radeon_crtc_do_set_base()
556 WREG32(RADEON_CRTC_OFFSET_CNTL + radeon_crtc->crtc_offset, crtc_offset_cntl); in radeon_crtc_do_set_base()
557 WREG32(RADEON_CRTC_OFFSET + radeon_crtc->crtc_offset, crtc_offset); in radeon_crtc_do_set_base()
558 WREG32(RADEON_CRTC_PITCH + radeon_crtc->crtc_offset, crtc_pitch); in radeon_crtc_do_set_base()
580 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_crtc_timing() local
598 DRM_INFO("crtc %d is connected to a TV\n", radeon_crtc->crtc_id); in radeon_set_crtc_timing()
652 if (radeon_crtc->crtc_id) { in radeon_set_crtc_timing()
727 WREG32(RADEON_CRTC_H_TOTAL_DISP + radeon_crtc->crtc_offset, crtc_h_total_disp); in radeon_set_crtc_timing()
728 WREG32(RADEON_CRTC_H_SYNC_STRT_WID + radeon_crtc->crtc_offset, crtc_h_sync_strt_wid); in radeon_set_crtc_timing()
729 WREG32(RADEON_CRTC_V_TOTAL_DISP + radeon_crtc->crtc_offset, crtc_v_total_disp); in radeon_set_crtc_timing()
730 WREG32(RADEON_CRTC_V_SYNC_STRT_WID + radeon_crtc->crtc_offset, crtc_v_sync_strt_wid); in radeon_set_crtc_timing()
739 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_pll() local
775 if (radeon_crtc->crtc_id) in radeon_set_pll()
855 if (radeon_crtc->crtc_id) { in radeon_set_pll()
1042 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_mode_set() local
1049 if (radeon_crtc->crtc_id == 0) { in radeon_crtc_mode_set()
1052 if (radeon_crtc->rmx_type != RMX_OFF) { in radeon_crtc_mode_set()
1124 struct radeon_crtc *radeon_crtc) in radeon_legacy_init_crtc() argument
1126 if (radeon_crtc->crtc_id == 1) in radeon_legacy_init_crtc()
1127 radeon_crtc->crtc_offset = RADEON_CRTC2_H_TOTAL_DISP - RADEON_CRTC_H_TOTAL_DISP; in radeon_legacy_init_crtc()
1128 drm_crtc_helper_add(&radeon_crtc->base, &legacy_helper_funcs); in radeon_legacy_init_crtc()