FreeBSD/sys/dev/drm2/radeon/r600.c
bool r600_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
{
	u32 dma_status_reg;

	dma_status_reg = RREG32(DMA_STATUS_REG);
	if (dma_status_reg & DMA_IDLE) {
		radeon_ring_lockup_update(ring);
		return false;
	}
	/* force ring activities */
	radeon_ring_force_activity(rdev, ring);
	return radeon_ring_test_lockup(rdev, ring);
}
/**
 * r600_dma_is_lockup - Check if the DMA engine is locked up
 *
 * @rdev: radeon_device pointer
 * @ring: radeon_ring structure holding ring information
 *
 * Check if the async DMA engine is locked up (r6xx-evergreen).
 * Returns true if the engine appears to be locked up, false if not.
 */
Check if the DMA engine is locked up
@rdev: radeon_device pointer
@ring: radeon_ring structure holding ring information

Check if the async DMA engine is locked up (r6xx-evergreen).
Returns true if the engine appears to be locked up, false if not.
Check if the DMA engine is locked up @rdev : radeon_device pointer @ring : radeon_ring structure holding ring information Check if the async DMA engine is locked up ( r6xx - evergreen ) . Returns true if the engine appears to be locked up false if not .
bool r600_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring)
{
	u32 dma_status_reg;
	dma_status_reg = RREG32(DMA_STATUS_REG);
	if (dma_status_reg & DMA_IDLE) {
		radeon_ring_lockup_update(ring);
		return false;
	}
	radeon_ring_force_activity(rdev, ring);
	return radeon_ring_test_lockup(rdev, ring);
}
bool r600_dma_is_lockup ( struct radeon_device * rdev , struct radeon_ring * ring ) { u32 dma_status_reg ; dma_status_reg = RREG32 ( DMA_STATUS_REG ) ; if ( dma_status_reg & DMA_IDLE ) { radeon_ring_lockup_update ( ring ) ; return false ; } radeon_ring_force_activity ( rdev , ring ) ; return radeon_ring_test_lockup ( rdev , ring ) ; }
r600_dma_is_lockup - Check if the DMA engine is locked up
 @rdev: radeon_device pointer
 @ring: radeon_ring structure holding ring information
r600_dma_is_lockup - Check if the DMA engine is locked up @rdev : radeon_device pointer @ring : radeon_ring structure holding ring information
/* force ring activities */