Home
last modified time | relevance | path

Searched refs:gap (Results 1 – 16 of 16) sorted by relevance

/arch/arm64/mm/
Dmmap.c67 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
71 if (gap + pad > gap) in mmap_base()
72 gap += pad; in mmap_base()
74 if (gap < MIN_GAP) in mmap_base()
75 gap = MIN_GAP; in mmap_base()
76 else if (gap > MAX_GAP) in mmap_base()
77 gap = MAX_GAP; in mmap_base()
79 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/arch/tile/mm/
Dmmap.c35 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
41 if (gap < MIN_GAP) in mmap_base()
42 gap = MIN_GAP; in mmap_base()
43 else if (gap > MAX_GAP) in mmap_base()
44 gap = MAX_GAP; in mmap_base()
46 return PAGE_ALIGN(TASK_SIZE - gap - random_factor); in mmap_base()
/arch/x86/mm/
Dmmap.c93 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
98 if (gap + pad > gap) in mmap_base()
99 gap += pad; in mmap_base()
108 if (gap < gap_min) in mmap_base()
109 gap = gap_min; in mmap_base()
110 else if (gap > gap_max) in mmap_base()
111 gap = gap_max; in mmap_base()
113 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
/arch/powerpc/mm/
Dmmap.c81 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
85 if (gap + pad > gap) in mmap_base()
86 gap += pad; in mmap_base()
88 if (gap < MIN_GAP) in mmap_base()
89 gap = MIN_GAP; in mmap_base()
90 else if (gap > MAX_GAP) in mmap_base()
91 gap = MAX_GAP; in mmap_base()
93 return PAGE_ALIGN(DEFAULT_MAP_WINDOW - gap - rnd); in mmap_base()
Dpgtable-radix.c226 unsigned long gap, previous_size; in create_physical_mapping() local
229 gap = end - addr; in create_physical_mapping()
234 if (IS_ALIGNED(addr, PUD_SIZE) && gap >= PUD_SIZE && in create_physical_mapping()
238 else if (IS_ALIGNED(addr, PMD_SIZE) && gap >= PMD_SIZE && in create_physical_mapping()
/arch/s390/mm/
Dmmap.c75 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
77 if (gap < MIN_GAP) in mmap_base()
78 gap = MIN_GAP; in mmap_base()
79 else if (gap > MAX_GAP) in mmap_base()
80 gap = MAX_GAP; in mmap_base()
81 gap &= PAGE_MASK; in mmap_base()
82 return STACK_TOP - stack_maxrandom_size() - rnd - gap; in mmap_base()
/arch/mips/mm/
Dmmap.c40 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
42 if (gap < MIN_GAP) in mmap_base()
43 gap = MIN_GAP; in mmap_base()
44 else if (gap > MAX_GAP) in mmap_base()
45 gap = MAX_GAP; in mmap_base()
47 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
/arch/arm/mm/
Dmmap.c37 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
39 if (gap < MIN_GAP) in mmap_base()
40 gap = MIN_GAP; in mmap_base()
41 else if (gap > MAX_GAP) in mmap_base()
42 gap = MAX_GAP; in mmap_base()
44 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
/arch/sparc/kernel/
Dsys_sparc_64.c282 unsigned long gap; in arch_pick_mmap_layout() local
288 gap = rlimit(RLIMIT_STACK); in arch_pick_mmap_layout()
291 gap == RLIM_INFINITY || in arch_pick_mmap_layout()
299 if (gap < 128 * 1024 * 1024) in arch_pick_mmap_layout()
300 gap = 128 * 1024 * 1024; in arch_pick_mmap_layout()
301 if (gap > (task_size / 6 * 5)) in arch_pick_mmap_layout()
302 gap = (task_size / 6 * 5); in arch_pick_mmap_layout()
304 mm->mmap_base = PAGE_ALIGN(task_size - gap - random_factor); in arch_pick_mmap_layout()
/arch/mips/boot/
Delf2ecoff.c567 unsigned long gap = in main() local
570 if (gap > 65536) { in main()
573 gap); in main()
578 gap); in main()
580 while (gap) { in main()
583 (gap > in main()
585 obuf : gap)); in main()
592 gap -= count; in main()
/arch/metag/lib/
Dmemmove.S89 ! measure the gap size
105 ! D1.6 stores the gap size in bits
108 ! D0.6 stores the complement of the gap size
115 ! D1Re0 << gap-size
/arch/x86/events/intel/
Dbts.c377 unsigned long head, space, next_space, pad, gap, skip, wakeup; in bts_buffer_reset() local
400 gap = buf_size(phys->page) - phys->displacement - phys->size + in bts_buffer_reset()
402 skip = pad + gap; in bts_buffer_reset()
/arch/x86/kernel/
De820.c606 unsigned long gap = last - end; in e820_search_gap() local
608 if (gap >= *gapsize) { in e820_search_gap()
609 *gapsize = gap; in e820_search_gap()
/arch/powerpc/
DKconfig29 # 32T of address space (2^45), which should ensure a reasonable gap
/arch/arm64/crypto/
Dsha512-core.S_shipped38 // and the gap is only 40-90%.
Dsha256-core.S_shipped38 // and the gap is only 40-90%.