Lines Matching refs:start
168 static int temp_pgtable_map_pte(pmd_t *dst_pmdp, pmd_t *src_pmdp, unsigned long start, in temp_pgtable_map_pte() argument
182 dst_ptep = pte_offset_kernel(dst_pmdp, start); in temp_pgtable_map_pte()
183 src_ptep = pte_offset_kernel(src_pmdp, start); in temp_pgtable_map_pte()
190 } while (dst_ptep++, src_ptep++, start += PAGE_SIZE, start < end); in temp_pgtable_map_pte()
195 static int temp_pgtable_map_pmd(pud_t *dst_pudp, pud_t *src_pudp, unsigned long start, in temp_pgtable_map_pmd() argument
211 dst_pmdp = pmd_offset(dst_pudp, start); in temp_pgtable_map_pmd()
212 src_pmdp = pmd_offset(src_pudp, start); in temp_pgtable_map_pmd()
217 next = pmd_addr_end(start, end); in temp_pgtable_map_pmd()
225 ret = temp_pgtable_map_pte(dst_pmdp, src_pmdp, start, next, prot); in temp_pgtable_map_pmd()
229 } while (dst_pmdp++, src_pmdp++, start = next, start != end); in temp_pgtable_map_pmd()
234 static int temp_pgtable_map_pud(p4d_t *dst_p4dp, p4d_t *src_p4dp, unsigned long start, in temp_pgtable_map_pud() argument
250 dst_pudp = pud_offset(dst_p4dp, start); in temp_pgtable_map_pud()
251 src_pudp = pud_offset(src_p4dp, start); in temp_pgtable_map_pud()
256 next = pud_addr_end(start, end); in temp_pgtable_map_pud()
264 ret = temp_pgtable_map_pmd(dst_pudp, src_pudp, start, next, prot); in temp_pgtable_map_pud()
268 } while (dst_pudp++, src_pudp++, start = next, start != end); in temp_pgtable_map_pud()
273 static int temp_pgtable_map_p4d(pgd_t *dst_pgdp, pgd_t *src_pgdp, unsigned long start, in temp_pgtable_map_p4d() argument
289 dst_p4dp = p4d_offset(dst_pgdp, start); in temp_pgtable_map_p4d()
290 src_p4dp = p4d_offset(src_pgdp, start); in temp_pgtable_map_p4d()
295 next = p4d_addr_end(start, end); in temp_pgtable_map_p4d()
303 ret = temp_pgtable_map_pud(dst_p4dp, src_p4dp, start, next, prot); in temp_pgtable_map_p4d()
307 } while (dst_p4dp++, src_p4dp++, start = next, start != end); in temp_pgtable_map_p4d()
312 static int temp_pgtable_mapping(pgd_t *pgdp, unsigned long start, unsigned long end, pgprot_t prot) in temp_pgtable_mapping() argument
314 pgd_t *dst_pgdp = pgd_offset_pgd(pgdp, start); in temp_pgtable_mapping()
315 pgd_t *src_pgdp = pgd_offset_k(start); in temp_pgtable_mapping()
322 next = pgd_addr_end(start, end); in temp_pgtable_mapping()
330 ret = temp_pgtable_map_p4d(dst_pgdp, src_pgdp, start, next, prot); in temp_pgtable_mapping()
334 } while (dst_pgdp++, src_pgdp++, start = next, start != end); in temp_pgtable_mapping()
357 unsigned long start = PAGE_OFFSET; in swsusp_arch_resume() local
372 ret = temp_pgtable_mapping(resume_pg_dir, start, end, __pgprot(_PAGE_WRITE | _PAGE_EXEC)); in swsusp_arch_resume()
391 start = (unsigned long)resume_hdr.restore_cpu_addr; in swsusp_arch_resume()
392 end = start + PAGE_SIZE; in swsusp_arch_resume()
394 ret = temp_pgtable_mapping(resume_pg_dir, start, end, __pgprot(_PAGE_WRITE)); in swsusp_arch_resume()