Lines Matching defs:copy
256 * @len: number of bytes to copy
271 size_t copy;
294 copy = len;
295 if (copy > (PAGE_SIZE - pgto_base))
296 copy = PAGE_SIZE - pgto_base;
297 if (copy > (PAGE_SIZE - pgfrom_base))
298 copy = PAGE_SIZE - pgfrom_base;
303 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy);
306 memmove(vto + pgto_base, vto + pgfrom_base, copy);
310 pgto_base += copy;
311 pgfrom_base += copy;
313 } while ((len -= copy) != 0);
321 * @len: number of bytes to copy
336 size_t copy;
363 copy = len;
364 if (copy > pgto_base)
365 copy = pgto_base;
366 if (copy > pgfrom_base)
367 copy = pgfrom_base;
368 pgto_base -= copy;
369 pgfrom_base -= copy;
374 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy);
377 memmove(vto + pgto_base, vto + pgfrom_base, copy);
381 } while ((len -= copy) != 0);
392 * The copy is assumed to be non-overlapping.
399 size_t copy;
408 copy = PAGE_SIZE - pgbase;
409 if (copy > len)
410 copy = len;
413 memcpy(vto + pgbase, p, copy);
416 len -= copy;
420 pgbase += copy;
426 p += copy;
439 * The copy is assumed to be non-overlapping.
446 size_t copy;
455 copy = PAGE_SIZE - pgbase;
456 if (copy > len)
457 copy = len;
460 memcpy(p, vfrom + pgbase, copy);
463 pgbase += copy;
468 p += copy;
470 } while ((len -= copy) != 0);
1066 * page, then copy it back later in xdr_commit_encode. We use
1181 * cache pages (as in a zero-copy server read reply), except for the