FreeBSD/sys/dev/drm2/radeon/radeon_gart.c
/**
 * radeon_gart_table_vram_alloc - allocate vram for gart page table
 *
 * @rdev: radeon_device pointer
 *
 * Allocate video memory for GART page table
 * (pcie r4xx, r5xx+).  These asics require the
 * gart table to be in video memory.
 * Returns 0 for success, error for failure.
 */
allocate vram for gart page table
@rdev: radeon_device pointer

Allocate video memory for GART page table
(pcie r4xx, r5xx+).  These asics require the
gart table to be in video memory.
Returns 0 for success, error for failure.
allocate vram for gart page table @rdev : radeon_device pointer Allocate video memory for GART page table ( pcie r4xx r5xx + ) . These asics require the gart table to be in video memory . Returns 0 for success error for failure .
int radeon_gart_table_vram_alloc(struct radeon_device *rdev)
{
	int r;
	if (rdev->gart.robj == NULL) {
		r = radeon_bo_create(rdev, rdev->gart.table_size,
				     PAGE_SIZE, true, RADEON_GEM_DOMAIN_VRAM,
				     NULL, &rdev->gart.robj);
		if (r) {
			return r;
		}
	}
	return 0;
}
int radeon_gart_table_vram_alloc ( struct radeon_device * rdev ) { int r ; if ( rdev -> gart . robj == NULL ) { r = radeon_bo_create ( rdev , rdev -> gart . table_size , PAGE_SIZE , true , RADEON_GEM_DOMAIN_VRAM , NULL , & rdev -> gart . robj ) ; if ( r ) { return r ; } } return 0 ; }
radeon_gart_table_vram_alloc - allocate vram for gart page table
 @rdev: radeon_device pointer
radeon_gart_table_vram_alloc - allocate vram for gart page table @rdev : radeon_device pointer