sys/dev/drm/radeon/radeon_fence.c
/**
 * radeon_fence_write - write a fence value
 *
 * @rdev: radeon_device pointer
 * @seq: sequence number to write
 * @ring: ring index the fence is associated with
 *
 * Writes a fence value to memory or a scratch register (all asics).
 */
write a fence value
@rdev: radeon_device pointer
@seq: sequence number to write
@ring: ring index the fence is associated with

Writes a fence value to memory or a scratch register (all asics).
write a fence value @rdev : radeon_device pointer @seq : sequence number to write @ring : ring index the fence is associated with Writes a fence value to memory or a scratch register ( all asics ) .
static void radeon_fence_write(struct radeon_device *rdev, u32 seq, int ring)
{
	struct radeon_fence_driver *drv = &rdev->fence_drv[ring];
	if (likely(rdev->wb.enabled || !drv->scratch_reg)) {
		*drv->cpu_addr = cpu_to_le32(seq);
	} else {
		WREG32(drv->scratch_reg, seq);
	}
}
static void radeon_fence_write ( struct radeon_device * rdev , u32 seq , int ring ) { struct radeon_fence_driver * drv = & rdev -> fence_drv [ ring ] ; if ( likely ( rdev -> wb . enabled || ! drv -> scratch_reg ) ) { * drv -> cpu_addr = cpu_to_le32 ( seq ) ; } else { WREG32 ( drv -> scratch_reg , seq ) ; } }
radeon_fence_write - write a fence value
 @rdev: radeon_device pointer
 @seq: sequence number to write
 @ring: ring index the fence is associated with
radeon_fence_write - write a fence value @rdev : radeon_device pointer @seq : sequence number to write @ring : ring index the fence is associated with