Lines Matching refs:flash_prefix
809 int flash_prefix = (WORD_SIZE - (addr % WORD_SIZE)) % WORD_SIZE; in read_non_aligned() local
811 if (flash_prefix > size) { in read_non_aligned()
812 flash_prefix = size; in read_non_aligned()
821 int flash_suffix = (size - flash_prefix) % WORD_SIZE; in read_non_aligned()
822 int flash_middle = size - flash_prefix - flash_suffix; in read_non_aligned()
827 flash_suffix = size - flash_prefix - flash_middle; in read_non_aligned()
834 res = _nrfx_qspi_read(dptr + dest_prefix, flash_middle, addr + flash_prefix); in read_non_aligned()
843 if (flash_prefix != dest_prefix) { in read_non_aligned()
844 memmove(dptr + flash_prefix, dptr + dest_prefix, flash_middle); in read_non_aligned()
849 if (flash_prefix != 0) { in read_non_aligned()
850 res = _nrfx_qspi_read(buf, WORD_SIZE, addr - (WORD_SIZE - flash_prefix)); in read_non_aligned()
858 memcpy(dptr, buf + WORD_SIZE - flash_prefix, flash_prefix); in read_non_aligned()
863 res = _nrfx_qspi_read(buf, WORD_SIZE * 2, addr + flash_prefix + flash_middle); in read_non_aligned()
871 memcpy(dptr + flash_prefix + flash_middle, buf, flash_suffix); in read_non_aligned()