Home
last modified time | relevance | path

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

/openbmc/linux/arch/powerpc/mm/kasan/
H A D8xx.c10 kasan_init_shadow_8M(unsigned long k_start, unsigned long k_end, void *block) in kasan_init_shadow_8M() argument
18 k_next = pgd_addr_end(k_cur, k_end); in kasan_init_shadow_8M()
19 k_next = pgd_addr_end(k_next, k_end); in kasan_init_shadow_8M()
43 block = memblock_alloc(k_end - k_start, SZ_8M); in kasan_init_region()
48 kasan_init_shadow_8M(k_start, ALIGN_DOWN(k_end, SZ_8M), block); in kasan_init_region()
49 k_cur = ALIGN_DOWN(k_end, SZ_8M); in kasan_init_region()
50 if (k_cur == k_end) in kasan_init_region()
56 ret = kasan_init_shadow_page_tables(k_start, k_end); in kasan_init_region()
60 for (; k_cur < k_end; k_cur += PAGE_SIZE) { in kasan_init_region()
65 if (k_cur < ALIGN_DOWN(k_end, SZ_512K)) in kasan_init_region()
[all …]
H A Dinit_32.c38 for (k_cur = k_start; k_cur != k_end; k_cur = k_next, pmd++) { in kasan_init_shadow_page_tables()
41 k_next = pgd_addr_end(k_cur, k_end); in kasan_init_shadow_page_tables()
63 ret = kasan_init_shadow_page_tables(k_start, k_end); in kasan_init_region()
68 block = memblock_alloc(k_end - k_start, PAGE_SIZE); in kasan_init_region()
72 for (k_cur = k_start & PAGE_MASK; k_cur < k_end; k_cur += PAGE_SIZE) { in kasan_init_region()
79 flush_tlb_kernel_range(k_start, k_end); in kasan_init_region()
88 for (k_cur = k_start; k_cur != k_end; k_cur += PAGE_SIZE) { in kasan_update_early_region()
98 flush_tlb_kernel_range(k_start, k_end); in kasan_update_early_region()
117 kasan_update_early_region(k_start, k_end, __pte(0)); in kasan_unmap_early_shadow_vmalloc()
121 k_end = (unsigned long)kasan_mem_to_shadow((void *)MODULES_END); in kasan_unmap_early_shadow_vmalloc()
[all …]
H A Dbook3s_32.c12 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region() local
18 while (k_nobat < k_end) { in kasan_init_region()
19 unsigned int k_size = bat_block_size(k_nobat, k_end); in kasan_init_region()
37 if (k_nobat < k_end) { in kasan_init_region()
38 phys = memblock_phys_alloc_range(k_end - k_nobat, PAGE_SIZE, 0, in kasan_init_region()
44 ret = kasan_init_shadow_page_tables(k_start, k_end); in kasan_init_region()
50 for (k_cur = k_nobat; k_cur < k_end; k_cur += PAGE_SIZE) { in kasan_init_region()
56 flush_tlb_kernel_range(k_start, k_end); in kasan_init_region()
57 memset(kasan_mem_to_shadow(start), 0, k_end - k_start); in kasan_init_region()
H A Dinit_book3s_64.c26 unsigned long k_start, k_end, k_cur; in kasan_init_phys_region() local
33 k_end = ALIGN((unsigned long)kasan_mem_to_shadow(end), PAGE_SIZE); in kasan_init_phys_region()
35 va = memblock_alloc(k_end - k_start, PAGE_SIZE); in kasan_init_phys_region()
36 for (k_cur = k_start; k_cur < k_end; k_cur += PAGE_SIZE, va += PAGE_SIZE) in kasan_init_phys_region()
54 void *k_end = kasan_mem_to_shadow((void *)RADIX_VMEMMAP_END); in kasan_init() local
80 kasan_populate_early_shadow(k_start, k_end); in kasan_init()
H A Dinit_book3e_64.c68 unsigned long k_start, k_end, k_cur; in kasan_init_phys_region() local
75 k_end = ALIGN((unsigned long)kasan_mem_to_shadow(end), PAGE_SIZE); in kasan_init_phys_region()
77 va = memblock_alloc(k_end - k_start, PAGE_SIZE); in kasan_init_phys_region()
78 for (k_cur = k_start; k_cur < k_end; k_cur += PAGE_SIZE, va += PAGE_SIZE) in kasan_init_phys_region()
/openbmc/linux/arch/powerpc/include/asm/
H A Dkasan.h79 void kasan_update_early_region(unsigned long k_start, unsigned long k_end, pte_t pte);
80 int kasan_init_shadow_page_tables(unsigned long k_start, unsigned long k_end);