/Zephyr-latest/lib/crc/ |
D | crc16_sw.c | 9 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 …]
|
D | crc7_sw.c | 9 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()
|
D | crc_shell.c | 60 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()
|
D | crc4_sw.c | 40 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/ |
D | test_device.py | 46 '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])
|
D | test_shuffle.py | 34 '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/ |
D | crc.h | 87 * @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/ |
D | Kconfig.native_posix | 14 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
|
D | fake_entropy_native_posix.c | 9 * 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()
|
D | fake_entropy_native_bottom.c | 20 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()
|
D | entropy_mcux_rnga.c | 62 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()
|
D | fake_entropy_native_bottom.h | 15 void entropy_native_seed(unsigned int seed, bool seed_random);
|
D | Kconfig.mcux | 46 # a seed to RNG generator.
|
/Zephyr-latest/lib/libc/minimal/source/stdlib/ |
D | rand.c | 14 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/ |
D | frag_encoder.c | 32 * @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/ |
D | nsi_host_trampolines.c | 64 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/ |
D | native_sim.conf | 9 CONFIG_NATIVE_EXTRA_CMDLINE_ARGS="--seed-random"
|
/Zephyr-latest/drivers/watchdog/ |
D | Kconfig.nxp_fs26 | 46 hex "Watchdog seed" 50 Seed to pass to the device. This property can be used with both simple
|
/Zephyr-latest/subsys/random/ |
D | Kconfig | 73 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"
|
D | random_timer.c | 36 /* initial seed value */ in rand32_get()
|
/Zephyr-latest/lib/libc/minimal/include/ |
D | stdlib.h | 55 int rand_r(unsigned int *seed); 57 void srand(unsigned int seed);
|
/Zephyr-latest/tests/lib/c_lib/common/src/ |
D | main.c | 1183 /* 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/ |
D | hash_func32_murmur3.c | 22 /* seed of 0 */ in sys_hash32_murmur3()
|
/Zephyr-latest/scripts/native_simulator/common/src/include/ |
D | nsi_host_trampolines.h | 37 void nsi_host_srandom(unsigned int seed);
|
/Zephyr-latest/dts/bindings/watchdog/ |
D | nxp,fs26-wdog.yaml | 58 mode uses a unique seed.
|