Searched refs:erase_offset (Results 1 – 4 of 4) sorted by relevance
219 uint32_t erase_offset = 0U; in flash_gd32_erase_block() local227 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()
118 uint32_t erase_offset = config->base_addr + (uint32_t)offset; in ifx_cat1_flash_erase() local125 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()
80 uint32_t erase_offset = offset; /* address of next byte to erase */ in flash_nios2_qspi_erase() local96 (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()
581 off_t erase_offset; in ZTEST() local603 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() local674 erase_offset = ctx.last_erased_page_start_offset; in ZTEST()675 zassert_equal(erase_offset, erase_offset_old, in ZTEST()