Lines Matching refs:crtc
77 static bool r100_is_in_vblank(struct radeon_device *rdev, int crtc) in r100_is_in_vblank() argument
79 if (crtc == 0) { in r100_is_in_vblank()
92 static bool r100_is_counter_moving(struct radeon_device *rdev, int crtc) in r100_is_counter_moving() argument
96 if (crtc == 0) { in r100_is_counter_moving()
117 void r100_wait_for_vblank(struct radeon_device *rdev, int crtc) in r100_wait_for_vblank() argument
121 if (crtc >= rdev->num_crtc) in r100_wait_for_vblank()
124 if (crtc == 0) { in r100_wait_for_vblank()
135 while (r100_is_in_vblank(rdev, crtc)) { in r100_wait_for_vblank()
137 if (!r100_is_counter_moving(rdev, crtc)) in r100_wait_for_vblank()
142 while (!r100_is_in_vblank(rdev, crtc)) { in r100_wait_for_vblank()
144 if (!r100_is_counter_moving(rdev, crtc)) in r100_wait_for_vblank()
462 struct drm_crtc *crtc; in r100_pm_prepare() local
467 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in r100_pm_prepare()
468 radeon_crtc = to_radeon_crtc(crtc); in r100_pm_prepare()
493 struct drm_crtc *crtc; in r100_pm_finish() local
498 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in r100_pm_finish()
499 radeon_crtc = to_radeon_crtc(crtc); in r100_pm_finish()
844 u32 r100_get_vblank_counter(struct radeon_device *rdev, int crtc) in r100_get_vblank_counter() argument
846 if (crtc == 0) in r100_get_vblank_counter()
1454 struct drm_crtc *crtc; in r100_cs_packet_parse_vline() local
1493 crtc = drm_crtc_find(p->rdev->ddev, p->filp, crtc_id); in r100_cs_packet_parse_vline()
1494 if (!crtc) { in r100_cs_packet_parse_vline()
1498 radeon_crtc = to_radeon_crtc(crtc); in r100_cs_packet_parse_vline()
1501 if (!crtc->enabled) { in r100_cs_packet_parse_vline()