Lines Matching refs:copy

177 	size_t copy;  in _shift_data_right_pages()  local
201 copy = len; in _shift_data_right_pages()
202 if (copy > pgto_base) in _shift_data_right_pages()
203 copy = pgto_base; in _shift_data_right_pages()
204 if (copy > pgfrom_base) in _shift_data_right_pages()
205 copy = pgfrom_base; in _shift_data_right_pages()
206 pgto_base -= copy; in _shift_data_right_pages()
207 pgfrom_base -= copy; in _shift_data_right_pages()
212 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); in _shift_data_right_pages()
215 memmove(vto + pgto_base, vto + pgfrom_base, copy); in _shift_data_right_pages()
219 } while ((len -= copy) != 0); in _shift_data_right_pages()
237 size_t copy; in _copy_to_pages() local
243 copy = PAGE_CACHE_SIZE - pgbase; in _copy_to_pages()
244 if (copy > len) in _copy_to_pages()
245 copy = len; in _copy_to_pages()
248 memcpy(vto + pgbase, p, copy); in _copy_to_pages()
251 len -= copy; in _copy_to_pages()
255 pgbase += copy; in _copy_to_pages()
261 p += copy; in _copy_to_pages()
281 size_t copy; in _copy_from_pages() local
287 copy = PAGE_CACHE_SIZE - pgbase; in _copy_from_pages()
288 if (copy > len) in _copy_from_pages()
289 copy = len; in _copy_from_pages()
292 memcpy(p, vfrom + pgbase, copy); in _copy_from_pages()
295 pgbase += copy; in _copy_from_pages()
300 p += copy; in _copy_from_pages()
302 } while ((len -= copy) != 0); in _copy_from_pages()
319 size_t copy, offs; in xdr_shrink_bufhead() local
332 copy = tail->iov_len - len; in xdr_shrink_bufhead()
334 tail->iov_base, copy); in xdr_shrink_bufhead()
337 copy = len; in xdr_shrink_bufhead()
338 if (copy > pglen) in xdr_shrink_bufhead()
339 copy = pglen; in xdr_shrink_bufhead()
340 offs = len - copy; in xdr_shrink_bufhead()
342 copy = 0; in xdr_shrink_bufhead()
343 else if (copy > tail->iov_len - offs) in xdr_shrink_bufhead()
344 copy = tail->iov_len - offs; in xdr_shrink_bufhead()
345 if (copy != 0) in xdr_shrink_bufhead()
349 copy); in xdr_shrink_bufhead()
352 offs = copy = len - pglen; in xdr_shrink_bufhead()
353 if (copy > tail->iov_len) in xdr_shrink_bufhead()
354 copy = tail->iov_len; in xdr_shrink_bufhead()
358 copy); in xdr_shrink_bufhead()
368 copy = len; in xdr_shrink_bufhead()
370 copy = pglen; in xdr_shrink_bufhead()
373 copy); in xdr_shrink_bufhead()
395 size_t copy; in xdr_shrink_pagelen() local
412 copy = len; in xdr_shrink_pagelen()
417 copy = tail->iov_len; in xdr_shrink_pagelen()
421 copy); in xdr_shrink_pagelen()