Lines Matching refs:pgfrom_base
220 size_t pgfrom_base, size_t len) in _shift_data_right_pages() argument
226 BUG_ON(pgto_base <= pgfrom_base); in _shift_data_right_pages()
229 pgfrom_base += len; in _shift_data_right_pages()
232 pgfrom = pages + (pgfrom_base >> PAGE_SHIFT); in _shift_data_right_pages()
235 pgfrom_base &= ~PAGE_MASK; in _shift_data_right_pages()
243 if (pgfrom_base == 0) { in _shift_data_right_pages()
244 pgfrom_base = PAGE_SIZE; in _shift_data_right_pages()
251 if (copy > pgfrom_base) in _shift_data_right_pages()
252 copy = pgfrom_base; in _shift_data_right_pages()
254 pgfrom_base -= copy; in _shift_data_right_pages()
259 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); in _shift_data_right_pages()
262 memmove(vto + pgto_base, vto + pgfrom_base, copy); in _shift_data_right_pages()