Home
last modified time | relevance | path

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

/arch/powerpc/mm/
Dmmap.c71 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
73 if (gap < MIN_GAP) in mmap_base()
74 gap = MIN_GAP; in mmap_base()
75 else if (gap > MAX_GAP) in mmap_base()
76 gap = MAX_GAP; in mmap_base()
78 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
/arch/tile/mm/
Dmmap.c34 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
40 if (gap < MIN_GAP) in mmap_base()
41 gap = MIN_GAP; in mmap_base()
42 else if (gap > MAX_GAP) in mmap_base()
43 gap = MAX_GAP; in mmap_base()
45 return PAGE_ALIGN(TASK_SIZE - gap - random_factor); in mmap_base()
/arch/arm64/mm/
Dmmap.c66 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
68 if (gap < MIN_GAP) in mmap_base()
69 gap = MIN_GAP; in mmap_base()
70 else if (gap > MAX_GAP) in mmap_base()
71 gap = MAX_GAP; in mmap_base()
73 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/arch/x86/mm/
Dmmap.c86 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
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(TASK_SIZE - gap - rnd); in mmap_base()
/arch/mips/mm/
Dmmap.c38 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
40 if (gap < MIN_GAP) in mmap_base()
41 gap = MIN_GAP; in mmap_base()
42 else if (gap > MAX_GAP) in mmap_base()
43 gap = MAX_GAP; in mmap_base()
45 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
/arch/s390/mm/
Dmmap.c72 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
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()
78 gap &= PAGE_MASK; in mmap_base()
79 return STACK_TOP - stack_maxrandom_size() - rnd - gap; in mmap_base()
/arch/arm/mm/
Dmmap.c35 unsigned long gap = rlimit(RLIMIT_STACK); in mmap_base() local
37 if (gap < MIN_GAP) in mmap_base()
38 gap = MIN_GAP; in mmap_base()
39 else if (gap > MAX_GAP) in mmap_base()
40 gap = MAX_GAP; in mmap_base()
42 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
/arch/sparc/kernel/
Dsys_sparc_64.c279 unsigned long gap; in arch_pick_mmap_layout() local
285 gap = rlimit(RLIMIT_STACK); in arch_pick_mmap_layout()
288 gap == RLIM_INFINITY || in arch_pick_mmap_layout()
296 if (gap < 128 * 1024 * 1024) in arch_pick_mmap_layout()
297 gap = 128 * 1024 * 1024; in arch_pick_mmap_layout()
298 if (gap > (task_size / 6 * 5)) in arch_pick_mmap_layout()
299 gap = (task_size / 6 * 5); in arch_pick_mmap_layout()
301 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.S88 ! measure the gap size
104 ! D1.6 stores the gap size in bits
107 ! D0.6 stores the complement of the gap size
114 ! D1Re0 << gap-size
/arch/x86/kernel/cpu/
Dperf_event_intel_bts.c324 unsigned long head, space, next_space, pad, gap, skip, wakeup; in bts_buffer_reset() local
349 gap = buf_size(phys->page) - phys->displacement - phys->size + in bts_buffer_reset()
351 skip = pad + gap; in bts_buffer_reset()
/arch/x86/kernel/
De820.c604 unsigned long gap = last - end; in e820_search_gap() local
606 if (gap >= *gapsize) { in e820_search_gap()
607 *gapsize = gap; in e820_search_gap()