sys/dev/drm/radeon/radeon_fence.c
/**
 * radeon_fence_seq_signaled - check if a fence sequeuce number has signaled
 *
 * @rdev: radeon device pointer
 * @seq: sequence number
 * @ring: ring index the fence is associated with
 *
 * Check if the last singled fence sequnce number is >= the requested
 * sequence number (all asics).
 * Returns true if the fence has signaled (current fence value
 * is >= requested value) or false if it has not (current fence
 * value is < the requested value.  Helper function for
 * radeon_fence_signaled().
 */
check if a fence sequeuce number has signaled
@rdev: radeon device pointer
@seq: sequence number
@ring: ring index the fence is associated with

Check if the last singled fence sequnce number is >= the requested
sequence number (all asics).
Returns true if the fence has signaled (current fence value
is >= requested value) or false if it has not (current fence
value is < the requested value.  Helper function for
radeon_fence_signaled().
check if a fence sequeuce number has signaled @rdev : radeon device pointer @seq : sequence number @ring : ring index the fence is associated with Check if the last singled fence sequnce number is > = the requested sequence number ( all asics ) . Returns true if the fence has signaled ( current fence value is > = requested value ) or false if it has not ( current fence value is < the requested value . Helper function for radeon_fence_signaled () .
static bool radeon_fence_seq_signaled(struct radeon_device *rdev,
				      u64 seq, unsigned ring)
{
	if (atomic64_read(&rdev->fence_drv[ring].last_seq) >= seq) {
		return true;
	}
	radeon_fence_process(rdev, ring);
	if (atomic64_read(&rdev->fence_drv[ring].last_seq) >= seq) {
		return true;
	}
	return false;
}
static bool radeon_fence_seq_signaled ( struct radeon_device * rdev , u64 seq , unsigned ring ) { if ( atomic64_read ( & rdev -> fence_drv [ ring ] . last_seq ) >= seq ) { return true ; } radeon_fence_process ( rdev , ring ) ; if ( atomic64_read ( & rdev -> fence_drv [ ring ] . last_seq ) >= seq ) { return true ; } return false ; }
radeon_fence_seq_signaled - check if a fence sequeuce number has signaled
 @rdev: radeon device pointer
 @seq: sequence number
 @ring: ring index the fence is associated with
radeon_fence_seq_signaled - check if a fence sequeuce number has signaled @rdev : radeon device pointer @seq : sequence number @ring : ring index the fence is associated with
/* poll new last sequence at least once */