FreeBSD/sys/dev/drm2/radeon/radeon_gart.c
/**
 * radeon_vm_map_gart - get the physical address of a gart page
 *
 * @rdev: radeon_device pointer
 * @addr: the unmapped addr
 *
 * Look up the physical address of the page that the pte resolves
 * to (cayman+).
 * Returns the physical address of the page.
 */
get the physical address of a gart page
@rdev: radeon_device pointer
@addr: the unmapped addr

Look up the physical address of the page that the pte resolves
to (cayman+).
Returns the physical address of the page.
get the physical address of a gart page @rdev : radeon_device pointer @addr : the unmapped addr Look up the physical address of the page that the pte resolves to ( cayman + ) . Returns the physical address of the page .
uint64_t radeon_vm_map_gart(struct radeon_device *rdev, uint64_t addr)
{
	uint64_t result;
	result = rdev->gart.pages_addr[addr >> PAGE_SHIFT];
	result |= addr & (PAGE_MASK);
	return result;
}
uint64_t radeon_vm_map_gart ( struct radeon_device * rdev , uint64_t addr ) { uint64_t result ; result = rdev -> gart . pages_addr [ addr >> PAGE_SHIFT ] ; result |= addr & ( PAGE_MASK ) ; return result ; }
radeon_vm_map_gart - get the physical address of a gart page
 @rdev: radeon_device pointer
 @addr: the unmapped addr
radeon_vm_map_gart - get the physical address of a gart page @rdev : radeon_device pointer @addr : the unmapped addr
/* page table offset */ /* in case cpu page size != gpu page size*/ /*
	 * FreeBSD port note: FreeBSD's PAGE_MASK is the inverse of
	 * Linux's one. That's why the test below doesn't inverse the
	 * constant.
	 */