Lines Matching refs:flash_dev

49 static const struct device *const flash_dev = TEST_AREA_DEVICE;  variable
57 zassert_true(device_is_ready(flash_dev)); in flash_driver_setup()
59 TC_PRINT("Test will run on device %s\n", flash_dev->name); in flash_driver_setup()
65 rc = flash_get_page_info_by_offs(flash_dev, TEST_AREA_OFFSET, &page_info); in flash_driver_setup()
92 rc = flash_erase(flash_dev, (TEST_FLASH_START - page_info.size), page_info.size); in ZTEST()
96 rc = flash_erase(flash_dev, (TEST_FLASH_START + TEST_FLASH_SIZE), page_info.size); in ZTEST()
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()
125 rc = flash_fill(flash_dev, fill_val, (TEST_FLASH_START - page_info.size), page_info.size); in ZTEST()
129 rc = flash_fill(flash_dev, fill_val, (TEST_FLASH_START + TEST_FLASH_SIZE), page_info.size); 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()
159 rc = flash_flatten(flash_dev, (TEST_FLASH_START - page_info.size), page_info.size); in ZTEST()
163 rc = flash_flatten(flash_dev, (TEST_FLASH_START + TEST_FLASH_SIZE), page_info.size); 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()
173 rc = flash_flatten(flash_dev, TEST_AREA_OFFSET, 0); 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()
202 rc = flash_read(flash_dev, TEST_AREA_OFFSET, read_buf, (TEST_FLASH_SIZE + page_info.size)); in ZTEST()
206 rc = flash_read(flash_dev, TEST_AREA_OFFSET, read_buf, 0); in ZTEST()
226 rc = flash_write(flash_dev, (TEST_FLASH_START - page_info.size), expected, page_info.size); in ZTEST()
230 rc = flash_write(flash_dev, (TEST_FLASH_START + TEST_FLASH_SIZE), expected, page_info.size); in ZTEST()
234 rc = flash_write(flash_dev, (TEST_AREA_OFFSET + 1), expected, (TEST_FLASH_SIZE + 1)); in ZTEST()
238 rc = flash_write(flash_dev, TEST_AREA_OFFSET, expected, 0); in ZTEST()