Lines Matching refs:page_info

53 static struct flash_pages_info page_info;  variable
75 &page_info); 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()
117 rc = flash_erase(flash_dev, page_info.start_offset, in flash_driver_before()
118 (page_info.size * in flash_driver_before()
119 ((EXPECTED_SIZE + page_info.size - 1) in flash_driver_before()
120 / page_info.size))); in flash_driver_before()
135 start = page_info.start_offset; in ZTEST()
137 rc = flash_erase(flash_dev, page_info.start_offset, in ZTEST()
138 (page_info.size * in ZTEST()
139 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
140 / page_info.size))); in ZTEST()
191 rc = flash_erase(flash_dev, page_info.start_offset, in ZTEST()
192 (page_info.size * in ZTEST()
193 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
194 / page_info.size))); in ZTEST()
198 rc = flash_fill(flash_dev, 0x55, page_info.start_offset, in ZTEST()
199 (page_info.size * in ZTEST()
200 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
201 / page_info.size))); in ZTEST()
206 rc = flash_fill(flash_dev, 0xaa, page_info.start_offset, in ZTEST()
207 (page_info.size * in ZTEST()
208 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
209 / page_info.size))); in ZTEST()
230 rc = flash_flatten(flash_dev, page_info.start_offset, in ZTEST()
231 (page_info.size * in ZTEST()
232 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
233 / page_info.size))); in ZTEST()
238 rc = flash_fill(flash_dev, 0xaa, page_info.start_offset, in ZTEST()
239 (page_info.size * in ZTEST()
240 ((EXPECTED_SIZE + page_info.size - 1) in ZTEST()
241 / page_info.size))); in ZTEST()
266 rc = flash_write(flash_dev, page_info.start_offset, expected, EXPECTED_SIZE); in ZTEST()
270 rc = flash_read(flash_dev, page_info.start_offset, read_buf, EXPECTED_SIZE); in ZTEST()
287 flash_dev, page_info.start_offset, in ZTEST()
288 (page_info.size * ((EXPECTED_SIZE + page_info.size - 1) / page_info.size))); in ZTEST()
292 rc = flash_read(flash_dev, page_info.start_offset, read_buf, EXPECTED_SIZE); in ZTEST()
399 zassert_ok(flash_flatten(flash_dev, page_info.start_offset, page_info.size)); in test_flash_copy_inner()
400 zassert_ok(flash_fill(flash_dev, 0xaa, page_info.start_offset, page_info.size)); in test_flash_copy_inner()
401 zassert_ok(flash_flatten(flash_dev, page_info.start_offset + page_info.size, in test_flash_copy_inner()
402 page_info.size)); in test_flash_copy_inner()
440 test_flash_copy_inner(NULL, -1, NULL, -1, page_info.size, buf, sizeof(buf), -EINVAL); in ZTEST()
441 test_flash_copy_inner(NULL, -1, NULL, -1, page_info.size, buf, sizeof(buf), -EINVAL); in ZTEST()
442 test_flash_copy_inner(NULL, page_info.start_offset, NULL, in ZTEST()
443 page_info.start_offset + page_info.size, page_info.size, buf, in ZTEST()
445 test_flash_copy_inner(flash_dev, page_info.start_offset, flash_dev, in ZTEST()
446 page_info.start_offset + page_info.size, page_info.size, buf, in ZTEST()
450 test_flash_copy_inner(flash_dev, page_info.start_offset, flash_dev, in ZTEST()
451 page_info.start_offset + page_info.size, 0, buf, sizeof(buf), 0); in ZTEST()
454 test_flash_copy_inner(flash_dev, page_info.start_offset, flash_dev, page_info.start_offset, in ZTEST()
455 page_info.size, buf, sizeof(buf), 0); in ZTEST()
458 test_flash_copy_inner(flash_dev, off_max, flash_dev, page_info.start_offset, 42, buf, in ZTEST()
462 test_flash_copy_inner(flash_dev, page_info.start_offset, flash_dev, in ZTEST()
463 page_info.start_offset + 32, page_info.size - 32, buf, sizeof(buf), in ZTEST()