Home
last modified time | relevance | path

Searched refs:erase_offset (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/flash/
Dflash_gd32_v3.c219 uint32_t erase_offset = 0U; in flash_gd32_erase_block() local
227 if (erase_offset < offset) { in flash_gd32_erase_block()
229 erase_offset += page_layout->pages_size; in flash_gd32_erase_block()
241 erase_offset += page_layout->pages_size; in flash_gd32_erase_block()
243 if (erase_offset - offset >= size) { in flash_gd32_erase_block()
Dflash_ifx_cat1.c118 uint32_t erase_offset = config->base_addr + (uint32_t)offset; in ifx_cat1_flash_erase() local
125 if (((erase_offset + size) > config->max_addr) || ((size % PAGE_LEN) != 0)) { in ifx_cat1_flash_erase()
130 rslt = cyhal_flash_erase(&data->flash_obj, erase_offset); in ifx_cat1_flash_erase()
137 erase_offset += PAGE_LEN; in ifx_cat1_flash_erase()
Dsoc_flash_nios2_qspi.c80 uint32_t erase_offset = offset; /* address of next byte to erase */ in flash_nios2_qspi_erase() local
96 (0 != (erase_offset & in flash_nios2_qspi_erase()
107 erase_offset >= (offset + len)) { in flash_nios2_qspi_erase()
116 block_offset = erase_offset & ~(qspi_dev->sector_size - 1); in flash_nios2_qspi_erase()
119 if (block_offset != erase_offset) { in flash_nios2_qspi_erase()
120 offset_in_block = erase_offset - block_offset; in flash_nios2_qspi_erase()
165 erase_offset += length_to_erase; in flash_nios2_qspi_erase()
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/
Dmain.c581 off_t erase_offset; in ZTEST() local
603 erase_offset = ctx.last_erased_page_start_offset; in ZTEST()
604 zassert_equal(erase_offset, erase_offset_old, in ZTEST()
647 off_t erase_offset; in ZTEST() local
674 erase_offset = ctx.last_erased_page_start_offset; in ZTEST()
675 zassert_equal(erase_offset, erase_offset_old, in ZTEST()