Lines Matching refs:walk

32 					     struct vmemmap_remap_walk *walk);
99 struct vmemmap_remap_walk *walk) in vmemmap_pte_range() argument
107 if (!walk->reuse_page) { in vmemmap_pte_range()
108 walk->reuse_page = pte_page(*pte); in vmemmap_pte_range()
115 walk->nr_walked++; in vmemmap_pte_range()
119 walk->remap_pte(pte, addr, walk); in vmemmap_pte_range()
120 walk->nr_walked++; in vmemmap_pte_range()
126 struct vmemmap_remap_walk *walk) in vmemmap_pmd_range() argument
140 vmemmap_pte_range(pmd, addr, next, walk); in vmemmap_pmd_range()
148 struct vmemmap_remap_walk *walk) in vmemmap_pud_range() argument
158 ret = vmemmap_pmd_range(pud, addr, next, walk); in vmemmap_pud_range()
168 struct vmemmap_remap_walk *walk) in vmemmap_p4d_range() argument
178 ret = vmemmap_pud_range(p4d, addr, next, walk); in vmemmap_p4d_range()
187 struct vmemmap_remap_walk *walk) in vmemmap_remap_range() argument
201 ret = vmemmap_p4d_range(pgd, addr, next, walk); in vmemmap_remap_range()
242 struct vmemmap_remap_walk *walk) in vmemmap_remap_pte() argument
249 pte_t entry = mk_pte(walk->reuse_page, pgprot); in vmemmap_remap_pte()
252 list_add_tail(&page->lru, walk->vmemmap_pages); in vmemmap_remap_pte()
276 struct vmemmap_remap_walk *walk) in vmemmap_restore_pte() argument
282 BUG_ON(pte_page(*pte) != walk->reuse_page); in vmemmap_restore_pte()
284 page = list_first_entry(walk->vmemmap_pages, struct page, lru); in vmemmap_restore_pte()
287 copy_page(to, (void *)walk->reuse_addr); in vmemmap_restore_pte()
315 struct vmemmap_remap_walk walk = { in vmemmap_remap_free() local
337 ret = vmemmap_remap_range(reuse, end, &walk); in vmemmap_remap_free()
338 if (ret && walk.nr_walked) { in vmemmap_remap_free()
339 end = reuse + walk.nr_walked * PAGE_SIZE; in vmemmap_remap_free()
346 walk = (struct vmemmap_remap_walk) { in vmemmap_remap_free()
352 vmemmap_remap_range(reuse, end, &walk); in vmemmap_remap_free()
399 struct vmemmap_remap_walk walk = { in vmemmap_remap_alloc() local
412 vmemmap_remap_range(reuse, end, &walk); in vmemmap_remap_alloc()