Lines Matching refs:page_info
50 static struct flash_pages_info page_info; variable
65 rc = flash_get_page_info_by_offs(flash_dev, TEST_AREA_OFFSET, &page_info); in flash_driver_setup()
68 TC_PRINT("start_offset = 0x%lx\n", (unsigned long)page_info.start_offset); in flash_driver_setup()
69 TC_PRINT("size = 0x%lx\n", (unsigned long)page_info.size); in flash_driver_setup()
70 TC_PRINT("index = %d\n", page_info.index); 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()
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()
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()
194 rc = flash_read(flash_dev, (TEST_FLASH_START - page_info.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()
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()