Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 21 of 21) sorted by relevance

/arch/mips/mm/
Dmmap.c38 static unsigned long mmap_base(unsigned long rnd) in mmap_base() argument
47 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
149 unsigned long rnd; in arch_mmap_rnd() local
153 rnd = get_random_long() & ((1UL << mmap_rnd_compat_bits) - 1); in arch_mmap_rnd()
156 rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); in arch_mmap_rnd()
158 return rnd << PAGE_SHIFT; in arch_mmap_rnd()
179 unsigned long rnd = get_random_long(); in brk_rnd() local
181 rnd = rnd << PAGE_SHIFT; in brk_rnd()
184 rnd = rnd & 0x7ffffful; in brk_rnd()
186 rnd = rnd & 0xffffffful; in brk_rnd()
[all …]
/arch/arm64/mm/
Dmmap.c54 unsigned long rnd; in arch_mmap_rnd() local
58 rnd = get_random_long() & ((1UL << mmap_rnd_compat_bits) - 1); in arch_mmap_rnd()
61 rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); in arch_mmap_rnd()
62 return rnd << PAGE_SHIFT; in arch_mmap_rnd()
65 static unsigned long mmap_base(unsigned long rnd) in mmap_base() argument
79 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/arch/x86/mm/
Dmmap.c91 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size) in mmap_base() argument
113 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
116 static unsigned long mmap_legacy_base(unsigned long rnd, in mmap_legacy_base() argument
119 return __TASK_UNMAPPED_BASE(task_size) + rnd; in mmap_legacy_base()
/arch/arm/mm/
Dmmap.c35 static unsigned long mmap_base(unsigned long rnd) in mmap_base() argument
44 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
176 unsigned long rnd; in arch_mmap_rnd() local
178 rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); in arch_mmap_rnd()
180 return rnd << PAGE_SHIFT; in arch_mmap_rnd()
/arch/powerpc/mm/
Dmmap.c55 unsigned long shift, rnd; in arch_mmap_rnd() local
62 rnd = get_random_long() % (1ul << shift); in arch_mmap_rnd()
64 return rnd << PAGE_SHIFT; in arch_mmap_rnd()
79 static inline unsigned long mmap_base(unsigned long rnd) in mmap_base() argument
93 return PAGE_ALIGN(DEFAULT_MAP_WINDOW - gap - rnd); in mmap_base()
/arch/s390/mm/
Dmmap.c68 static unsigned long mmap_base_legacy(unsigned long rnd) in mmap_base_legacy() argument
70 return TASK_UNMAPPED_BASE + rnd; in mmap_base_legacy()
73 static inline unsigned long mmap_base(unsigned long rnd) in mmap_base() argument
82 return STACK_TOP - stack_maxrandom_size() - rnd - gap; in mmap_base()
/arch/x86/crypto/
Dsha512-ssse3-asm.S118 .macro SHA512_Round rnd argument
128 idx = \rnd
153 .macro SHA512_2Sched_2Round_sse rnd argument
174 idx = \rnd -2
180 idx = \rnd
182 idx = \rnd - 15
226 idx = \rnd + 1
247 idx = \rnd - 7
254 idx =\rnd-16
259 movdqa %xmm0, W_t(\rnd) # Store scheduled qwords
[all …]
Dsha512-avx-asm.S126 .macro SHA512_Round rnd argument
135 idx = \rnd
160 .macro SHA512_2Sched_2Round_avx rnd argument
176 idx = \rnd - 2
178 idx = \rnd - 15
191 idx = \rnd
231 idx = \rnd - 16
233 idx = \rnd - 7
240 idx = \rnd + 1
252 idx = \rnd
/arch/m68k/math-emu/
Dfp_arith.c85 if (FPDATA->rnd == FPCR_ROUND_RM) in fp_fadd()
638 fp_roundint(dest, FPDATA->rnd); in fp_fint()
683 oldround = FPDATA->rnd; in fp_fscale()
684 FPDATA->rnd = FPCR_ROUND_RZ; in fp_fscale()
686 FPDATA->rnd = oldround; in fp_fscale()
/arch/parisc/kernel/
Dsys_parisc.c231 unsigned long rnd = 0; in mmap_rnd() local
234 rnd = get_random_int() & MMAP_RND_MASK; in mmap_rnd()
236 return rnd << PAGE_SHIFT; in mmap_rnd()
Dmodule.c137 #define rnd(x) (((x)+0x1000)&~0x1fff) macro
145 #define lrsel(v,a) (((v)+rnd(a))>>11)
147 #define rrsel(v,a) ((((v)+rnd(a))&0x7ff)+((a)-rnd(a)))
/arch/sparc/kernel/
Dsys_sparc_64.c267 unsigned long rnd = 0UL; in mmap_rnd() local
272 rnd = (val % (1UL << (23UL-PAGE_SHIFT))); in mmap_rnd()
274 rnd = (val % (1UL << (30UL-PAGE_SHIFT))); in mmap_rnd()
276 return rnd << PAGE_SHIFT; in mmap_rnd()
/arch/m68k/ifpsp060/src/
Dfplsp.S584 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
641 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
700 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
761 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
818 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
877 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
938 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
995 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
1054 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
1115 mov.b FPCR_MODE(%a6),%d0 # pass rnd mode,prec
[all …]
Dfpsp.S941 mov.b FPCR_MODE(%a6),%d0 # pass rnd prec/mode
1532 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode/prec
1844 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode/prec
2089 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode/prec
2592 mov.b FPCR_MODE(%a6),%d0 # pass: rnd mode,prec
3728 mov.b FPCR_MODE(%a6),%d0 # pass rnd prec,mode
4083 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode
6445 fmov.l %d0,%fpcr # restore users rnd mode,prec
6497 fmov.l %d0,%fpcr # restore users rnd mode,prec
6504 fmov.l %d0,%fpcr # restore users rnd mode,prec
[all …]
Dpfpsp.S940 mov.b FPCR_MODE(%a6),%d0 # pass rnd prec/mode
1531 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode/prec
1843 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode/prec
2088 mov.b FPCR_MODE(%a6),%d0 # fetch rnd mode/prec
2591 mov.b FPCR_MODE(%a6),%d0 # pass: rnd mode,prec
3727 mov.b FPCR_MODE(%a6),%d0 # pass rnd prec,mode
/arch/frv/include/asm/
Dmath-emu.h102 unsigned short rnd; member
/arch/m68k/include/asm/
Dmath-emu.h102 unsigned short rnd; member
/arch/powerpc/kernel/
Dprocess.c2033 unsigned long rnd = 0; in brk_rnd() local
2037 rnd = (get_random_long() % (1UL<<(23-PAGE_SHIFT))); in brk_rnd()
2039 rnd = (get_random_long() % (1UL<<(30-PAGE_SHIFT))); in brk_rnd()
2041 return rnd << PAGE_SHIFT; in brk_rnd()
/arch/mips/include/asm/octeon/
Dcvmx-pow-defs.h741 uint64_t rnd:8; member
743 uint64_t rnd:8;
/arch/m68k/fpsp040/
Dround.S183 |Jump table for adding 1 to the l-bit indexed by rnd prec
Dsetox.S115 | N = rnd-to-int( X*64/log2 (1+eps) ), |eps|<=2^(-24)