Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/flash/negative_tests/src/
Dmain.c25 #define TEST_AREA_OFFSET FIXED_PARTITION_OFFSET(TEST_AREA) macro
60 TC_PRINT("TEST_AREA_OFFSET = 0x%lx\n", (unsigned long)TEST_AREA_OFFSET); in flash_driver_setup()
65 rc = flash_get_page_info_by_offs(flash_dev, TEST_AREA_OFFSET, &page_info); in flash_driver_setup()
100 rc = flash_erase(flash_dev, (TEST_AREA_OFFSET + 1), (TEST_FLASH_SIZE + 1)); in ZTEST()
104 rc = flash_erase(flash_dev, TEST_AREA_OFFSET, 0); in ZTEST()
133 rc = flash_fill(flash_dev, fill_val, (TEST_AREA_OFFSET + 1), page_info.size); in ZTEST()
135 rc = flash_fill(flash_dev, fill_val, TEST_AREA_OFFSET, (page_info.size + 1)); in ZTEST()
139 rc = flash_fill(flash_dev, fill_val, TEST_AREA_OFFSET, 0); in ZTEST()
167 rc = flash_flatten(flash_dev, (TEST_AREA_OFFSET + 1), page_info.size); in ZTEST()
169 rc = flash_flatten(flash_dev, TEST_AREA_OFFSET, (page_info.size + 1)); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/flash/stm32/src/
Dmain.c15 #define TEST_AREA_OFFSET FIXED_PARTITION_OFFSET(TEST_AREA) macro
17 #define TEST_AREA_MAX (TEST_AREA_OFFSET + TEST_AREA_SIZE)
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()
105 rc = flash_erase(flash_dev, TEST_AREA_OFFSET, EXPECTED_SIZE); in flash_stm32_setup()
134 rc = flash_write(flash_dev, TEST_AREA_OFFSET, expected, EXPECTED_SIZE); in ZTEST()
138 rc = flash_read(flash_dev, TEST_AREA_OFFSET, buf, EXPECTED_SIZE); in ZTEST()
156 rc = flash_write(flash_dev, TEST_AREA_OFFSET, expected, EXPECTED_SIZE); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/flash/common/src/
Dmain.c25 #define TEST_AREA_OFFSET FIXED_PARTITION_OFFSET(TEST_AREA) macro
27 #define TEST_AREA_MAX (TEST_AREA_OFFSET + TEST_AREA_SIZE)
33 #define TEST_AREA_OFFSET 0xff000 macro
74 flash_get_page_info_by_offs(flash_dev, TEST_AREA_OFFSET, in flash_driver_before()
79 page_info.start_offset = TEST_AREA_OFFSET; in flash_driver_before()
80 page_info.size = TEST_AREA_MAX - TEST_AREA_OFFSET; in flash_driver_before()
87 rc = flash_read(flash_dev, TEST_AREA_OFFSET, in flash_driver_before()
101 zassert_true((TEST_AREA_OFFSET + EXPECTED_SIZE) <= TEST_AREA_MAX, in flash_driver_before()
144 start = TEST_AREA_OFFSET; in ZTEST()
212 rc = flash_read(flash_dev, TEST_AREA_OFFSET, in ZTEST()
[all …]