Home
last modified time | relevance | path

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

/linux-6.6.21/arch/powerpc/mm/kasan/
D8xx.c10 kasan_init_shadow_8M(unsigned long k_start, unsigned long k_end, void *block) in kasan_init_shadow_8M() argument
15 for (k_cur = k_start; k_cur != k_end; k_cur = k_next, pmd += 2, block += SZ_8M) { in kasan_init_shadow_8M()
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()
38 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region() local
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()
[all …]
Dinit_32.c31 int __init kasan_init_shadow_page_tables(unsigned long k_start, unsigned long k_end) in kasan_init_shadow_page_tables() argument
38 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()
58 unsigned long k_end = (unsigned long)kasan_mem_to_shadow(start + size); in kasan_init_region() local
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()
84 kasan_update_early_region(unsigned long k_start, unsigned long k_end, pte_t pte) in kasan_update_early_region() argument
88 for (k_cur = k_start; k_cur != k_end; k_cur += PAGE_SIZE) { in kasan_update_early_region()
[all …]
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()
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()
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()
/linux-6.6.21/arch/powerpc/include/asm/
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);