Lines Matching full:pages

43  * in the GPU's address space.  System pages can be mapped into
44 * the aperture and look like contiguous pages from the GPU's
45 * perspective. A page table maps the pages in the aperture
46 * to the actual backing pages in system memory.
278 * radeon_gart_unbind - unbind pages from the gart page table
282 * @pages: number of pages to unbind
284 * Unbinds the requested pages from the gart page table and
288 int pages) in radeon_gart_unbind() argument
299 for (i = 0; i < pages; i++, p++) { in radeon_gart_unbind()
300 if (rdev->gart.pages[p]) { in radeon_gart_unbind()
301 rdev->gart.pages[p] = NULL; in radeon_gart_unbind()
318 * radeon_gart_bind - bind pages into the gart page table
322 * @pages: number of pages to bind
323 * @pagelist: pages to bind
324 * @dma_addr: DMA addresses of pages
327 * Binds the requested pages to the gart page table
332 int pages, struct vm_page **pagelist, dma_addr_t *dma_addr, in radeon_gart_bind() argument
346 for (i = 0; i < pages; i++, p++) { in radeon_gart_bind()
347 rdev->gart.pages[p] = pagelist ? pagelist[i] : in radeon_gart_bind()
378 if (rdev->gart.pages) in radeon_gart_init()
392 DRM_INFO("GART: num cpu pages %u, num gpu pages %u\n", in radeon_gart_init()
394 /* Allocate pages table */ in radeon_gart_init()
395 rdev->gart.pages = vzalloc(array_size(sizeof(void *), in radeon_gart_init()
397 if (rdev->gart.pages == NULL) { in radeon_gart_init()
423 /* unbind pages */ in radeon_gart_fini()
427 vfree(rdev->gart.pages); in radeon_gart_fini()
429 rdev->gart.pages = NULL; in radeon_gart_fini()