Lines Matching refs:flash_prefix
794 off_t flash_prefix = (WORD_SIZE - (addr % WORD_SIZE)) % WORD_SIZE; in read_non_aligned() local
796 if (flash_prefix > size) { in read_non_aligned()
797 flash_prefix = size; in read_non_aligned()
806 off_t flash_suffix = (size - flash_prefix) % WORD_SIZE; in read_non_aligned()
807 off_t flash_middle = size - flash_prefix - flash_suffix; in read_non_aligned()
813 flash_suffix = size - flash_prefix - flash_middle; in read_non_aligned()
821 addr + flash_prefix); in read_non_aligned()
828 if (flash_prefix != dest_prefix) { in read_non_aligned()
829 memmove(dptr + flash_prefix, dptr + dest_prefix, flash_middle); in read_non_aligned()
834 if (flash_prefix != 0) { in read_non_aligned()
836 (WORD_SIZE - flash_prefix)); in read_non_aligned()
841 memcpy(dptr, buf + WORD_SIZE - flash_prefix, flash_prefix); in read_non_aligned()
847 addr + flash_prefix + flash_middle); in read_non_aligned()
852 memcpy(dptr + flash_prefix + flash_middle, buf, flash_suffix); in read_non_aligned()