Home
last modified time | relevance | path

Searched refs:random_offset (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/loongarch/kernel/
H A Drelocate.c21 #define RELOCATED_KASLR(x) ((void *)((long)x + random_offset))
45 static inline void __init relocate_absolute(long random_offset) in relocate_absolute() argument
134 unsigned long random_offset; in determine_relocation_address() local
142 random_offset = get_random_boot() << 16; in determine_relocation_address()
143 random_offset &= (CONFIG_RANDOMIZE_BASE_MAX_OFFSET - 1); in determine_relocation_address()
144 if (random_offset < kernel_length) in determine_relocation_address()
145 random_offset += ALIGN(kernel_length, 0xffff); in determine_relocation_address()
162 static inline void __init update_reloc_offset(unsigned long *addr, long random_offset) in update_reloc_offset() argument
172 unsigned long random_offset = 0; in relocate_kernel() local
183 random_offset = (unsigned long)location_new - (unsigned long)(_text); in relocate_kernel()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_gem_gtt.c130 static u64 random_offset(u64 start, u64 end, u64 len, u64 align) in random_offset() function
275 offset = random_offset(start, end, in i915_gem_gtt_insert()