Lines Matching refs:copy

212  * @len: number of bytes to copy
227 size_t copy;
247 copy = len;
248 if (copy > (PAGE_SIZE - pgto_base))
249 copy = PAGE_SIZE - pgto_base;
250 if (copy > (PAGE_SIZE - pgfrom_base))
251 copy = PAGE_SIZE - pgfrom_base;
256 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy);
259 memmove(vto + pgto_base, vto + pgfrom_base, copy);
263 pgto_base += copy;
264 pgfrom_base += copy;
266 } while ((len -= copy) != 0);
294 * @len: number of bytes to copy
309 size_t copy;
333 copy = len;
334 if (copy > pgto_base)
335 copy = pgto_base;
336 if (copy > pgfrom_base)
337 copy = pgfrom_base;
338 pgto_base -= copy;
339 pgfrom_base -= copy;
344 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy);
347 memmove(vto + pgto_base, vto + pgfrom_base, copy);
351 } while ((len -= copy) != 0);
360 size_t copy;
374 copy = len;
381 copy = tail->iov_len;
387 copy);
388 result += copy;
402 * The copy is assumed to be non-overlapping.
409 size_t copy;
415 copy = PAGE_SIZE - pgbase;
416 if (copy > len)
417 copy = len;
420 memcpy(vto + pgbase, p, copy);
423 len -= copy;
427 pgbase += copy;
433 p += copy;
446 * The copy is assumed to be non-overlapping.
453 size_t copy;
459 copy = PAGE_SIZE - pgbase;
460 if (copy > len)
461 copy = len;
464 memcpy(p, vfrom + pgbase, copy);
467 pgbase += copy;
472 p += copy;
474 } while ((len -= copy) != 0);
523 size_t copy, offs;
538 copy = tail->iov_len - len;
540 tail->iov_base, copy);
541 result += copy;
544 copy = len;
545 if (copy > pglen)
546 copy = pglen;
547 offs = len - copy;
549 copy = 0;
550 else if (copy > tail->iov_len - offs)
551 copy = tail->iov_len - offs;
552 if (copy != 0) {
556 copy);
557 result += copy;
559 /* Do we also need to copy data from the head into the tail ? */
561 offs = copy = len - pglen;
562 if (copy > tail->iov_len)
563 copy = tail->iov_len;
567 copy);
568 result += copy;
578 copy = len;
580 copy = pglen;
583 copy);
584 result += copy;
742 * page, then copy it back later in xdr_commit_encode. We use
859 * cache pages (as in a zero-copy server read reply), except for the
1116 * we copy the data into the scratch buffer in order to allow linear