linux/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
/**
 * amdgpu_gem_prime_get_sg_table - &drm_driver.gem_prime_get_sg_table
 * implementation
 * @obj: GEM buffer object
 *
 * Returns:
 * A scatter/gather table for the pinned pages of the buffer object's memory.
 */


A scatter/gather table for the pinned pages of the buffer object's memory.
A scatter / gather table for the pinned pages of the buffer object ' s memory .
struct sg_table *amdgpu_gem_prime_get_sg_table(struct drm_gem_object *obj)
{
	struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj);
	int npages = bo->tbo.num_pages;
	return drm_prime_pages_to_sg(bo->tbo.ttm->pages, npages);
}
struct sg_table * amdgpu_gem_prime_get_sg_table ( struct drm_gem_object * obj ) { struct amdgpu_bo * bo = gem_to_amdgpu_bo ( obj ) ; int npages = bo -> tbo . num_pages ; return drm_prime_pages_to_sg ( bo -> tbo . ttm -> pages , npages ) ; }
amdgpu_gem_prime_get_sg_table - &drm_driver.gem_prime_get_sg_table
 implementation
 @obj: GEM buffer object
amdgpu_gem_prime_get_sg_table - &drm_driver . gem_prime_get_sg_table implementation @obj : GEM buffer object