Lines Matching refs:page_info_off
345 struct flash_pages_info page_info_off = {0}; in ZTEST() local
355 rc = flash_get_page_info_by_offs(flash_dev, TEST_AREA_OFFSET, &page_info_off); in ZTEST()
357 TC_PRINT("start_offset=0x%lx\tsize=%d\tindex=%d\n", page_info_off.start_offset, in ZTEST()
358 (int)page_info_off.size, page_info_off.index); in ZTEST()
359 zassert_true(page_info_off.start_offset >= 0, "start_offset is %d", rc); in ZTEST()
360 zassert_true(page_info_off.size > 0, "size is %d", rc); in ZTEST()
361 zassert_true(page_info_off.index >= 0, "index is %d", rc); in ZTEST()
364 rc = flash_get_page_info_by_idx(flash_dev, page_info_off.index, &page_info_idx); in ZTEST()
366 zassert_equal(page_info_off.start_offset, page_info_idx.start_offset); in ZTEST()
367 zassert_equal(page_info_off.size, page_info_idx.size); in ZTEST()
368 zassert_equal(page_info_off.index, page_info_idx.index); in ZTEST()
373 zassert_true(page_count >= page_info_off.index); in ZTEST()