Lines Matching refs:radeon_crtc
36 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_lock_cursor() local
40 cur_lock = RREG32(EVERGREEN_CUR_UPDATE + radeon_crtc->crtc_offset); in radeon_lock_cursor()
45 WREG32(EVERGREEN_CUR_UPDATE + radeon_crtc->crtc_offset, cur_lock); in radeon_lock_cursor()
47 cur_lock = RREG32(AVIVO_D1CUR_UPDATE + radeon_crtc->crtc_offset); in radeon_lock_cursor()
52 WREG32(AVIVO_D1CUR_UPDATE + radeon_crtc->crtc_offset, cur_lock); in radeon_lock_cursor()
54 cur_lock = RREG32(RADEON_CUR_OFFSET + radeon_crtc->crtc_offset); in radeon_lock_cursor()
59 WREG32(RADEON_CUR_OFFSET + radeon_crtc->crtc_offset, cur_lock); in radeon_lock_cursor()
65 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_hide_cursor() local
69 WREG32_IDX(EVERGREEN_CUR_CONTROL + radeon_crtc->crtc_offset, in radeon_hide_cursor()
73 WREG32_IDX(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset, in radeon_hide_cursor()
77 switch (radeon_crtc->crtc_id) { in radeon_hide_cursor()
93 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_show_cursor() local
97 WREG32(RADEON_MM_INDEX, EVERGREEN_CUR_CONTROL + radeon_crtc->crtc_offset); in radeon_show_cursor()
102 WREG32(RADEON_MM_INDEX, AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset); in radeon_show_cursor()
106 switch (radeon_crtc->crtc_id) { in radeon_show_cursor()
126 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_set_cursor() local
130 WREG32(EVERGREEN_CUR_SURFACE_ADDRESS_HIGH + radeon_crtc->crtc_offset, in radeon_set_cursor()
132 WREG32(EVERGREEN_CUR_SURFACE_ADDRESS + radeon_crtc->crtc_offset, in radeon_set_cursor()
136 if (radeon_crtc->crtc_id) in radeon_set_cursor()
141 WREG32(AVIVO_D1CUR_SURFACE_ADDRESS + radeon_crtc->crtc_offset, in radeon_set_cursor()
144 radeon_crtc->legacy_cursor_offset = gpu_addr - radeon_crtc->legacy_display_base_addr; in radeon_set_cursor()
146 WREG32(RADEON_CUR_OFFSET + radeon_crtc->crtc_offset, radeon_crtc->legacy_cursor_offset); in radeon_set_cursor()
156 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_cursor_set() local
177 DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, radeon_crtc->crtc_id); in radeon_crtc_cursor_set()
193 radeon_crtc->cursor_width = width; in radeon_crtc_cursor_set()
194 radeon_crtc->cursor_height = height; in radeon_crtc_cursor_set()
202 if (radeon_crtc->cursor_bo) { in radeon_crtc_cursor_set()
203 robj = gem_to_radeon_bo(radeon_crtc->cursor_bo); in radeon_crtc_cursor_set()
209 drm_gem_object_unreference_unlocked(radeon_crtc->cursor_bo); in radeon_crtc_cursor_set()
212 radeon_crtc->cursor_bo = obj; in radeon_crtc_cursor_set()
223 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); in radeon_crtc_cursor_move() local
226 int w = radeon_crtc->cursor_width; in radeon_crtc_cursor_move()
288 WREG32(EVERGREEN_CUR_POSITION + radeon_crtc->crtc_offset, (x << 16) | y); in radeon_crtc_cursor_move()
289 WREG32(EVERGREEN_CUR_HOT_SPOT + radeon_crtc->crtc_offset, (xorigin << 16) | yorigin); in radeon_crtc_cursor_move()
290 WREG32(EVERGREEN_CUR_SIZE + radeon_crtc->crtc_offset, in radeon_crtc_cursor_move()
291 ((w - 1) << 16) | (radeon_crtc->cursor_height - 1)); in radeon_crtc_cursor_move()
293 WREG32(AVIVO_D1CUR_POSITION + radeon_crtc->crtc_offset, (x << 16) | y); in radeon_crtc_cursor_move()
294 WREG32(AVIVO_D1CUR_HOT_SPOT + radeon_crtc->crtc_offset, (xorigin << 16) | yorigin); in radeon_crtc_cursor_move()
295 WREG32(AVIVO_D1CUR_SIZE + radeon_crtc->crtc_offset, in radeon_crtc_cursor_move()
296 ((w - 1) << 16) | (radeon_crtc->cursor_height - 1)); in radeon_crtc_cursor_move()
301 WREG32(RADEON_CUR_HORZ_VERT_OFF + radeon_crtc->crtc_offset, in radeon_crtc_cursor_move()
305 WREG32(RADEON_CUR_HORZ_VERT_POSN + radeon_crtc->crtc_offset, in radeon_crtc_cursor_move()
310 WREG32(RADEON_CUR_OFFSET + radeon_crtc->crtc_offset, (radeon_crtc->legacy_cursor_offset + in radeon_crtc_cursor_move()