Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/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()
H A Dlink_local.c59 static unsigned int seed; variable
73 tmp = rand_r(&seed) & IN_CLASSB_HOST; in pick()
84 return rand_r(&seed) % (secs * 1000); in random_delay_ms()
116 seed = seed_mac(); in link_local_start()
/rk3399_rockchip-uboot/include/linux/
H A Dcrc32.h14 #define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)data, length) argument
/rk3399_rockchip-uboot/lib/
H A Drand.c29 void srand(unsigned int seed) in srand() argument
31 y = seed; in srand()
/rk3399_rockchip-uboot/drivers/crypto/
H A Dace_sha.c121 void srand(unsigned int seed) in srand() argument
129 writel(seed << i, &reg->hash_seed[i]); in srand()
147 unsigned int seed = (unsigned int)&status; in rand() local
151 srand(seed); in rand()
/rk3399_rockchip-uboot/drivers/rng/
H A Drockchip_rand.c36 void srand(unsigned int seed) in srand() argument
H A DKconfig7 read the random seed from the device.
/rk3399_rockchip-uboot/scripts/kconfig/
H A Dconf.c522 unsigned int seed; in main() local
530 seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1)); in main()
537 seed = tmp; in main()
540 fprintf( stderr, "KCONFIG_SEED=0x%X\n", seed ); in main()
541 srand(seed); in main()
/rk3399_rockchip-uboot/lib/avb/libavb_user/
H A Davb_ops_user.c427 unsigned int seed; in rk_get_random() local
429 seed = (unsigned int)get_timer(0); in rk_get_random()
431 srand(seed); in rk_get_random()
433 seed = (unsigned int)(output[i]); in rk_get_random()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dsunxi_nand_spl.c428 int seed = page % conf->nseeds; in nand_detect_ecc_config() local
431 if (seed != page % conf->nseeds) in nand_detect_ecc_config()
/rk3399_rockchip-uboot/include/
H A Dnet.h819 unsigned int seed = get_timer(0); in net_random_ethaddr() local
822 addr[i] = rand_r(&seed); in net_random_ethaddr()
H A Dcommon.h705 void srand(unsigned int seed);
/rk3399_rockchip-uboot/common/
H A DKconfig684 bool "Provide /chosen/rng-seed property to the linux kernel"
688 which will be used to populate the /chosen/rng-seed property
692 BSP) where and how to store (or generate) such a seed, how
693 to ensure a given seed is only used once, how to create a
694 new seed for use on subsequent boots, and whether or not the
695 kernel should account any entropy from the given seed.
/rk3399_rockchip-uboot/lib/rsa/
H A Drsa-verify.c215 uint8_t *seed, int seed_len, in mask_generation_function1() argument
226 region[0].data = seed; in mask_generation_function1()