FreeBSD/sys/dev/drm2/radeon/radeon_gart.c
/**
 * radeon_gart_fini - tear down the driver info for managing the gart
 *
 * @rdev: radeon_device pointer
 *
 * Tear down the gart driver info and free the dummy page (all asics).
 */
tear down the driver info for managing the gart
@rdev: radeon_device pointer

Tear down the gart driver info and free the dummy page (all asics).
tear down the driver info for managing the gart @rdev : radeon_device pointer Tear down the gart driver info and free the dummy page ( all asics ) .
void radeon_gart_fini(struct radeon_device *rdev)
{
	if (rdev->gart.pages && rdev->gart.pages_addr && rdev->gart.ready) {
		radeon_gart_unbind(rdev, 0, rdev->gart.num_cpu_pages);
	}
	rdev->gart.ready = false;
	free(rdev->gart.pages, DRM_MEM_DRIVER);
	free(rdev->gart.pages_addr, DRM_MEM_DRIVER);
	rdev->gart.pages = NULL;
	rdev->gart.pages_addr = NULL;
	radeon_dummy_page_fini(rdev);
}
void radeon_gart_fini ( struct radeon_device * rdev ) { if ( rdev -> gart . pages && rdev -> gart . pages_addr && rdev -> gart . ready ) { radeon_gart_unbind ( rdev , 0 , rdev -> gart . num_cpu_pages ) ; } rdev -> gart . ready = false ; free ( rdev -> gart . pages , DRM_MEM_DRIVER ) ; free ( rdev -> gart . pages_addr , DRM_MEM_DRIVER ) ; rdev -> gart . pages = NULL ; rdev -> gart . pages_addr = NULL ; radeon_dummy_page_fini ( rdev ) ; }
radeon_gart_fini - tear down the driver info for managing the gart
 @rdev: radeon_device pointer
radeon_gart_fini - tear down the driver info for managing the gart @rdev : radeon_device pointer
/* unbind pages */