Searched refs:offset_in_block (Results 1 – 1 of 1) sorted by relevance
79 uint32_t block_offset, offset_in_block, length_to_erase; in flash_nios2_qspi_erase() local112 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() local316 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()