/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 | 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()
|
D | crc_shell.c | 76 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/ |
D | crc.h | 93 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/ |
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 | 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/drivers/entropy/ |
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()
|
D | fake_entropy_native_posix.c | 28 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()
|
D | Kconfig.native_posix | 14 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
|
D | entropy_mcux_rnga.c | 62 uint32_t seed = k_cycle_get_32(); in entropy_mcux_rnga_init() local 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/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/scripts/tests/twister_blackbox/ |
D | test_device.py | 56 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])
|
D | test_shuffle.py | 53 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/ |
D | stdlib.h | 55 int rand_r(unsigned int *seed); 57 void srand(unsigned int seed);
|
/Zephyr-latest/scripts/native_simulator/common/src/include/ |
D | nsi_host_trampolines.h | 37 void nsi_host_srandom(unsigned int seed);
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_split_person.py | 43 random.seed(30)
|
D | data_split.py | 67 random.seed(30)
|
/Zephyr-latest/include/zephyr/drivers/ |
D | w1.h | 706 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/ |
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"
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_sar.c | 176 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/ |
D | Kconfig.nxp_fs26 | 46 hex "Watchdog seed"
|
/Zephyr-latest/doc/services/crypto/random/ |
D | index.rst | 60 entropy driver as a seed source.
|