sys/dev/drm/radeon/radeon_fence.c
/**
 * radeon_fence_need_sync - do we need a semaphore
 *
 * @fence: radeon fence object
 * @dst_ring: which ring to check against
 *
 * Check if the fence needs to be synced against another ring
 * (all asics).  If so, we need to emit a semaphore.
 * Returns true if we need to sync with another ring, false if
 * not.
 */
do we need a semaphore
@fence: radeon fence object
@dst_ring: which ring to check against

Check if the fence needs to be synced against another ring
(all asics).  If so, we need to emit a semaphore.
Returns true if we need to sync with another ring, false if
not.
do we need a semaphore @fence : radeon fence object @dst_ring : which ring to check against Check if the fence needs to be synced against another ring ( all asics ) . If so we need to emit a semaphore . Returns true if we need to sync with another ring false if not .
bool radeon_fence_need_sync(struct radeon_fence *fence, int dst_ring)
{
	struct radeon_fence_driver *fdrv;
	if (!fence) {
		return false;
	}
	if (fence->ring == dst_ring) {
		return false;
	}
	fdrv = &fence->rdev->fence_drv[dst_ring];
	if (fence->seq <= fdrv->sync_seq[fence->ring]) {
		return false;
	}
	return true;
}
bool radeon_fence_need_sync ( struct radeon_fence * fence , int dst_ring ) { struct radeon_fence_driver * fdrv ; if ( ! fence ) { return false ; } if ( fence -> ring == dst_ring ) { return false ; } fdrv = & fence -> rdev -> fence_drv [ dst_ring ] ; if ( fence -> seq <= fdrv -> sync_seq [ fence -> ring ] ) { return false ; } return true ; }
radeon_fence_need_sync - do we need a semaphore
 @fence: radeon fence object
 @dst_ring: which ring to check against
radeon_fence_need_sync - do we need a semaphore @fence : radeon fence object @dst_ring : which ring to check against
/* we are protected by the ring mutex */