Lines Matching full:pages
41 * in the GPU's address space. System pages can be mapped into
42 * the aperture and look like contiguous pages from the GPU's
43 * perspective. A page table maps the pages in the aperture
44 * to the actual backing pages in system memory.
69 * when pages are taken out of the GART
211 * amdgpu_gart_unbind - unbind pages from the gart page table
215 * @pages: number of pages to unbind
217 * Unbinds the requested pages from the gart page table and
222 int pages) in amdgpu_gart_unbind() argument
238 for (i = 0; i < pages; i++, p++) { in amdgpu_gart_unbind()
240 adev->gart.pages[p] = NULL; in amdgpu_gart_unbind()
265 * @pages: number of pages to bind
266 * @dma_addr: DMA addresses of pages
274 int pages, dma_addr_t *dma_addr, uint64_t flags, in amdgpu_gart_map() argument
287 for (i = 0; i < pages; i++) { in amdgpu_gart_map()
298 * amdgpu_gart_bind - bind pages into the gart page table
302 * @pages: number of pages to bind
303 * @pagelist: pages to bind
304 * @dma_addr: DMA addresses of pages
307 * Binds the requested pages to the gart page table
312 int pages, struct page **pagelist, dma_addr_t *dma_addr, in amdgpu_gart_bind() argument
328 for (i = 0; i < pages; i++, p++) in amdgpu_gart_bind()
329 adev->gart.pages[p] = pagelist ? pagelist[i] : NULL; in amdgpu_gart_bind()
335 r = amdgpu_gart_map(adev, offset, pages, dma_addr, flags, in amdgpu_gart_bind()
373 DRM_INFO("GART: num cpu pages %u, num gpu pages %u\n", in amdgpu_gart_init()
377 /* Allocate pages table */ in amdgpu_gart_init()
378 adev->gart.pages = vzalloc(array_size(sizeof(void *), in amdgpu_gart_init()
380 if (adev->gart.pages == NULL) in amdgpu_gart_init()
397 vfree(adev->gart.pages); in amdgpu_gart_fini()
398 adev->gart.pages = NULL; in amdgpu_gart_fini()