Lines Matching refs:target

876 static int s390_regs_get(struct task_struct *target,  in s390_regs_get()  argument
881 if (target == current) in s390_regs_get()
882 save_access_regs(target->thread.acrs); in s390_regs_get()
887 *k++ = __peek_user(target, pos); in s390_regs_get()
894 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get()
903 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument
910 if (target == current) in s390_regs_set()
911 save_access_regs(target->thread.acrs); in s390_regs_set()
916 rc = __poke_user(target, pos, *k++); in s390_regs_set()
927 rc = __poke_user(target, pos, word); in s390_regs_set()
933 if (rc == 0 && target == current) in s390_regs_set()
934 restore_access_regs(target->thread.acrs); in s390_regs_set()
939 static int s390_fpregs_get(struct task_struct *target, in s390_fpregs_get() argument
945 if (target == current) in s390_fpregs_get()
948 fp_regs.fpc = target->thread.fpu.fpc; in s390_fpregs_get()
949 fpregs_store(&fp_regs, &target->thread.fpu); in s390_fpregs_get()
955 static int s390_fpregs_set(struct task_struct *target, in s390_fpregs_set() argument
963 if (target == current) in s390_fpregs_set()
968 u32 ufpc[2] = { target->thread.fpu.fpc, 0 }; in s390_fpregs_set()
975 target->thread.fpu.fpc = ufpc[0]; in s390_fpregs_set()
985 convert_fp_to_vx(target->thread.fpu.vxrs, fprs); in s390_fpregs_set()
987 memcpy(target->thread.fpu.fprs, &fprs, sizeof(fprs)); in s390_fpregs_set()
992 static int s390_last_break_get(struct task_struct *target, in s390_last_break_get() argument
1000 *k = task_thread_info(target)->last_break; in s390_last_break_get()
1003 if (__put_user(task_thread_info(target)->last_break, u)) in s390_last_break_get()
1010 static int s390_last_break_set(struct task_struct *target, in s390_last_break_set() argument
1018 static int s390_tdb_get(struct task_struct *target, in s390_tdb_get() argument
1023 struct pt_regs *regs = task_pt_regs(target); in s390_tdb_get()
1028 data = target->thread.trap_tdb; in s390_tdb_get()
1032 static int s390_tdb_set(struct task_struct *target, in s390_tdb_set() argument
1040 static int s390_vxrs_low_get(struct task_struct *target, in s390_vxrs_low_get() argument
1050 if (target == current) in s390_vxrs_low_get()
1053 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_get()
1057 static int s390_vxrs_low_set(struct task_struct *target, in s390_vxrs_low_set() argument
1067 if (target == current) in s390_vxrs_low_set()
1073 *((__u64 *)(target->thread.fpu.vxrs + i) + 1) = vxrs[i]; in s390_vxrs_low_set()
1078 static int s390_vxrs_high_get(struct task_struct *target, in s390_vxrs_high_get() argument
1087 if (target == current) in s390_vxrs_high_get()
1089 memcpy(vxrs, target->thread.fpu.vxrs + __NUM_VXRS_LOW, sizeof(vxrs)); in s390_vxrs_high_get()
1094 static int s390_vxrs_high_set(struct task_struct *target, in s390_vxrs_high_set() argument
1103 if (target == current) in s390_vxrs_high_set()
1107 target->thread.fpu.vxrs + __NUM_VXRS_LOW, 0, -1); in s390_vxrs_high_set()
1111 static int s390_system_call_get(struct task_struct *target, in s390_system_call_get() argument
1116 unsigned int *data = &task_thread_info(target)->system_call; in s390_system_call_get()
1121 static int s390_system_call_set(struct task_struct *target, in s390_system_call_set() argument
1126 unsigned int *data = &task_thread_info(target)->system_call; in s390_system_call_set()
1198 static int s390_compat_regs_get(struct task_struct *target, in s390_compat_regs_get() argument
1203 if (target == current) in s390_compat_regs_get()
1204 save_access_regs(target->thread.acrs); in s390_compat_regs_get()
1209 *k++ = __peek_user_compat(target, pos); in s390_compat_regs_get()
1216 if (__put_user(__peek_user_compat(target, pos), u++)) in s390_compat_regs_get()
1225 static int s390_compat_regs_set(struct task_struct *target, in s390_compat_regs_set() argument
1232 if (target == current) in s390_compat_regs_set()
1233 save_access_regs(target->thread.acrs); in s390_compat_regs_set()
1238 rc = __poke_user_compat(target, pos, *k++); in s390_compat_regs_set()
1249 rc = __poke_user_compat(target, pos, word); in s390_compat_regs_set()
1255 if (rc == 0 && target == current) in s390_compat_regs_set()
1256 restore_access_regs(target->thread.acrs); in s390_compat_regs_set()
1261 static int s390_compat_regs_high_get(struct task_struct *target, in s390_compat_regs_high_get() argument
1269 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_get()
1289 static int s390_compat_regs_high_set(struct task_struct *target, in s390_compat_regs_high_set() argument
1298 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_set()
1322 static int s390_compat_last_break_get(struct task_struct *target, in s390_compat_last_break_get() argument
1330 last_break = task_thread_info(target)->last_break; in s390_compat_last_break_get()
1343 static int s390_compat_last_break_set(struct task_struct *target, in s390_compat_last_break_set() argument