Lines Matching refs:pages

19 				 struct sg_table *pages)  in __i915_gem_object_set_pages()  argument
36 drm_clflush_sg(pages); in __i915_gem_object_set_pages()
40 obj->mm.get_page.sg_pos = pages->sgl; in __i915_gem_object_set_pages()
42 obj->mm.get_dma_page.sg_pos = pages->sgl; in __i915_gem_object_set_pages()
45 obj->mm.pages = pages; in __i915_gem_object_set_pages()
47 obj->mm.page_sizes.phys = i915_sg_dma_sizes(pages->sgl); in __i915_gem_object_set_pages()
211 struct sg_table *pages; in __i915_gem_object_unset_pages() local
215 pages = fetch_and_zero(&obj->mm.pages); in __i915_gem_object_unset_pages()
216 if (IS_ERR_OR_NULL(pages)) in __i915_gem_object_unset_pages()
217 return pages; in __i915_gem_object_unset_pages()
235 return pages; in __i915_gem_object_unset_pages()
240 struct sg_table *pages; in __i915_gem_object_put_pages() local
255 pages = __i915_gem_object_unset_pages(obj); in __i915_gem_object_put_pages()
263 if (!IS_ERR_OR_NULL(pages)) in __i915_gem_object_put_pages()
264 obj->ops->put_pages(obj, pages); in __i915_gem_object_put_pages()
274 struct page *stack[32], **pages = stack, *page; in i915_gem_object_map_page() local
301 if (n_pages == 1 && !PageHighMem(sg_page(obj->mm.pages->sgl))) in i915_gem_object_map_page()
302 return page_address(sg_page(obj->mm.pages->sgl)); in i915_gem_object_map_page()
312 pages = kvmalloc_array(n_pages, sizeof(*pages), GFP_KERNEL); in i915_gem_object_map_page()
313 if (!pages) in i915_gem_object_map_page()
318 for_each_sgt_page(page, iter, obj->mm.pages) in i915_gem_object_map_page()
319 pages[i++] = page; in i915_gem_object_map_page()
320 vaddr = vmap(pages, n_pages, 0, pgprot); in i915_gem_object_map_page()
321 if (pages != stack) in i915_gem_object_map_page()
322 kvfree(pages); in i915_gem_object_map_page()
348 for_each_sgt_daddr(addr, iter, obj->mm.pages) in i915_gem_object_map_pfn()