Home
last modified time | relevance | path

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

/openbmc/linux/arch/arm64/include/asm/
H A Darchrandom.h69 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs() argument
77 if (max_longs && __cpu_has_rng() && __arm64_rndr(v)) in arch_get_random_longs()
82 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
84 if (!max_longs) in arch_get_random_seed_longs()
96 max_longs = min_t(size_t, 3, max_longs); in arch_get_random_seed_longs()
97 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND64, max_longs * 64, &res); in arch_get_random_seed_longs()
99 switch (max_longs) { in arch_get_random_seed_longs()
110 return max_longs; in arch_get_random_seed_longs()
/openbmc/linux/arch/s390/include/asm/
H A 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()
/openbmc/linux/arch/x86/include/asm/
H A 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()
/openbmc/linux/arch/um/include/asm/
H A 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
/openbmc/linux/include/asm-generic/
H A 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
/openbmc/linux/arch/powerpc/include/asm/
H A 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);
/openbmc/linux/arch/powerpc/kernel/
H A Dsetup-common.c181 size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs() argument
183 if (max_longs && ppc_md.get_random_seed && ppc_md.get_random_seed(v)) in arch_get_random_seed_longs()