sys/dev/drm/radeon/radeon_fence.c
/**
 * radeon_fence_signaled - check if a fence has signaled
 *
 * @fence: radeon fence object
 *
 * Check if the requested fence has signaled (all asics).
 * Returns true if the fence has signaled or false if it has not.
 */
check if a fence has signaled
@fence: radeon fence object

Check if the requested fence has signaled (all asics).
Returns true if the fence has signaled or false if it has not.
check if a fence has signaled @fence : radeon fence object Check if the requested fence has signaled ( all asics ) . Returns true if the fence has signaled or false if it has not .
bool radeon_fence_signaled(struct radeon_fence *fence)
{
	if (!fence) {
		return true;
	}
	if (fence->seq == RADEON_FENCE_SIGNALED_SEQ) {
		return true;
	}
	if (radeon_fence_seq_signaled(fence->rdev, fence->seq, fence->ring)) {
		fence->seq = RADEON_FENCE_SIGNALED_SEQ;
		return true;
	}
	return false;
}
bool radeon_fence_signaled ( struct radeon_fence * fence ) { if ( ! fence ) { return true ; } if ( fence -> seq == RADEON_FENCE_SIGNALED_SEQ ) { return true ; } if ( radeon_fence_seq_signaled ( fence -> rdev , fence -> seq , fence -> ring ) ) { fence -> seq = RADEON_FENCE_SIGNALED_SEQ ; return true ; } return false ; }
radeon_fence_signaled - check if a fence has signaled
 @fence: radeon fence object
radeon_fence_signaled - check if a fence has signaled @fence : radeon fence object