Lines Matching refs:buf
29 u64 buf[ELF_NFPREG]; in copy_fpr_to_user() local
34 buf[i] = task->thread.TS_FPR(i); in copy_fpr_to_user()
35 buf[i] = task->thread.fp_state.fpscr; in copy_fpr_to_user()
36 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_fpr_to_user()
42 u64 buf[ELF_NFPREG]; in copy_fpr_from_user() local
45 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_fpr_from_user()
48 task->thread.TS_FPR(i) = buf[i]; in copy_fpr_from_user()
49 task->thread.fp_state.fpscr = buf[i]; in copy_fpr_from_user()
57 u64 buf[ELF_NVSRHALFREG]; in copy_vsx_to_user() local
62 buf[i] = task->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in copy_vsx_to_user()
63 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_vsx_to_user()
69 u64 buf[ELF_NVSRHALFREG]; in copy_vsx_from_user() local
72 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_vsx_from_user()
75 task->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in copy_vsx_from_user()
83 u64 buf[ELF_NFPREG]; in copy_ckfpr_to_user() local
88 buf[i] = task->thread.TS_CKFPR(i); in copy_ckfpr_to_user()
89 buf[i] = task->thread.ckfp_state.fpscr; in copy_ckfpr_to_user()
90 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_ckfpr_to_user()
96 u64 buf[ELF_NFPREG]; in copy_ckfpr_from_user() local
99 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_ckfpr_from_user()
102 task->thread.TS_CKFPR(i) = buf[i]; in copy_ckfpr_from_user()
103 task->thread.ckfp_state.fpscr = buf[i]; in copy_ckfpr_from_user()
111 u64 buf[ELF_NVSRHALFREG]; in copy_ckvsx_to_user() local
116 buf[i] = task->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET]; in copy_ckvsx_to_user()
117 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_ckvsx_to_user()
123 u64 buf[ELF_NVSRHALFREG]; in copy_ckvsx_from_user() local
126 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_ckvsx_from_user()
129 task->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in copy_ckvsx_from_user()