Home
last modified time | relevance | path

Searched full:seed (Results 1 – 25 of 71) sorted by relevance

123

/Zephyr-latest/lib/crc/
Dcrc16_sw.c9 uint16_t crc16(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len) in crc16() argument
11 uint16_t crc = seed; in crc16()
30 uint16_t crc16_reflect(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len) in crc16_reflect() argument
32 uint16_t crc = seed; in crc16_reflect()
52 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len) in crc16_ccitt() argument
57 e = seed ^ *src; in crc16_ccitt()
60 seed = (seed >> 8) ^ ((uint16_t)f << 8) ^ ((uint16_t)f << 3) ^ ((uint16_t)f >> 4); in crc16_ccitt()
63 return seed; in crc16_ccitt()
66 uint16_t crc16_itu_t(uint16_t seed, const uint8_t *src, size_t len) in crc16_itu_t() argument
69 seed = (seed >> 8U) | (seed << 8U); in crc16_itu_t()
[all …]
Dcrc7_sw.c9 uint8_t crc7_be(uint8_t seed, const uint8_t *src, size_t len) in crc7_be() argument
12 uint8_t e = seed ^ *src++; in crc7_be()
15 seed = (f << 1) ^ (f << 4); in crc7_be()
18 return seed; in crc7_be()
Dcrc_shell.c60 shell_print(sh, "-s <seed> Use 'seed' as the initial value"); in usage()
76 uint32_t seed = 0; in cmd_crc() local
97 shell_error(sh, "invalid seed '%s'", optarg); in cmd_crc()
105 seed = (size_t)strtoul(optarg, NULL, 16); in cmd_crc()
106 if (seed == 0 && errno == EINVAL) { in cmd_crc()
107 shell_error(sh, "invalid seed '%s'", optarg); in cmd_crc()
143 shell_print(sh, "0x%x", crc_by_type(type, addr, size, seed, poly, reflect, first, last)); in cmd_crc()
Dcrc4_sw.c40 uint8_t crc4_ti(uint8_t seed, const uint8_t *src, size_t len) in crc4_ti() argument
47 index = seed ^ ((src[i] >> (4*(1-j))) & 0xf); in crc4_ti()
48 seed = (lookup[index >> 1] >> (1 - (index & 1)) * 4) & 0xf; in crc4_ti()
52 return seed; in crc4_ti()
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_device.py46 'seed',
49 'seed 1234',
50 'seed 4321',
51 'seed 1324'
56 def test_seed(self, capfd, out_path, seed): argument
60 ['--seed', f'{seed[0]}'] + \
75 …e = r'seed_native_sim.dummy FAILED Failed \(rc=1\) \(native (\d+\.\d+)s/seed: {}\)'.format(seed[0])
Dtest_shuffle.py34 'seed, ratio, expected_order',
53 def test_shuffle_tests(self, out_path, seed, ratio, expected_order): argument
57 ['--shuffle-tests', '--shuffle-tests-seed', seed] + \
/Zephyr-latest/include/zephyr/sys/
Dcrc.h87 * @param seed Initial value for the CRC computation
93 uint16_t crc16(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
107 * depending on the value provided for the initial seed and the value the final
112 * poly: 0x8005 (0xA001) initial seed: 0xffff, xor output: 0x0000
117 * @param seed Initial value for the CRC computation
123 uint16_t crc16_reflect(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
151 * depending on the value provided for the initial seed and the value the final
156 * initial seed: 0x0000, xor output: 0x0000
160 * initial seed: 0xffff, xor output: 0xffff
163 * value from block N-1 as the seed for block N.
[all …]
/Zephyr-latest/drivers/entropy/
DKconfig.native_posix14 initialized with the same seed.
17 bool "Seed the generator by default"
21 Apply a seed by default, even if the user does not request it through the command line.
22 Disabling this feature allows some other component to seed the host standard library random
Dfake_entropy_native_posix.c9 * initialized with the same seed
28 static unsigned int seed = 0x5678; variable
75 entropy_native_seed(seed, seed_random); in entropy_native_posix_init()
104 .option = "seed", in add_fake_entropy_option()
107 .dest = (void *)&seed, in add_fake_entropy_option()
109 .descript = "A 32-bit integer seed value for the entropy device, such as " in add_fake_entropy_option()
114 .option = "seed-random", in add_fake_entropy_option()
117 .descript = "Seed the random generator from /dev/urandom. " in add_fake_entropy_option()
Dfake_entropy_native_bottom.c20 void entropy_native_seed(unsigned int seed, bool seed_random) in entropy_native_seed() argument
23 srandom(seed); in entropy_native_seed()
34 /* Let's print the seed so users can still reproduce the run if they need to */ in entropy_native_seed()
Dentropy_mcux_rnga.c62 uint32_t seed = k_cycle_get_32(); in entropy_mcux_rnga_init() local
68 /* The range of seed values acquired by this method is likely in entropy_mcux_rnga_init()
70 * running oscillators to add entropy to the seed value, we in entropy_mcux_rnga_init()
74 RNGA_Seed(RNG, seed); in entropy_mcux_rnga_init()
Dfake_entropy_native_bottom.h15 void entropy_native_seed(unsigned int seed, bool seed_random);
DKconfig.mcux46 # a seed to RNG generator.
/Zephyr-latest/lib/libc/minimal/source/stdlib/
Drand.c14 int rand_r(unsigned int *seed) in rand_r() argument
16 *seed = (MULTIPLIER * *seed + INCREMENT) & OUTPUT_BITS; in rand_r()
18 return *seed; in rand_r()
/Zephyr-latest/tests/subsys/lorawan/frag_decoder/src/
Dfrag_encoder.c32 * @param seed Seed input value
36 static int32_t prbs23(int32_t seed) in prbs23() argument
38 int32_t b0 = seed & 1; in prbs23()
39 int32_t b1 = (seed & 32) / 32; in prbs23()
41 return (seed / 2) + ((b0 ^ b1) << 22); in prbs23()
/Zephyr-latest/scripts/native_simulator/common/src/
Dnsi_host_trampolines.c64 void nsi_host_srandom(unsigned int seed) in nsi_host_srandom() argument
66 srandom(seed); in nsi_host_srandom()
/Zephyr-latest/tests/net/lib/lwm2m/interop/boards/
Dnative_sim.conf9 CONFIG_NATIVE_EXTRA_CMDLINE_ARGS="--seed-random"
/Zephyr-latest/drivers/watchdog/
DKconfig.nxp_fs2646 hex "Watchdog seed"
50 Seed to pass to the device. This property can be used with both simple
/Zephyr-latest/subsys/random/
DKconfig73 the entropy driver as a seed source. This is a fast general-purpose
127 shall use the entropy API for an initialization seed. The CTR-DRBG
142 default "zephyr ctr-drbg seed"
Drandom_timer.c36 /* initial seed value */ in rand32_get()
/Zephyr-latest/lib/libc/minimal/include/
Dstdlib.h55 int rand_r(unsigned int *seed);
57 void srand(unsigned int seed);
/Zephyr-latest/tests/lib/c_lib/common/src/
Dmain.c1183 /* The default seed is 1 */ in ZTEST()
1202 zassert_equal(a, 12345, "srand with seed 0 failed"); in ZTEST()
1206 zassert_equal(a, 1103527590, "srand with seed 1 failed"); in ZTEST()
1210 zassert_equal(a, 297746555, "srand with seed 10 failed"); in ZTEST()
1214 zassert_equal(a, 2087949151, "srand with seed UINT_MAX - 1 failed"); in ZTEST()
1218 zassert_equal(a, 1043980748, "srand with seed UINT_MAX failed"); in ZTEST()
1238 zassert_equal(a, 12345, "srand with seed 0 failed"); in ZTEST()
1241 zassert_equal(b, 12345, "srand with seed 0 failed (2nd)"); in ZTEST()
1244 zassert_equal(c, 12345, "srand with seed 0 failed (3rd)"); in ZTEST()
1248 zassert_equal(a, 1103527590, "srand with seed 1 failed"); in ZTEST()
[all …]
/Zephyr-latest/lib/hash/
Dhash_func32_murmur3.c22 /* seed of 0 */ in sys_hash32_murmur3()
/Zephyr-latest/scripts/native_simulator/common/src/include/
Dnsi_host_trampolines.h37 void nsi_host_srandom(unsigned int seed);
/Zephyr-latest/dts/bindings/watchdog/
Dnxp,fs26-wdog.yaml58 mode uses a unique seed.

123