Searched refs:page_info (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/tests/drivers/flash/common/src/ |
D | main.c | 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() [all …]
|
/Zephyr-latest/tests/drivers/flash/negative_tests/src/ |
D | main.c | 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() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_page_layout.c | 80 struct flash_pages_info page_info; in flash_page_foreach() local 88 page_info.size = l->pages_size; in flash_page_foreach() 91 page_info.start_offset = off; in flash_page_foreach() 92 page_info.index = page; in flash_page_foreach() 94 if (!cb(&page_info, data)) { in flash_page_foreach() 98 off += page_info.size; in flash_page_foreach()
|
D | flash_shell.c | 768 SHELL_CMD_ARG(page_info, &dsub_device_name,
|
/Zephyr-latest/tests/boards/espressif/cache_coex/src/ |
D | cache_coex.c | 30 static struct flash_pages_info page_info; variable 95 rc = flash_get_page_info_by_idx(flash_dev, FLASH_PAGE_TESTED, &page_info); in page_erase() 100 rc = do_erase(page_info.start_offset, page_info.size); in page_erase() 110 int rc = flash_get_page_info_by_idx(flash_dev, FLASH_PAGE_TESTED, &page_info); in page_read() 117 page_info.start_offset + FLASH_PAGE_OFFSET, in page_read() 130 int rc = flash_get_page_info_by_idx(flash_dev, FLASH_PAGE_TESTED, &page_info); in page_write() 138 page_info.start_offset + FLASH_PAGE_OFFSET, in page_write()
|
/Zephyr-latest/samples/drivers/flash_shell/ |
D | README.rst | 30 uart:~$ flash page_info 0
|