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()
967 convert_vx_to_fp(fprs, target->thread.fpu.vxrs); in s390_fpregs_set()
969 memcpy(&fprs, target->thread.fpu.fprs, sizeof(fprs)); in s390_fpregs_set()
973 u32 ufpc[2] = { target->thread.fpu.fpc, 0 }; in s390_fpregs_set()
980 target->thread.fpu.fpc = ufpc[0]; in s390_fpregs_set()
990 convert_fp_to_vx(target->thread.fpu.vxrs, fprs); in s390_fpregs_set()
992 memcpy(target->thread.fpu.fprs, &fprs, sizeof(fprs)); in s390_fpregs_set()
997 static int s390_last_break_get(struct task_struct *target, in s390_last_break_get() argument
1005 *k = task_thread_info(target)->last_break; in s390_last_break_get()
1008 if (__put_user(task_thread_info(target)->last_break, u)) in s390_last_break_get()
1015 static int s390_last_break_set(struct task_struct *target, in s390_last_break_set() argument
1023 static int s390_tdb_get(struct task_struct *target, in s390_tdb_get() argument
1028 struct pt_regs *regs = task_pt_regs(target); in s390_tdb_get()
1033 data = target->thread.trap_tdb; in s390_tdb_get()
1037 static int s390_tdb_set(struct task_struct *target, in s390_tdb_set() argument
1045 static int s390_vxrs_low_get(struct task_struct *target, in s390_vxrs_low_get() argument
1055 if (target == current) in s390_vxrs_low_get()
1058 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_get()
1062 static int s390_vxrs_low_set(struct task_struct *target, in s390_vxrs_low_set() argument
1072 if (target == current) in s390_vxrs_low_set()
1076 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_set()
1081 *((__u64 *)(target->thread.fpu.vxrs + i) + 1) = vxrs[i]; in s390_vxrs_low_set()
1086 static int s390_vxrs_high_get(struct task_struct *target, in s390_vxrs_high_get() argument
1095 if (target == current) in s390_vxrs_high_get()
1097 memcpy(vxrs, target->thread.fpu.vxrs + __NUM_VXRS_LOW, sizeof(vxrs)); in s390_vxrs_high_get()
1102 static int s390_vxrs_high_set(struct task_struct *target, in s390_vxrs_high_set() argument
1111 if (target == current) in s390_vxrs_high_set()
1115 target->thread.fpu.vxrs + __NUM_VXRS_LOW, 0, -1); in s390_vxrs_high_set()
1119 static int s390_system_call_get(struct task_struct *target, in s390_system_call_get() argument
1124 unsigned int *data = &task_thread_info(target)->system_call; in s390_system_call_get()
1129 static int s390_system_call_set(struct task_struct *target, in s390_system_call_set() argument
1134 unsigned int *data = &task_thread_info(target)->system_call; in s390_system_call_set()
1206 static int s390_compat_regs_get(struct task_struct *target, in s390_compat_regs_get() argument
1211 if (target == current) in s390_compat_regs_get()
1212 save_access_regs(target->thread.acrs); in s390_compat_regs_get()
1217 *k++ = __peek_user_compat(target, pos); in s390_compat_regs_get()
1224 if (__put_user(__peek_user_compat(target, pos), u++)) in s390_compat_regs_get()
1233 static int s390_compat_regs_set(struct task_struct *target, in s390_compat_regs_set() argument
1240 if (target == current) in s390_compat_regs_set()
1241 save_access_regs(target->thread.acrs); in s390_compat_regs_set()
1246 rc = __poke_user_compat(target, pos, *k++); in s390_compat_regs_set()
1257 rc = __poke_user_compat(target, pos, word); in s390_compat_regs_set()
1263 if (rc == 0 && target == current) in s390_compat_regs_set()
1264 restore_access_regs(target->thread.acrs); in s390_compat_regs_set()
1269 static int s390_compat_regs_high_get(struct task_struct *target, in s390_compat_regs_high_get() argument
1277 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_get()
1297 static int s390_compat_regs_high_set(struct task_struct *target, in s390_compat_regs_high_set() argument
1306 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_set()
1330 static int s390_compat_last_break_get(struct task_struct *target, in s390_compat_last_break_get() argument
1338 last_break = task_thread_info(target)->last_break; in s390_compat_last_break_get()
1351 static int s390_compat_last_break_set(struct task_struct *target, in s390_compat_last_break_set() argument