Lines Matching refs:ringA
314 struct radeon_ring *ringA, in radeon_test_ring_sync() argument
327 r = radeon_ring_lock(rdev, ringA, 64); in radeon_test_ring_sync()
329 DRM_ERROR("Failed to lock ring A %d\n", ringA->idx); in radeon_test_ring_sync()
332 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync()
333 radeon_ring_unlock_commit(rdev, ringA, false); in radeon_test_ring_sync()
335 r = radeon_test_create_and_emit_fence(rdev, ringA, &fence1); in radeon_test_ring_sync()
339 r = radeon_ring_lock(rdev, ringA, 64); in radeon_test_ring_sync()
341 DRM_ERROR("Failed to lock ring A %d\n", ringA->idx); in radeon_test_ring_sync()
344 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync()
345 radeon_ring_unlock_commit(rdev, ringA, false); in radeon_test_ring_sync()
347 r = radeon_test_create_and_emit_fence(rdev, ringA, &fence2); in radeon_test_ring_sync()
407 struct radeon_ring *ringA, in radeon_test_ring_sync2() argument
422 r = radeon_ring_lock(rdev, ringA, 64); in radeon_test_ring_sync2()
424 DRM_ERROR("Failed to lock ring A %d\n", ringA->idx); in radeon_test_ring_sync2()
427 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync2()
428 radeon_ring_unlock_commit(rdev, ringA, false); in radeon_test_ring_sync2()
430 r = radeon_test_create_and_emit_fence(rdev, ringA, &fenceA); in radeon_test_ring_sync2()
516 static bool radeon_test_sync_possible(struct radeon_ring *ringA, in radeon_test_sync_possible() argument
519 if (ringA->idx == TN_RING_TYPE_VCE2_INDEX && in radeon_test_sync_possible()
531 struct radeon_ring *ringA = &rdev->ring[i]; in radeon_test_syncing() local
532 if (!ringA->ready) in radeon_test_syncing()
540 if (!radeon_test_sync_possible(ringA, ringB)) in radeon_test_syncing()
544 radeon_test_ring_sync(rdev, ringA, ringB); in radeon_test_syncing()
547 radeon_test_ring_sync(rdev, ringB, ringA); in radeon_test_syncing()
554 if (!radeon_test_sync_possible(ringA, ringC)) in radeon_test_syncing()
561 radeon_test_ring_sync2(rdev, ringA, ringB, ringC); in radeon_test_syncing()
564 radeon_test_ring_sync2(rdev, ringA, ringC, ringB); in radeon_test_syncing()
567 radeon_test_ring_sync2(rdev, ringB, ringA, ringC); in radeon_test_syncing()
570 radeon_test_ring_sync2(rdev, ringB, ringC, ringA); in radeon_test_syncing()
573 radeon_test_ring_sync2(rdev, ringC, ringA, ringB); in radeon_test_syncing()
576 radeon_test_ring_sync2(rdev, ringC, ringB, ringA); in radeon_test_syncing()