Home
last modified time | relevance | path

Searched refs:max_longs (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/arch/arm64/include/asm/
Darchrandom.h61 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
69 if (max_longs && cpus_have_const_cap(ARM64_HAS_RNG) && __arm64_rndr(v)) in arch_get_random_longs()
74 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
76 if (!max_longs) in arch_get_random_seed_longs()
88 max_longs = min_t(size_t, 3, max_longs); in arch_get_random_seed_longs()
89 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND64, max_longs * 64, &res); in arch_get_random_seed_longs()
91 switch (max_longs) { in arch_get_random_seed_longs()
102 return max_longs; in arch_get_random_seed_longs()
125 arch_get_random_seed_longs_early(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs_early() argument
129 if (!max_longs) in arch_get_random_seed_longs_early()
[all …]
/linux-6.1.9/arch/s390/include/asm/
Darchrandom.h22 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
27 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
31 cpacf_trng(NULL, 0, (u8 *)v, max_longs * sizeof(*v)); in arch_get_random_seed_longs()
32 atomic64_add(max_longs * sizeof(*v), &s390_arch_random_counter); in arch_get_random_seed_longs()
33 return max_longs; in arch_get_random_seed_longs()
/linux-6.1.9/arch/x86/include/asm/
Darchrandom.h48 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
50 return max_longs && static_cpu_has(X86_FEATURE_RDRAND) && rdrand_long(v) ? 1 : 0; in arch_get_random_longs()
53 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
55 return max_longs && static_cpu_has(X86_FEATURE_RDSEED) && rdseed_long(v) ? 1 : 0; in arch_get_random_seed_longs()
/linux-6.1.9/arch/um/include/asm/
Darchrandom.h10 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
14 ret = os_getrandom(v, max_longs * sizeof(*v), 0); in arch_get_random_longs()
20 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
/linux-6.1.9/include/linux/
Drandom.h181 static inline size_t __init arch_get_random_seed_longs_early(unsigned long *v, size_t max_longs) in declare_get_random_var_wait()
184 return arch_get_random_seed_longs(v, max_longs); in declare_get_random_var_wait()
189 static inline bool __init arch_get_random_longs_early(unsigned long *v, size_t max_longs) in arch_get_random_longs_early() argument
192 return arch_get_random_longs(v, max_longs); in arch_get_random_longs_early()
/linux-6.1.9/include/asm-generic/
Darchrandom.h5 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
10 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
/linux-6.1.9/arch/powerpc/include/asm/
Darchrandom.h5 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
10 size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs);
/linux-6.1.9/arch/powerpc/kernel/
Dsetup-common.c176 size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
178 if (max_longs && ppc_md.get_random_seed && ppc_md.get_random_seed(v)) in arch_get_random_seed_longs()