Home
last modified time | relevance | path

Searched refs:page_info_off (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/drivers/flash/common/src/
Dmain.c345 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()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_hp_ra.c110 static struct flash_pages_info page_info_off, page_info_len; in flash_ra_erase() local
125 rc = flash_get_page_info_by_offs(dev, offset, &page_info_off); in flash_ra_erase()
131 if (offset != page_info_off.start_offset) { in flash_ra_erase()
142 if ((page_info_off.index > FLASH_HP_CF_BLOCK_32KB_DUAL_LOW_END && in flash_ra_erase()
143 page_info_off.index < FLASH_HP_CF_BLOCK_8KB_HIGH_START) || in flash_ra_erase()
154 block_num = (uint32_t)((page_info_len.index) - page_info_off.index); in flash_ra_erase()