Home
last modified time | relevance | path

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

12

/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()
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()
Dcrc_shell.c76 uint32_t seed = 0; in cmd_crc() local
105 seed = (size_t)strtoul(optarg, NULL, 16); in cmd_crc()
106 if (seed == 0 && errno == EINVAL) { in cmd_crc()
143 shell_print(sh, "0x%x", crc_by_type(type, addr, size, seed, poly, reflect, first, last)); in cmd_crc()
/Zephyr-latest/include/zephyr/sys/
Dcrc.h93 uint16_t crc16(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
123 uint16_t crc16_reflect(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
173 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len);
210 uint16_t crc16_itu_t(uint16_t seed, const uint8_t *src, size_t len);
306 uint8_t crc7_be(uint8_t seed, const uint8_t *src, size_t len);
321 uint8_t crc4_ti(uint8_t seed, const uint8_t *src, size_t len);
389 uint32_t seed, uint32_t poly, bool reflect, bool first, in crc_by_type() argument
394 return crc4(src, len, poly, seed, reflect); in crc_by_type()
396 return crc4_ti(seed, src, len); in crc_by_type()
398 return crc7_be(seed, src, len); in crc_by_type()
[all …]
/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.c36 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/drivers/entropy/
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()
Dfake_entropy_native_posix.c28 static unsigned int seed = 0x5678; variable
75 entropy_native_seed(seed, seed_random); in entropy_native_posix_init()
107 .dest = (void *)&seed, in add_fake_entropy_option()
DKconfig.native_posix14 initialized with the same seed.
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
Dentropy_mcux_rnga.c62 uint32_t seed = k_cycle_get_32(); in entropy_mcux_rnga_init() local
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/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/scripts/tests/twister_blackbox/
Dtest_device.py56 def test_seed(self, capfd, out_path, seed): argument
75 …e = r'seed_native_sim.dummy FAILED Failed \(rc=1\) \(native (\d+\.\d+)s/seed: {}\)'.format(seed[0])
Dtest_shuffle.py53 def test_shuffle_tests(self, out_path, seed, ratio, expected_order): argument
57 ['--shuffle-tests', '--shuffle-tests-seed', seed] + \
/Zephyr-latest/lib/libc/minimal/include/
Dstdlib.h55 int rand_r(unsigned int *seed);
57 void srand(unsigned int seed);
/Zephyr-latest/scripts/native_simulator/common/src/include/
Dnsi_host_trampolines.h37 void nsi_host_srandom(unsigned int seed);
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/
Ddata_split_person.py43 random.seed(30)
Ddata_split.py67 random.seed(30)
/Zephyr-latest/include/zephyr/drivers/
Dw1.h706 static inline uint16_t w1_crc16(const uint16_t seed, const uint8_t *src, in w1_crc16() argument
709 return crc16_reflect(W1_CRC16_POLYNOMIAL, seed, src, len); in w1_crc16()
/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"
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_sar.c176 static void array_random_fill(uint8_t array[], uint16_t len, int seed) in array_random_fill() argument
179 srand(seed); in array_random_fill()
/Zephyr-latest/drivers/watchdog/
DKconfig.nxp_fs2646 hex "Watchdog seed"
/Zephyr-latest/doc/services/crypto/random/
Dindex.rst60 entropy driver as a seed source.

12