Lines Matching refs:pgfrom_base
173 size_t pgfrom_base, size_t len) in _shift_data_right_pages() argument
179 BUG_ON(pgto_base <= pgfrom_base); in _shift_data_right_pages()
182 pgfrom_base += len; in _shift_data_right_pages()
185 pgfrom = pages + (pgfrom_base >> PAGE_CACHE_SHIFT); in _shift_data_right_pages()
188 pgfrom_base &= ~PAGE_CACHE_MASK; in _shift_data_right_pages()
196 if (pgfrom_base == 0) { in _shift_data_right_pages()
197 pgfrom_base = PAGE_CACHE_SIZE; in _shift_data_right_pages()
204 if (copy > pgfrom_base) in _shift_data_right_pages()
205 copy = pgfrom_base; in _shift_data_right_pages()
207 pgfrom_base -= copy; in _shift_data_right_pages()
212 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); in _shift_data_right_pages()
215 memmove(vto + pgto_base, vto + pgfrom_base, copy); in _shift_data_right_pages()