Lines Matching refs:pages
12 struct sg_table *pages) in huge_free_pages() argument
18 for_each_sgt_page(page, sgt_iter, pages) { in huge_free_pages()
24 sg_free_table(pages); in huge_free_pages()
25 kfree(pages); in huge_free_pages()
34 struct sg_table *pages; in huge_get_pages() local
37 pages = kmalloc(sizeof(*pages), GFP); in huge_get_pages()
38 if (!pages) in huge_get_pages()
41 if (sg_alloc_table(pages, npages, GFP)) { in huge_get_pages()
42 kfree(pages); in huge_get_pages()
46 sg = pages->sgl; in huge_get_pages()
60 for (end = sg, src = pages->sgl; sg; sg = __sg_next(sg)) { in huge_get_pages()
64 src = pages->sgl; in huge_get_pages()
68 if (i915_gem_gtt_prepare_pages(obj, pages)) in huge_get_pages()
71 __i915_gem_object_set_pages(obj, pages, PAGE_SIZE); in huge_get_pages()
76 huge_free_pages(obj, pages); in huge_get_pages()
82 struct sg_table *pages) in huge_put_pages() argument
84 i915_gem_gtt_finish_pages(obj, pages); in huge_put_pages()
85 huge_free_pages(obj, pages); in huge_put_pages()