• Home
  • Raw
  • Download

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()
339 drm_vblank_pre_modeset(dev, radeon_crtc->crtc_id); in radeon_crtc_dpms()
340 if (radeon_crtc->crtc_id) in radeon_crtc_dpms()
347 radeon_crtc->enabled = false; in radeon_crtc_dpms()
373 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_do_set_base() local
442 radeon_crtc->legacy_display_base_addr = rdev->mc.vram_start; in radeon_crtc_do_set_base()
444 base -= radeon_crtc->legacy_display_base_addr; in radeon_crtc_do_set_base()
505 if (radeon_crtc->crtc_id == 1) in radeon_crtc_do_set_base()
518 WREG32(RADEON_DISPLAY_BASE_ADDR + radeon_crtc->crtc_offset, radeon_crtc->legacy_display_base_addr); in radeon_crtc_do_set_base()
521 if (radeon_crtc->crtc_id) in radeon_crtc_do_set_base()
526 WREG32(RADEON_CRTC_OFFSET_CNTL + radeon_crtc->crtc_offset, crtc_offset_cntl); in radeon_crtc_do_set_base()
527 WREG32(RADEON_CRTC_OFFSET + radeon_crtc->crtc_offset, crtc_offset); in radeon_crtc_do_set_base()
528 WREG32(RADEON_CRTC_PITCH + radeon_crtc->crtc_offset, crtc_pitch); in radeon_crtc_do_set_base()
550 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_crtc_timing() local
568 DRM_INFO("crtc %d is connected to a TV\n", radeon_crtc->crtc_id); in radeon_set_crtc_timing()
622 if (radeon_crtc->crtc_id) { in radeon_set_crtc_timing()
697 WREG32(RADEON_CRTC_H_TOTAL_DISP + radeon_crtc->crtc_offset, crtc_h_total_disp); in radeon_set_crtc_timing()
698 WREG32(RADEON_CRTC_H_SYNC_STRT_WID + radeon_crtc->crtc_offset, crtc_h_sync_strt_wid); in radeon_set_crtc_timing()
699 WREG32(RADEON_CRTC_V_TOTAL_DISP + radeon_crtc->crtc_offset, crtc_v_total_disp); in radeon_set_crtc_timing()
700 WREG32(RADEON_CRTC_V_SYNC_STRT_WID + radeon_crtc->crtc_offset, crtc_v_sync_strt_wid); in radeon_set_crtc_timing()
709 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_pll() local
745 if (radeon_crtc->crtc_id) in radeon_set_pll()
825 if (radeon_crtc->crtc_id) { in radeon_set_pll()
1012 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_mode_set() local
1019 if (radeon_crtc->crtc_id == 0) { in radeon_crtc_mode_set()
1022 if (radeon_crtc->rmx_type != RMX_OFF) { in radeon_crtc_mode_set()
1072 struct radeon_crtc *radeon_crtc) in radeon_legacy_init_crtc() argument
1074 if (radeon_crtc->crtc_id == 1) in radeon_legacy_init_crtc()
1075 radeon_crtc->crtc_offset = RADEON_CRTC2_H_TOTAL_DISP - RADEON_CRTC_H_TOTAL_DISP; in radeon_legacy_init_crtc()
1076 drm_crtc_helper_add(&radeon_crtc->base, &legacy_helper_funcs); in radeon_legacy_init_crtc()