Lines Matching +full:sg +full:- +full:micro

2  * Copyright 2008 Advanced Micro Devices, Inc.
35 * radeon_mem_type_to_domain - return domain corresponding to mem_type
56 * radeon_bo_reserve - reserve bo
58 * @no_intr: don't return -ERESTARTSYS on pending signal
61 * -ERESTARTSYS: A wait for the buffer to become unreserved was interrupted by
62 * a signal. Release all buffer reservations and return to user-space.
68 r = ttm_bo_reserve(&bo->tbo, !no_intr, false, NULL); in radeon_bo_reserve()
70 if (r != -ERESTARTSYS) in radeon_bo_reserve()
71 dev_err(bo->rdev->dev, "%p reserve failed\n", bo); in radeon_bo_reserve()
79 ttm_bo_unreserve(&bo->tbo); in radeon_bo_unreserve()
83 * radeon_bo_gpu_offset - return GPU offset of bo
96 rdev = radeon_get_rdev(bo->tbo.bdev); in radeon_bo_gpu_offset()
98 switch (bo->tbo.mem.mem_type) { in radeon_bo_gpu_offset()
100 start = rdev->mc.gtt_start; in radeon_bo_gpu_offset()
103 start = rdev->mc.vram_start; in radeon_bo_gpu_offset()
107 return (bo->tbo.mem.start << PAGE_SHIFT) + start; in radeon_bo_gpu_offset()
112 return bo->tbo.num_pages << PAGE_SHIFT; in radeon_bo_size()
117 return (bo->tbo.num_pages << PAGE_SHIFT) / RADEON_GPU_PAGE_SIZE; in radeon_bo_ngpu_pages()
122 return (bo->tbo.mem.page_alignment << PAGE_SHIFT) / RADEON_GPU_PAGE_SIZE; in radeon_bo_gpu_page_alignment()
126 * radeon_bo_mmap_offset - return mmap offset of bo
133 return drm_vma_node_offset_addr(&bo->tbo.base.vma_node); in radeon_bo_mmap_offset()
142 struct sg_table *sg,
180 return sa_bo->manager->gpu_addr + sa_bo->soffset; in radeon_sa_bo_gpu_addr()
185 return sa_bo->manager->cpu_ptr + sa_bo->soffset; in radeon_sa_bo_cpu_addr()