Home
last modified time | relevance | path

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

/u-boot/net/
A Dnet_rand.h22 unsigned int seed; in seed_mac() local
27 seed = enetaddr[5]; in seed_mac()
28 seed ^= enetaddr[4] << 8; in seed_mac()
29 seed ^= enetaddr[3] << 16; in seed_mac()
30 seed ^= enetaddr[2] << 24; in seed_mac()
31 seed ^= enetaddr[1]; in seed_mac()
32 seed ^= enetaddr[0] << 8; in seed_mac()
34 return seed; in seed_mac()
A Dlink_local.c62 static unsigned int seed; variable
76 tmp = rand_r(&seed) & IN_CLASSB_HOST; in pick()
87 return rand_r(&seed) % (secs * 1000); in random_delay_ms()
119 seed = seed_mac(); in link_local_start()
/u-boot/include/linux/
A Dxxhash.h65 uint32_t xxh32(const void *input, size_t length, uint32_t seed);
78 uint64_t xxh64(const void *input, size_t length, uint64_t seed);
94 uint64_t seed) in xxhash() argument
97 return xxh64(input, length, seed); in xxhash()
99 return xxh32(input, length, seed); in xxhash()
148 void xxh32_reset(struct xxh32_state *state, uint32_t seed);
182 void xxh64_reset(struct xxh64_state *state, uint64_t seed);
A Dcrc32.h14 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)data, length) argument
/u-boot/lib/
A Dxxhash.c66 seed += input * PRIME32_2; in xxh32_round()
67 seed = xxh_rotl32(seed, 13); in xxh32_round()
68 seed *= PRIME32_1; in xxh32_round()
69 return seed; in xxh32_round()
82 uint32_t v3 = seed + 0; in xxh32()
99 h32 = seed + PRIME32_5; in xxh32()
152 uint64_t v3 = seed + 0; in xxh64()
174 h64 = seed + PRIME64_5; in xxh64()
219 state.v2 = seed + PRIME32_2; in xxh32_reset()
220 state.v3 = seed + 0; in xxh32_reset()
[all …]
A Drand.c29 void srand(unsigned int seed) in srand() argument
31 y = seed; in srand()
/u-boot/drivers/rng/
A Dsandbox_rng.c15 unsigned int i, seed, random; in sandbox_rng_read() local
23 seed = get_timer(0) ^ rand(); in sandbox_rng_read()
24 srand(seed); in sandbox_rng_read()
A DKconfig7 read the random seed from the device.
/u-boot/drivers/crypto/
A Dace_sha.c122 void srand(unsigned int seed) in srand() argument
130 writel(seed << i, &reg->hash_seed[i]); in srand()
148 unsigned int seed = (unsigned int)&status; in rand() local
152 srand(seed); in rand()
/u-boot/fs/btrfs/crypto/
A Dhash.c52 u32 crc32c(u32 seed, const void * data, size_t len) in crc32c() argument
54 return crc32c_cal(seed, data, len, btrfs_crc32c_table); in crc32c()
A Dhash.h13 u32 crc32c(u32 seed, const void * data, size_t len);
/u-boot/include/
A Drand.h20 void srand(unsigned int seed);
A Dnet.h848 unsigned int seed = get_ticks(); in net_random_ethaddr() local
851 addr[i] = rand_r(&seed); in net_random_ethaddr()
/u-boot/scripts/kconfig/
A Dconf.c525 unsigned int seed; in main() local
533 seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1)); in main()
540 seed = tmp; in main()
543 fprintf( stderr, "KCONFIG_SEED=0x%X\n", seed ); in main()
544 srand(seed); in main()
/u-boot/cmd/
A Dmem.c1277 unsigned long seed; // NOT INITIALIZED ON PURPOSE in do_random() local
1289 seed = simple_strtoul(argv[3], NULL, 16); in do_random()
1290 if (seed == 0) { in do_random()
1292 seed = 0xDEADBEEF; in do_random()
1295 seed = get_timer(0) ^ rand(); in do_random()
1298 srand(seed); in do_random()
/u-boot/drivers/mtd/nand/raw/
A Dsunxi_nand_spl.c429 int seed = page % conf->nseeds; in nand_detect_ecc_config() local
432 if (seed != page % conf->nseeds) in nand_detect_ecc_config()
/u-boot/fs/btrfs/
A Dvolumes.h63 struct btrfs_fs_devices *seed; member
A Dvolumes.c287 seed_devices = fs_devices->seed; in btrfs_close_devices()
288 fs_devices->seed = NULL; in btrfs_close_devices()
368 cur_devices = cur_devices->seed; in btrfs_find_device()
A Ddisk-io.c77 fs_devices = fs_devices->seed; in check_tree_block()
/u-boot/lib/rsa/
A Drsa-verify.c121 uint8_t *seed, int seed_len, in mask_generation_function1() argument
132 region[0].data = seed; in mask_generation_function1()
/u-boot/drivers/ram/stm32mp1/
A Dstm32mp1_tests.c597 unsigned int seed; in test_random() local
610 seed = rand(); in test_random()
616 srand(seed); in test_random()
619 srand(seed); in test_random()

Completed in 31 milliseconds