Lines Matching full: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
41 pages = kmalloc(sizeof(*pages), GFP); in huge_get_pages()
42 if (!pages) in huge_get_pages()
45 if (sg_alloc_table(pages, npages, GFP)) { in huge_get_pages()
46 kfree(pages); in huge_get_pages()
50 sg = pages->sgl; in huge_get_pages()
64 for (end = sg, src = pages->sgl; sg; sg = __sg_next(sg)) { in huge_get_pages()
68 src = pages->sgl; in huge_get_pages()
72 if (i915_gem_gtt_prepare_pages(obj, pages)) in huge_get_pages()
75 __i915_gem_object_set_pages(obj, pages); in huge_get_pages()
80 huge_free_pages(obj, pages); in huge_get_pages()
86 struct sg_table *pages) in huge_put_pages() argument
88 i915_gem_gtt_finish_pages(obj, pages); in huge_put_pages()
89 huge_free_pages(obj, pages); in huge_put_pages()