Home
last modified time | relevance | path

Searched refs:new_pgd (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/arch/nds32/mm/
Dmm-nds32.c15 pgd_t *new_pgd, *init_pgd; in pgd_alloc() local
18 new_pgd = (pgd_t *) __get_free_pages(GFP_KERNEL, 0); in pgd_alloc()
19 if (!new_pgd) in pgd_alloc()
22 (*new_pgd) = 1; in pgd_alloc()
23 new_pgd++; in pgd_alloc()
25 new_pgd -= PTRS_PER_PGD; in pgd_alloc()
29 memcpy(new_pgd + FIRST_KERNEL_PGD_NR, init_pgd + FIRST_KERNEL_PGD_NR, in pgd_alloc()
32 cpu_dcache_wb_range((unsigned long)new_pgd, in pgd_alloc()
33 (unsigned long)new_pgd + in pgd_alloc()
35 inc_zone_page_state(virt_to_page((unsigned long *)new_pgd), in pgd_alloc()
[all …]
/Linux-v5.4/arch/unicore32/mm/
Dpgd.c26 pgd_t *new_pgd, *init_pgd; in get_pgd_slow() local
30 new_pgd = (pgd_t *)__get_free_pages(GFP_KERNEL, 0); in get_pgd_slow()
31 if (!new_pgd) in get_pgd_slow()
34 memset(new_pgd, 0, FIRST_KERNEL_PGD_NR * sizeof(pgd_t)); in get_pgd_slow()
40 memcpy(new_pgd + FIRST_KERNEL_PGD_NR, init_pgd + FIRST_KERNEL_PGD_NR, in get_pgd_slow()
43 clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t)); in get_pgd_slow()
50 new_pmd = pmd_alloc(mm, (pud_t *)new_pgd, 0); in get_pgd_slow()
65 return new_pgd; in get_pgd_slow()
71 free_pages((unsigned long)new_pgd, 0); in get_pgd_slow()
/Linux-v5.4/arch/arm/mm/
Dpgd.c32 pgd_t *new_pgd, *init_pgd; in pgd_alloc() local
37 new_pgd = __pgd_alloc(); in pgd_alloc()
38 if (!new_pgd) in pgd_alloc()
41 memset(new_pgd, 0, USER_PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
47 memcpy(new_pgd + USER_PTRS_PER_PGD, init_pgd + USER_PTRS_PER_PGD, in pgd_alloc()
50 clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t)); in pgd_alloc()
56 new_pud = pud_alloc(mm, new_pgd + pgd_index(MODULES_VADDR), in pgd_alloc()
72 new_pud = pud_alloc(mm, new_pgd, 0); in pgd_alloc()
103 return new_pgd; in pgd_alloc()
111 __pgd_free(new_pgd); in pgd_alloc()
/Linux-v5.4/arch/m68k/include/asm/
Dsun3_pgalloc.h53 pgd_t *new_pgd; in pgd_alloc() local
55 new_pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in pgd_alloc()
56 memcpy(new_pgd, swapper_pg_dir, PAGE_SIZE); in pgd_alloc()
57 memset(new_pgd, 0, (PAGE_OFFSET >> PGDIR_SHIFT)); in pgd_alloc()
58 return new_pgd; in pgd_alloc()
Dmcf_pgalloc.h93 pgd_t *new_pgd; in pgd_alloc() local
95 new_pgd = (pgd_t *)__get_free_page(GFP_DMA | __GFP_NOWARN); in pgd_alloc()
96 if (!new_pgd) in pgd_alloc()
98 memcpy(new_pgd, swapper_pg_dir, PAGE_SIZE); in pgd_alloc()
99 memset(new_pgd, 0, PAGE_OFFSET >> PGDIR_SHIFT); in pgd_alloc()
100 return new_pgd; in pgd_alloc()
/Linux-v5.4/arch/x86/power/
Dhibernate_64.c74 pgd_t new_pgd = __pgd(__pa(p4d) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() local
77 set_pgd(pgd + pgd_index(restore_jump_address), new_pgd); in set_up_temporary_text_mapping()
80 pgd_t new_pgd = __pgd(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() local
81 set_pgd(pgd + pgd_index(restore_jump_address), new_pgd); in set_up_temporary_text_mapping()