Home
last modified time | relevance | path

Searched refs:seed (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/tile/
H A Dtile_id_hash.cpp8 std::size_t seed = 0; in operator ()() local
9 boost::hash_combine(seed, id.x); in operator ()()
10 boost::hash_combine(seed, id.y); in operator ()()
11 boost::hash_combine(seed, id.z); in operator ()()
12 return seed; in operator ()()
16 std::size_t seed = 0; in operator ()() local
17 boost::hash_combine(seed, std::hash<mbgl::CanonicalTileID>{}(id.canonical)); in operator ()()
18 boost::hash_combine(seed, id.wrap); in operator ()()
19 return seed; in operator ()()
23 std::size_t seed = 0; in operator ()() local
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/functional/hash/
H A Dhash.hpp198 std::size_t seed = 0; in hash_value_signed() local
204 seed ^= (std::size_t) (positive >> i) + (seed<<6) + (seed>>2); in hash_value_signed()
206 seed ^= (std::size_t) val + (seed<<6) + (seed>>2); in hash_value_signed()
208 return seed; in hash_value_signed()
219 std::size_t seed = 0; in hash_value_unsigned() local
224 seed ^= (std::size_t) (val >> i) + (seed<<6) + (seed>>2); in hash_value_unsigned()
226 seed ^= (std::size_t) val + (seed<<6) + (seed>>2); in hash_value_unsigned()
228 return seed; in hash_value_unsigned()
232 inline void hash_combine_impl(SizeT& seed, SizeT value) in hash_combine_impl() argument
234 seed ^= value + 0x9e3779b9 + (seed<<6) + (seed>>2); in hash_combine_impl()
[all …]
H A Dextensions.hpp69 std::size_t seed = 0; in hash_value() local
70 boost::hash_combine(seed, v.first); in hash_value()
71 boost::hash_combine(seed, v.second); in hash_value()
72 return seed; in hash_value()
121 std::size_t seed = hasher(v.imag()); in hash_value() local
122 seed ^= hasher(v.real()) + (seed<<6) + (seed>>2); in hash_value()
123 return seed; in hash_value()
146 hash_combine_tuple(std::size_t& seed, T const& v) in hash_combine_tuple() argument
148 boost::hash_combine(seed, std::get<I>(v)); in hash_combine_tuple()
149 boost::hash_detail::hash_combine_tuple<I + 1>(seed, v); in hash_combine_tuple()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/third_party/libdrm/src/
H A Dxf86drmRandom.c83 drm_public void *drmRandomCreate(unsigned long seed) in drmRandomCreate() argument
104 state->seed = seed; in drmRandomCreate()
107 if (state->seed <= 0) state->seed = 1; in drmRandomCreate()
108 if (state->seed >= state->m) state->seed = state->m - 1; in drmRandomCreate()
125 hi = s->seed / s->q; in drmRandom()
126 lo = s->seed % s->q; in drmRandom()
127 s->seed = s->a * lo - s->r * hi; in drmRandom()
128 if ((s->a * lo) <= (s->r * hi)) s->seed += s->m; in drmRandom()
130 return s->seed; in drmRandom()
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-prng.c17 int sun8i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun8i_ss_prng_seed() argument
22 if (ctx->seed && ctx->slen != slen) { in sun8i_ss_prng_seed()
23 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ss_prng_seed()
24 kfree(ctx->seed); in sun8i_ss_prng_seed()
26 ctx->seed = NULL; in sun8i_ss_prng_seed()
28 if (!ctx->seed) in sun8i_ss_prng_seed()
29 ctx->seed = kmalloc(slen, GFP_KERNEL | GFP_DMA); in sun8i_ss_prng_seed()
30 if (!ctx->seed) in sun8i_ss_prng_seed()
33 memcpy(ctx->seed, seed, slen); in sun8i_ss_prng_seed()
51 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ss_prng_exit()
[all …]
/OK3568_Linux_fs/u-boot/net/
H A Dnet_rand.h20 unsigned int seed; in seed_mac() local
25 seed = enetaddr[5]; in seed_mac()
26 seed ^= enetaddr[4] << 8; in seed_mac()
27 seed ^= enetaddr[3] << 16; in seed_mac()
28 seed ^= enetaddr[2] << 24; in seed_mac()
29 seed ^= enetaddr[1]; in seed_mac()
30 seed ^= enetaddr[0] << 8; in seed_mac()
32 return seed; in seed_mac()
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-prng.c29 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ce_prng_exit()
30 kfree(ctx->seed); in sun8i_ce_prng_exit()
31 ctx->seed = NULL; in sun8i_ce_prng_exit()
35 int sun8i_ce_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun8i_ce_prng_seed() argument
40 if (ctx->seed && ctx->slen != slen) { in sun8i_ce_prng_seed()
41 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ce_prng_seed()
42 kfree(ctx->seed); in sun8i_ce_prng_seed()
44 ctx->seed = NULL; in sun8i_ce_prng_seed()
46 if (!ctx->seed) in sun8i_ce_prng_seed()
47 ctx->seed = kmalloc(slen, GFP_KERNEL | GFP_DMA); in sun8i_ce_prng_seed()
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Dxxhash.c94 static uint32_t xxh32_round(uint32_t seed, const uint32_t input) in xxh32_round() argument
96 seed += input * PRIME32_2; in xxh32_round()
97 seed = xxh_rotl32(seed, 13); in xxh32_round()
98 seed *= PRIME32_1; in xxh32_round()
99 return seed; in xxh32_round()
102 uint32_t xxh32(const void *input, const size_t len, const uint32_t seed) in xxh32() argument
110 uint32_t v1 = seed + PRIME32_1 + PRIME32_2; in xxh32()
111 uint32_t v2 = seed + PRIME32_2; in xxh32()
112 uint32_t v3 = seed + 0; in xxh32()
113 uint32_t v4 = seed - PRIME32_1; in xxh32()
[all …]
H A Dtest_hash.c28 xorshift(u32 seed) in xorshift() argument
30 seed ^= seed << 13; in xorshift()
31 seed ^= seed >> 17; in xorshift()
32 seed ^= seed << 5; in xorshift()
33 return seed; in xorshift()
49 fill_buf(char *buf, size_t len, u32 seed) in fill_buf() argument
54 seed = xorshift(seed); in fill_buf()
55 buf[i] = mod255(seed); in fill_buf()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/functional/hash/detail/
H A Dhash_float.hpp55 inline void hash_float_combine(std::size_t& seed, std::size_t value) in hash_float_combine() argument
57 seed ^= value + (seed<<6) + (seed>>2); in hash_float_combine()
68 std::size_t seed = 0; in hash_binary() local
71 std::memcpy(&seed, ptr, sizeof(std::size_t)); in hash_binary()
78 hash_float_combine(seed, buffer); in hash_binary()
87 hash_float_combine(seed, buffer); in hash_binary()
90 return seed; in hash_binary()
164 std::size_t seed = static_cast<std::size_t>(v); in float_hash_impl2() local
165 v -= static_cast<T>(seed); in float_hash_impl2()
179 hash_float_combine(seed, part); in float_hash_impl2()
[all …]
/OK3568_Linux_fs/kernel/drivers/firmware/efi/libstub/
H A Drandom.c71 struct linux_efi_random_seed *seed = NULL; in efi_random_get_seed() local
84 sizeof(*seed) + EFI_RANDOM_SEED_SIZE, in efi_random_get_seed()
85 (void **)&seed); in efi_random_get_seed()
90 EFI_RANDOM_SEED_SIZE, seed->bits); in efi_random_get_seed()
98 EFI_RANDOM_SEED_SIZE, seed->bits); in efi_random_get_seed()
103 seed->size = EFI_RANDOM_SEED_SIZE; in efi_random_get_seed()
104 status = efi_bs_call(install_configuration_table, &rng_table_guid, seed); in efi_random_get_seed()
111 efi_bs_call(free_pool, seed); in efi_random_get_seed()
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace_benchmark.c43 u64 seed; in trace_do_benchmark() local
124 seed = avg; in trace_do_benchmark()
126 last_seed = seed; in trace_do_benchmark()
127 seed = stddev; in trace_do_benchmark()
130 do_div(seed, last_seed); in trace_do_benchmark()
131 seed += last_seed; in trace_do_benchmark()
132 do_div(seed, 2); in trace_do_benchmark()
133 } while (i++ < 10 && last_seed != seed); in trace_do_benchmark()
135 std = seed; in trace_do_benchmark()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/tr1/
H A Drandom.h376 { this->seed(__x0); } in _GLIBCXX_VISIBILITY()
386 { this->seed(__g); } in _GLIBCXX_VISIBILITY()
395 seed(unsigned long __s = 1); in _GLIBCXX_VISIBILITY()
405 seed(_Gen& __g) in _GLIBCXX_VISIBILITY()
406 { seed(__g, typename is_fundamental<_Gen>::type()); } in _GLIBCXX_VISIBILITY()
497 seed(_Gen& __g, true_type) in _GLIBCXX_VISIBILITY()
498 { return seed(static_cast<unsigned long>(__g)); } in _GLIBCXX_VISIBILITY()
502 seed(_Gen& __g, false_type); in _GLIBCXX_VISIBILITY()
569 { seed(); } in _GLIBCXX_VISIBILITY()
573 { seed(__value); } in _GLIBCXX_VISIBILITY()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/tr1/
H A Drandom.h376 { this->seed(__x0); } in _GLIBCXX_VISIBILITY()
386 { this->seed(__g); } in _GLIBCXX_VISIBILITY()
395 seed(unsigned long __s = 1); in _GLIBCXX_VISIBILITY()
405 seed(_Gen& __g) in _GLIBCXX_VISIBILITY()
406 { seed(__g, typename is_fundamental<_Gen>::type()); } in _GLIBCXX_VISIBILITY()
497 seed(_Gen& __g, true_type) in _GLIBCXX_VISIBILITY()
498 { return seed(static_cast<unsigned long>(__g)); } in _GLIBCXX_VISIBILITY()
502 seed(_Gen& __g, false_type); in _GLIBCXX_VISIBILITY()
569 { seed(); } in _GLIBCXX_VISIBILITY()
573 { seed(__value); } in _GLIBCXX_VISIBILITY()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dxxhash.h95 uint32_t xxh32(const void *input, size_t length, uint32_t seed);
108 uint64_t xxh64(const void *input, size_t length, uint64_t seed);
124 uint64_t seed) in xxhash() argument
127 return xxh64(input, length, seed); in xxhash()
129 return xxh32(input, length, seed); in xxhash()
178 void xxh32_reset(struct xxh32_state *state, uint32_t seed);
212 void xxh64_reset(struct xxh64_state *state, uint64_t seed);
H A Dprandom.h17 void prandom_seed(u32 seed);
103 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state() argument
105 u32 i = ((seed >> 32) ^ (seed << 10) ^ seed) & 0xffffffffUL; in prandom_seed_state()
115 static inline u32 next_pseudo_random32(u32 seed) in next_pseudo_random32() argument
117 return seed * 1664525 + 1013904223; in next_pseudo_random32()
/OK3568_Linux_fs/yocto/poky/meta/recipes-kernel/kexec/kexec-tools/
H A D0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch4 Subject: [PATCH] arm64: kexec: disabled check if kaslr-seed dtb property was
7 Kexec when loading arm64 kernel checks if chosen/kaslr-seed dtb property is
9 if bootloader creates and fills kaslr-seed property and kernel is not
11 kaslr-seed does not run. As a result kaslr-seed property is not zero and when
14 setup_2nd_dtb: kaslr-seed is not wiped to 0.
19 qemu 5.1.0. Qemu created kaslr-seed property but kernel was not configured
25 Note in described use-case the fact that kaslr-seed is not wiped and user
27 /sys/firmware/devicetree/base/chosen/kaslr-seed is not a security problem
59 - dbgprintf("%s: kaslr-seed is not wiped to 0.\n",
/OK3568_Linux_fs/kernel/drivers/firmware/efi/
H A Defi.c588 struct linux_efi_random_seed *seed; in efi_config_parse_tables() local
591 seed = early_memremap(efi_rng_seed, sizeof(*seed)); in efi_config_parse_tables()
592 if (seed != NULL) { in efi_config_parse_tables()
593 size = min(seed->size, EFI_RANDOM_SEED_SIZE); in efi_config_parse_tables()
594 early_memunmap(seed, sizeof(*seed)); in efi_config_parse_tables()
599 seed = early_memremap(efi_rng_seed, in efi_config_parse_tables()
600 sizeof(*seed) + size); in efi_config_parse_tables()
601 if (seed != NULL) { in efi_config_parse_tables()
603 add_bootloader_randomness(seed->bits, size); in efi_config_parse_tables()
604 early_memunmap(seed, sizeof(*seed) + size); in efi_config_parse_tables()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Drand_stream.c17 int32_t seed; member
25 struct rand_stream *rand_stream_alloc(int seed, size_t stream_buffer_size) in rand_stream_alloc() argument
36 rs->seed = seed; in rand_stream_alloc()
67 rs->seed = rs->seed * 1103515245 + 12345; in get_random()
68 memcpy(rs->word_buf, &rs->seed, sizeof(rs->seed)); in get_random()
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dkaslr.c67 u64 seed, offset, mask, module_range; in kaslr_early_init() local
91 seed = get_kaslr_seed(fdt); in kaslr_early_init()
108 seed ^= raw; in kaslr_early_init()
110 if (!seed) { in kaslr_early_init()
126 offset = BIT(VA_BITS_MIN - 3) + (seed & mask); in kaslr_early_init()
129 memstart_offset_seed = seed >> 48; in kaslr_early_init()
170 module_alloc_base += (module_range * (seed & ((1 << 21) - 1))) >> 21; in kaslr_early_init()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dexynos-rng.c98 const u8 *seed, unsigned int slen) in exynos_rng_set_seed() argument
112 val = seed[i] << 24; in exynos_rng_set_seed()
113 val |= seed[i + 1] << 16; in exynos_rng_set_seed()
114 val |= seed[i + 2] << 8; in exynos_rng_set_seed()
115 val |= seed[i + 3] << 0; in exynos_rng_set_seed()
178 u8 seed[EXYNOS_RNG_SEED_SIZE]; in exynos_rng_reseed() local
184 if (exynos_rng_get_random(rng, seed, sizeof(seed), &read)) in exynos_rng_reseed()
187 exynos_rng_set_seed(rng, seed, read); in exynos_rng_reseed()
225 static int exynos_rng_seed(struct crypto_rng *tfm, const u8 *seed, in exynos_rng_seed() argument
237 ret = exynos_rng_set_seed(ctx->rng, seed, slen); in exynos_rng_seed()
[all …]
/OK3568_Linux_fs/kernel/arch/s390/crypto/
H A Dprng.c261 static const u8 seed[] __initconst = { in prng_sha512_selftest() local
339 &ws, NULL, 0, seed, sizeof(seed)); in prng_sha512_selftest()
371 u8 seed[128 + 16]; in prng_sha512_instantiate() local
402 cpacf_trng(NULL, 0, seed, seedlen); in prng_sha512_instantiate()
411 ret = generate_entropy(seed, seedlen); in prng_sha512_instantiate()
417 get_tod_clock_ext(seed + seedlen); in prng_sha512_instantiate()
422 &prng_data->prnows, NULL, 0, seed, seedlen); in prng_sha512_instantiate()
423 memzero_explicit(seed, sizeof(seed)); in prng_sha512_instantiate()
452 u8 seed[64]; in prng_sha512_reseed() local
458 cpacf_trng(NULL, 0, seed, seedlen); in prng_sha512_reseed()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/tools/
H A Dinsn_sanity.c37 static unsigned int seed; /* Random seed */ variable
105 fprintf(fp, " $ %s -s 0x%x,%lu\n", prog, seed, nr_iter); in dump_stream()
117 if (read(fd, &seed, sizeof(seed)) != sizeof(seed)) in init_random_seed()
189 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args()
219 srand(seed); in parse_args()
266 seed); in main()
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-prng.c3 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun4i_ss_prng_seed() argument
10 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed()
42 writel(ss->seed[i], ss->base + SS_KEY0 + i * 4); in sun4i_ss_prng_generate()
53 ss->seed[i] = v; in sun4i_ss_prng_generate()
/OK3568_Linux_fs/kernel/crypto/
H A Dxxhash_generic.c13 u64 seed; member
25 if (keylen != sizeof(tctx->seed)) in xxhash64_setkey()
27 tctx->seed = get_unaligned_le64(key); in xxhash64_setkey()
36 xxh64_reset(&dctx->xxhstate, tctx->seed); in xxhash64_init()
65 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()

12345678910>>...15