• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/

Lines Matching refs:copy

163  * @len: number of bytes to copy
178 size_t copy;
202 copy = len;
203 if (copy > pgto_base)
204 copy = pgto_base;
205 if (copy > pgfrom_base)
206 copy = pgfrom_base;
207 pgto_base -= copy;
208 pgfrom_base -= copy;
212 memmove(vto + pgto_base, vfrom + pgfrom_base, copy);
217 } while ((len -= copy) != 0);
228 * The copy is assumed to be non-overlapping.
235 size_t copy;
241 copy = PAGE_CACHE_SIZE - pgbase;
242 if (copy > len)
243 copy = len;
246 memcpy(vto + pgbase, p, copy);
249 pgbase += copy;
255 p += copy;
257 } while ((len -= copy) != 0);
269 * The copy is assumed to be non-overlapping.
276 size_t copy;
282 copy = PAGE_CACHE_SIZE - pgbase;
283 if (copy > len)
284 copy = len;
287 memcpy(p, vfrom + pgbase, copy);
290 pgbase += copy;
295 p += copy;
297 } while ((len -= copy) != 0);
313 size_t copy, offs;
323 copy = tail->iov_len - len;
325 tail->iov_base, copy);
328 copy = len;
329 if (copy > pglen)
330 copy = pglen;
331 offs = len - copy;
333 copy = 0;
334 else if (copy > tail->iov_len - offs)
335 copy = tail->iov_len - offs;
336 if (copy != 0)
340 copy);
341 /* Do we also need to copy data from the head into the tail ? */
343 offs = copy = len - pglen;
344 if (copy > tail->iov_len)
345 copy = tail->iov_len;
349 copy);
359 copy = len;
361 copy = pglen;
364 copy);
386 size_t copy;
397 copy = tail->iov_len - len;
398 memmove(p, tail->iov_base, copy);
402 copy = len;
403 if (copy > tail->iov_len)
404 copy = tail->iov_len;
407 copy);
774 * try to find space for it at the end of the tail, copy it there, and
795 * (We don't copy to the beginning because then we'd have
796 * to worry about doing a potentially overlapping copy.