Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/flash/common/src/
Dmain.c45 #define EXPECTED_SIZE 512 macro
54 static uint8_t __aligned(4) expected[EXPECTED_SIZE];
85 uint8_t buf[EXPECTED_SIZE]; in flash_driver_before()
88 buf, EXPECTED_SIZE); in flash_driver_before()
92 for (int i = 0, val = 0; i < EXPECTED_SIZE; i++, val++) { in flash_driver_before()
101 zassert_true((TEST_AREA_OFFSET + EXPECTED_SIZE) <= TEST_AREA_MAX, in flash_driver_before()
108 for (off_t i = 0; i < EXPECTED_SIZE; i++) { in flash_driver_before()
119 ((EXPECTED_SIZE + page_info.size - 1) in flash_driver_before()
130 uint8_t buf[EXPECTED_SIZE]; in ZTEST()
139 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/flash/stm32/src/
Dmain.c21 #define EXPECTED_SIZE 512 macro
28 static uint8_t __aligned(4) expected[EXPECTED_SIZE];
52 uint8_t buf[EXPECTED_SIZE]; in flash_stm32_setup()
58 zassert_true((TEST_AREA_OFFSET + EXPECTED_SIZE) < TEST_AREA_MAX, in flash_stm32_setup()
66 rc = sector_mask_from_offset(flash_dev, TEST_AREA_OFFSET, EXPECTED_SIZE, in flash_stm32_setup()
71 TEST_AREA_OFFSET, EXPECTED_SIZE, sector_mask); in flash_stm32_setup()
92 rc = flash_read(flash_dev, TEST_AREA_OFFSET, buf, EXPECTED_SIZE); in flash_stm32_setup()
96 for (off_t i = 0; i < EXPECTED_SIZE; i++) { in flash_stm32_setup()
105 rc = flash_erase(flash_dev, TEST_AREA_OFFSET, EXPECTED_SIZE); in flash_stm32_setup()
110 for (int i = 0; i < EXPECTED_SIZE; i++) { in flash_stm32_setup()
[all …]
/Zephyr-latest/tests/drivers/flash/negative_tests/src/
Dmain.c43 #define EXPECTED_SIZE 512 macro
51 static uint8_t __aligned(4) expected[EXPECTED_SIZE];
180 uint8_t read_buf[EXPECTED_SIZE]; in ZTEST()
194 rc = flash_read(flash_dev, (TEST_FLASH_START - page_info.size), read_buf, EXPECTED_SIZE); in ZTEST()
198 rc = flash_read(flash_dev, (TEST_FLASH_START + TEST_FLASH_SIZE), read_buf, EXPECTED_SIZE); in ZTEST()