Home
last modified time | relevance | path

Searched refs:KASAN_SHADOW_SCALE_SHIFT (Results 1 – 25 of 27) sorted by relevance

12

/linux/arch/loongarch/include/asm/
H A Dkasan.h13 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
35 #define XKPRANGE_CC_SHADOW_SIZE (XKPRANGE_CC_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
42 #define XKPRANGE_UC_SHADOW_SIZE (XKPRANGE_UC_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
49 #define XKPRANGE_WC_SHADOW_SIZE (XKPRANGE_WC_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
56 #define XKVRANGE_VC_SHADOW_SIZE (XKVRANGE_VC_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
/linux/arch/x86/include/asm/
H A Dkasan.h7 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
17 KASAN_SHADOW_SCALE_SHIFT))
24 KASAN_SHADOW_SCALE_SHIFT)))
/linux/arch/powerpc/include/asm/
H A Dkasan.h20 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
29 (KASAN_KERN_START >> KASAN_SHADOW_SCALE_SHIFT))
34 #define KASAN_SHADOW_END (-(-KASAN_SHADOW_START >> KASAN_SHADOW_SCALE_SHIFT))
/linux/arch/arm/include/asm/
H A Dkasan_def.h74 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
76 #define KASAN_SHADOW_END ((UL(1) << (32 - KASAN_SHADOW_SCALE_SHIFT)) \
H A Dkasan.h17 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
/linux/Documentation/arch/arm64/
H A Dkasan-offsets.sh12 echo KASAN_SHADOW_SCALE_SHIFT = 3
20 echo KASAN_SHADOW_SCALE_SHIFT = 4
/linux/arch/s390/include/asm/
H A Dkasan.h9 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
11 (_AC(1, UL) << (_REGION1_SHIFT - KASAN_SHADOW_SCALE_SHIFT))
/linux/arch/riscv/include/asm/
H A Dkasan.h26 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
28 #define KASAN_SHADOW_SIZE (UL(1) << ((VA_BITS - 1) - KASAN_SHADOW_SCALE_SHIFT))
/linux/arch/xtensa/include/asm/
H A Dkasan.h13 #define KASAN_SHADOW_SCALE_SHIFT 3 macro
20 #define KASAN_SHADOW_SIZE (-KASAN_START_VADDR >> KASAN_SHADOW_SCALE_SHIFT)
/linux/arch/loongarch/mm/
H A Dkasan_init.c76 return (void *)((maddr >> KASAN_SHADOW_SCALE_SHIFT) + offset); in kasan_mem_to_shadow()
91 …return (void *)(((addr - XKVRANGE_VC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKVRANGE_VC_STA… in kasan_shadow_to_mem()
93 …return (void *)(((addr - XKPRANGE_WC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_WC_STA… in kasan_shadow_to_mem()
95 …return (void *)(((addr - XKPRANGE_UC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_UC_STA… in kasan_shadow_to_mem()
97 …return (void *)(((addr - XKPRANGE_CC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_CC_STA… in kasan_shadow_to_mem()
/linux/include/linux/
H A Dexecmem.h11 #define MODULE_ALIGN (PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
H A Dkasan.h61 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT) in kasan_mem_to_shadow()
/linux/scripts/gdb/linux/
H A Dmm.py114 self.KASAN_SHADOW_SCALE_SHIFT = 3
116 self.KASAN_SHADOW_SCALE_SHIFT = 4
118 … self.KASAN_SHADOW_END = (1 << (64 - self.KASAN_SHADOW_SCALE_SHIFT)) + self.KASAN_SHADOW_OFFSET
119 …self.PAGE_END = self.KASAN_SHADOW_END - (1 << (self.vabits_actual - self.KASAN_SHADOW_SCALE_SHIFT))
H A Dkasan.py42 return (addr >> self.p_ops.KASAN_SHADOW_SCALE_SHIFT) + self.p_ops.KASAN_SHADOW_OFFSET
/linux/arch/arm64/include/asm/
H A Dmemory.h103 #define KASAN_SHADOW_END ((UL(1) << (64 - KASAN_SHADOW_SCALE_SHIFT)) + KASAN_SHADOW_OFFSET)
104 #define _KASAN_SHADOW_START(va) (KASAN_SHADOW_END - (UL(1) << ((va) - KASAN_SHADOW_SCALE_SHIFT)))
H A Dcache.h48 #define ARCH_SLAB_MINALIGN (1ULL << KASAN_SHADOW_SCALE_SHIFT)
/linux/arch/xtensa/mm/
H A Dkasan_init.c78 (KASAN_START_VADDR >> KASAN_SHADOW_SCALE_SHIFT)); in kasan_init()
/linux/arch/powerpc/include/asm/nohash/32/
H A Dpgtable.h111 #define VMALLOC_END ALIGN_DOWN(ioremap_bot, PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
/linux/mm/kasan/
H A Dshadow.c220 nr_shadow_pages = mem_data->nr_pages >> KASAN_SHADOW_SCALE_SHIFT; in kasan_mem_notifier()
590 KASAN_SHADOW_SCALE_SHIFT; in kasan_alloc_module_shadow()
H A Dkasan.h132 #define KASAN_GRANULE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT)
326 << KASAN_SHADOW_SCALE_SHIFT); in kasan_shadow_to_mem()
H A Dinit.c465 end = addr + (size >> KASAN_SHADOW_SCALE_SHIFT); in kasan_remove_zero_shadow()
500 shadow_end = shadow_start + (size >> KASAN_SHADOW_SCALE_SHIFT); in kasan_add_zero_shadow()
/linux/Documentation/translations/zh_TW/dev-tools/
H A Dkasan.rst254 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT)
258 在這裏 ``KASAN_SHADOW_SCALE_SHIFT = 3`` 。
/linux/Documentation/translations/zh_CN/dev-tools/
H A Dkasan.rst272 return (void *)((unsigned long)addr >> KASAN_SHADOW_SCALE_SHIFT)
276 在这里 ``KASAN_SHADOW_SCALE_SHIFT = 3`` 。
/linux/arch/arm64/mm/
H A Dkasan_init.c202 KASAN_SHADOW_END - (1UL << (64 - KASAN_SHADOW_SCALE_SHIFT))); in kasan_early_init()
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h193 #define VMALLOC_END ALIGN_DOWN(ioremap_bot, PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)

12