• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sunrpc/

Lines Matching defs:copy

171  * @len: number of bytes to copy
186 size_t copy;
210 copy = len;
211 if (copy > pgto_base)
212 copy = pgto_base;
213 if (copy > pgfrom_base)
214 copy = pgfrom_base;
215 pgto_base -= copy;
216 pgfrom_base -= copy;
220 memmove(vto + pgto_base, vfrom + pgfrom_base, copy);
225 } while ((len -= copy) != 0);
236 * The copy is assumed to be non-overlapping.
243 size_t copy;
249 copy = PAGE_CACHE_SIZE - pgbase;
250 if (copy > len)
251 copy = len;
254 memcpy(vto + pgbase, p, copy);
257 len -= copy;
261 pgbase += copy;
267 p += copy;
280 * The copy is assumed to be non-overlapping.
287 size_t copy;
293 copy = PAGE_CACHE_SIZE - pgbase;
294 if (copy > len)
295 copy = len;
298 memcpy(p, vfrom + pgbase, copy);
301 pgbase += copy;
306 p += copy;
308 } while ((len -= copy) != 0);
324 size_t copy, offs;
334 copy = tail->iov_len - len;
336 tail->iov_base, copy);
339 copy = len;
340 if (copy > pglen)
341 copy = pglen;
342 offs = len - copy;
344 copy = 0;
345 else if (copy > tail->iov_len - offs)
346 copy = tail->iov_len - offs;
347 if (copy != 0)
351 copy);
352 /* Do we also need to copy data from the head into the tail ? */
354 offs = copy = len - pglen;
355 if (copy > tail->iov_len)
356 copy = tail->iov_len;
360 copy);
370 copy = len;
372 copy = pglen;
375 copy);
397 size_t copy;
408 copy = tail->iov_len - len;
409 memmove(p, tail->iov_base, copy);
413 copy = len;
414 if (copy > tail->iov_len)
415 copy = tail->iov_len;
418 copy);
792 * try to find space for it at the end of the tail, copy it there, and
813 * (We don't copy to the beginning because then we'd have
814 * to worry about doing a potentially overlapping copy.