FreeBSD/sys/dev/drm2/radeon/radeon_gart.c
/**
 * radeon_gart_table_vram_unpin - unpin gart page table in vram
 *
 * @rdev: radeon_device pointer
 *
 * Unpin the GART page table in vram (pcie r4xx, r5xx+).
 * These asics require the gart table to be in video memory.
 */
unpin gart page table in vram
@rdev: radeon_device pointer

Unpin the GART page table in vram (pcie r4xx, r5xx+).
These asics require the gart table to be in video memory.
unpin gart page table in vram @rdev : radeon_device pointer Unpin the GART page table in vram ( pcie r4xx r5xx + ) . These asics require the gart table to be in video memory .
void radeon_gart_table_vram_unpin(struct radeon_device *rdev)
{
	int r;
	if (rdev->gart.robj == NULL) {
		return;
	}
	r = radeon_bo_reserve(rdev->gart.robj, false);
	if (likely(r == 0)) {
		radeon_bo_kunmap(rdev->gart.robj);
		radeon_bo_unpin(rdev->gart.robj);
		radeon_bo_unreserve(rdev->gart.robj);
		rdev->gart.ptr = NULL;
	}
}
void radeon_gart_table_vram_unpin ( struct radeon_device * rdev ) { int r ; if ( rdev -> gart . robj == NULL ) { return ; } r = radeon_bo_reserve ( rdev -> gart . robj , false ) ; if ( likely ( r == 0 ) ) { radeon_bo_kunmap ( rdev -> gart . robj ) ; radeon_bo_unpin ( rdev -> gart . robj ) ; radeon_bo_unreserve ( rdev -> gart . robj ) ; rdev -> gart . ptr = NULL ; } }
radeon_gart_table_vram_unpin - unpin gart page table in vram
 @rdev: radeon_device pointer
radeon_gart_table_vram_unpin - unpin gart page table in vram @rdev : radeon_device pointer