Lines Matching refs:pages

14 				 struct sg_table *pages,  in __i915_gem_object_set_pages()  argument
31 drm_clflush_sg(pages); in __i915_gem_object_set_pages()
35 obj->mm.get_page.sg_pos = pages->sgl; in __i915_gem_object_set_pages()
37 obj->mm.get_dma_page.sg_pos = pages->sgl; in __i915_gem_object_set_pages()
40 obj->mm.pages = pages; in __i915_gem_object_set_pages()
200 struct sg_table *pages; in __i915_gem_object_unset_pages() local
204 pages = fetch_and_zero(&obj->mm.pages); in __i915_gem_object_unset_pages()
205 if (IS_ERR_OR_NULL(pages)) in __i915_gem_object_unset_pages()
206 return pages; in __i915_gem_object_unset_pages()
221 return pages; in __i915_gem_object_unset_pages()
226 struct sg_table *pages; in __i915_gem_object_put_pages() local
241 pages = __i915_gem_object_unset_pages(obj); in __i915_gem_object_put_pages()
249 if (!IS_ERR_OR_NULL(pages)) in __i915_gem_object_put_pages()
250 obj->ops->put_pages(obj, pages); in __i915_gem_object_put_pages()
260 struct page *stack[32], **pages = stack, *page; in i915_gem_object_map_page() local
287 if (n_pages == 1 && !PageHighMem(sg_page(obj->mm.pages->sgl))) in i915_gem_object_map_page()
288 return page_address(sg_page(obj->mm.pages->sgl)); in i915_gem_object_map_page()
298 pages = kvmalloc_array(n_pages, sizeof(*pages), GFP_KERNEL); in i915_gem_object_map_page()
299 if (!pages) in i915_gem_object_map_page()
304 for_each_sgt_page(page, iter, obj->mm.pages) in i915_gem_object_map_page()
305 pages[i++] = page; in i915_gem_object_map_page()
306 vaddr = vmap(pages, n_pages, 0, pgprot); in i915_gem_object_map_page()
307 if (pages != stack) in i915_gem_object_map_page()
308 kvfree(pages); in i915_gem_object_map_page()
334 for_each_sgt_daddr(addr, iter, obj->mm.pages) in i915_gem_object_map_pfn()