Lines Matching refs:copy
229 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyout() local
233 memcpy(*kbuf, data, copy); in user_regset_copyout()
234 *kbuf += copy; in user_regset_copyout()
235 } else if (__copy_to_user(*ubuf, data, copy)) in user_regset_copyout()
238 *ubuf += copy; in user_regset_copyout()
239 *pos += copy; in user_regset_copyout()
240 *count -= copy; in user_regset_copyout()
254 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() local
258 memcpy(data, *kbuf, copy); in user_regset_copyin()
259 *kbuf += copy; in user_regset_copyin()
260 } else if (__copy_from_user(data, *ubuf, copy)) in user_regset_copyin()
263 *ubuf += copy; in user_regset_copyin()
264 *pos += copy; in user_regset_copyin()
265 *count -= copy; in user_regset_copyin()
284 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyout_zero() local
287 memset(*kbuf, 0, copy); in user_regset_copyout_zero()
288 *kbuf += copy; in user_regset_copyout_zero()
289 } else if (__clear_user(*ubuf, copy)) in user_regset_copyout_zero()
292 *ubuf += copy; in user_regset_copyout_zero()
293 *pos += copy; in user_regset_copyout_zero()
294 *count -= copy; in user_regset_copyout_zero()
310 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin_ignore() local
313 *kbuf += copy; in user_regset_copyin_ignore()
315 *ubuf += copy; in user_regset_copyin_ignore()
316 *pos += copy; in user_regset_copyin_ignore()
317 *count -= copy; in user_regset_copyin_ignore()