Lines Matching refs:pgto_base
227 * @pgto_base: page vector address of destination
231 * Note: the addresses pgto_base and pgfrom_base are both calculated in
235 * Alse note: pgto_base must be < pgfrom_base, but the memory areas
239 _shift_data_left_pages(struct page **pages, size_t pgto_base,
246 BUG_ON(pgfrom_base <= pgto_base);
251 pgto = pages + (pgto_base >> PAGE_SHIFT);
254 pgto_base &= ~PAGE_MASK;
258 if (pgto_base >= PAGE_SIZE) {
259 pgto_base = 0;
268 if (copy > (PAGE_SIZE - pgto_base))
269 copy = PAGE_SIZE - pgto_base;
276 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy);
279 memmove(vto + pgto_base, vto + pgfrom_base, copy);
283 pgto_base += copy;
292 * @pgto_base: page vector address of destination
296 * Note: the addresses pgto_base and pgfrom_base are both calculated in
300 * Also note: pgfrom_base must be < pgto_base, but the memory areas
304 _shift_data_right_pages(struct page **pages, size_t pgto_base,
311 BUG_ON(pgto_base <= pgfrom_base);
316 pgto_base += len;
319 pgto = pages + (pgto_base >> PAGE_SHIFT);
322 pgto_base &= ~PAGE_MASK;
327 if (pgto_base == 0) {
328 pgto_base = PAGE_SIZE;
337 if (copy > pgto_base)
338 copy = pgto_base;
341 pgto_base -= copy;
347 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy);
350 memmove(vto + pgto_base, vto + pgfrom_base, copy);