Home
last modified time | relevance | path

Searched refs:BUFFER_LENGTH (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/drivers/entropy/api/src/
Dmain.c25 #define BUFFER_LENGTH 10 macro
30 static uint8_t entropy_buffer[BUFFER_LENGTH] = {0};
32 static uint8_t entropy_buffer[BUFFER_LENGTH] = {0};
40 (void)memset(buffer, num, BUFFER_LENGTH); in random_entropy()
48 ret = entropy_get_entropy(dev, buffer, BUFFER_LENGTH - 1); in random_entropy()
53 if (buffer[BUFFER_LENGTH - 1] != num) { in random_entropy()
58 for (i = 0; i < BUFFER_LENGTH - 1; i++) { in random_entropy()
/Zephyr-latest/tests/drivers/hwinfo/api/src/
Dmain.c26 #define BUFFER_LENGTH 17 macro
31 uint8_t buffer_1[BUFFER_LENGTH]; in ZTEST()
32 uint8_t buffer_2[BUFFER_LENGTH]; in ZTEST()
49 length_read_1 = hwinfo_get_device_id(buffer_1, BUFFER_LENGTH - 1); in ZTEST()
55 for (i = 0; i < BUFFER_LENGTH; i++) { in ZTEST()
59 length_read_2 = hwinfo_get_device_id(buffer_1, BUFFER_LENGTH - 1); in ZTEST()
/Zephyr-latest/samples/boards/st/power_mgmt/suspend_to_ram/src/
Dmain.c45 #define BUFFER_LENGTH 3 macro
47 static uint8_t entropy_buffer[BUFFER_LENGTH] = {0};
199 for (i = 0; i < BUFFER_LENGTH; i++) { in print_buf()
242 (void)memset(entropy_buffer, 0x00, BUFFER_LENGTH); in main()
243 entropy_get_entropy(rng_dev, (char *)entropy_buffer, BUFFER_LENGTH); in main()