Lines Matching refs:max_longs
61 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()
135 max_longs = min_t(size_t, 3, max_longs); in arch_get_random_seed_longs_early()
136 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND64, max_longs * 64, &res); in arch_get_random_seed_longs_early()
138 switch (max_longs) { in arch_get_random_seed_longs_early()
149 return max_longs; in arch_get_random_seed_longs_early()