Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/flash/
Dsoc_flash_nios2_qspi.c79 uint32_t block_offset, offset_in_block, length_to_erase; in flash_nios2_qspi_erase() local
112 offset_in_block = 0U; /* offset into current sector to erase */ in flash_nios2_qspi_erase()
120 offset_in_block = erase_offset - block_offset; in flash_nios2_qspi_erase()
124 length_to_erase = MIN(qspi_dev->sector_size - offset_in_block, in flash_nios2_qspi_erase()
284 uint32_t block_offset, offset_in_block, length_to_write; in flash_nios2_qspi_write() local
316 offset_in_block = 0U; /* offset into current sector to write */ in flash_nios2_qspi_write()
324 offset_in_block = write_offset - block_offset; in flash_nios2_qspi_write()
328 length_to_write = MIN(qspi_dev->sector_size - offset_in_block, in flash_nios2_qspi_write()