Lines Matching refs:target
888 static int s390_regs_get(struct task_struct *target, in s390_regs_get() argument
893 if (target == current) in s390_regs_get()
894 save_access_regs(target->thread.acrs); in s390_regs_get()
899 *k++ = __peek_user(target, pos); in s390_regs_get()
906 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get()
915 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument
922 if (target == current) in s390_regs_set()
923 save_access_regs(target->thread.acrs); in s390_regs_set()
928 rc = __poke_user(target, pos, *k++); in s390_regs_set()
939 rc = __poke_user(target, pos, word); in s390_regs_set()
945 if (rc == 0 && target == current) in s390_regs_set()
946 restore_access_regs(target->thread.acrs); in s390_regs_set()
951 static int s390_fpregs_get(struct task_struct *target, in s390_fpregs_get() argument
955 if (target == current) { in s390_fpregs_get()
956 save_fp_ctl(&target->thread.fp_regs.fpc); in s390_fpregs_get()
957 save_fp_regs(target->thread.fp_regs.fprs); in s390_fpregs_get()
958 } else if (target->thread.vxrs) { in s390_fpregs_get()
962 target->thread.fp_regs.fprs[i] = in s390_fpregs_get()
963 *(freg_t *)(target->thread.vxrs + i); in s390_fpregs_get()
966 &target->thread.fp_regs, 0, -1); in s390_fpregs_get()
969 static int s390_fpregs_set(struct task_struct *target, in s390_fpregs_set() argument
976 if (target == current) { in s390_fpregs_set()
977 save_fp_ctl(&target->thread.fp_regs.fpc); in s390_fpregs_set()
978 save_fp_regs(target->thread.fp_regs.fprs); in s390_fpregs_set()
983 u32 ufpc[2] = { target->thread.fp_regs.fpc, 0 }; in s390_fpregs_set()
990 target->thread.fp_regs.fpc = ufpc[0]; in s390_fpregs_set()
995 target->thread.fp_regs.fprs, in s390_fpregs_set()
999 if (target == current) { in s390_fpregs_set()
1000 restore_fp_ctl(&target->thread.fp_regs.fpc); in s390_fpregs_set()
1001 restore_fp_regs(target->thread.fp_regs.fprs); in s390_fpregs_set()
1002 } else if (target->thread.vxrs) { in s390_fpregs_set()
1006 *(freg_t *)(target->thread.vxrs + i) = in s390_fpregs_set()
1007 target->thread.fp_regs.fprs[i]; in s390_fpregs_set()
1014 static int s390_last_break_get(struct task_struct *target, in s390_last_break_get() argument
1022 *k = task_thread_info(target)->last_break; in s390_last_break_get()
1025 if (__put_user(task_thread_info(target)->last_break, u)) in s390_last_break_get()
1032 static int s390_last_break_set(struct task_struct *target, in s390_last_break_set() argument
1040 static int s390_tdb_get(struct task_struct *target, in s390_tdb_get() argument
1045 struct pt_regs *regs = task_pt_regs(target); in s390_tdb_get()
1050 data = target->thread.trap_tdb; in s390_tdb_get()
1054 static int s390_tdb_set(struct task_struct *target, in s390_tdb_set() argument
1062 static int s390_vxrs_low_get(struct task_struct *target, in s390_vxrs_low_get() argument
1072 if (target->thread.vxrs) { in s390_vxrs_low_get()
1073 if (target == current) in s390_vxrs_low_get()
1074 save_vx_regs(target->thread.vxrs); in s390_vxrs_low_get()
1076 vxrs[i] = *((__u64 *)(target->thread.vxrs + i) + 1); in s390_vxrs_low_get()
1082 static int s390_vxrs_low_set(struct task_struct *target, in s390_vxrs_low_set() argument
1092 if (!target->thread.vxrs) { in s390_vxrs_low_set()
1093 rc = alloc_vector_registers(target); in s390_vxrs_low_set()
1096 } else if (target == current) in s390_vxrs_low_set()
1097 save_vx_regs(target->thread.vxrs); in s390_vxrs_low_set()
1102 *((__u64 *)(target->thread.vxrs + i) + 1) = vxrs[i]; in s390_vxrs_low_set()
1103 if (target == current) in s390_vxrs_low_set()
1104 restore_vx_regs(target->thread.vxrs); in s390_vxrs_low_set()
1110 static int s390_vxrs_high_get(struct task_struct *target, in s390_vxrs_high_get() argument
1119 if (target->thread.vxrs) { in s390_vxrs_high_get()
1120 if (target == current) in s390_vxrs_high_get()
1121 save_vx_regs(target->thread.vxrs); in s390_vxrs_high_get()
1122 memcpy(vxrs, target->thread.vxrs + __NUM_VXRS_LOW, in s390_vxrs_high_get()
1129 static int s390_vxrs_high_set(struct task_struct *target, in s390_vxrs_high_set() argument
1138 if (!target->thread.vxrs) { in s390_vxrs_high_set()
1139 rc = alloc_vector_registers(target); in s390_vxrs_high_set()
1142 } else if (target == current) in s390_vxrs_high_set()
1143 save_vx_regs(target->thread.vxrs); in s390_vxrs_high_set()
1146 target->thread.vxrs + __NUM_VXRS_LOW, 0, -1); in s390_vxrs_high_set()
1147 if (rc == 0 && target == current) in s390_vxrs_high_set()
1148 restore_vx_regs(target->thread.vxrs); in s390_vxrs_high_set()
1153 static int s390_system_call_get(struct task_struct *target, in s390_system_call_get() argument
1158 unsigned int *data = &task_thread_info(target)->system_call; in s390_system_call_get()
1163 static int s390_system_call_set(struct task_struct *target, in s390_system_call_set() argument
1168 unsigned int *data = &task_thread_info(target)->system_call; in s390_system_call_set()
1240 static int s390_compat_regs_get(struct task_struct *target, in s390_compat_regs_get() argument
1245 if (target == current) in s390_compat_regs_get()
1246 save_access_regs(target->thread.acrs); in s390_compat_regs_get()
1251 *k++ = __peek_user_compat(target, pos); in s390_compat_regs_get()
1258 if (__put_user(__peek_user_compat(target, pos), u++)) in s390_compat_regs_get()
1267 static int s390_compat_regs_set(struct task_struct *target, in s390_compat_regs_set() argument
1274 if (target == current) in s390_compat_regs_set()
1275 save_access_regs(target->thread.acrs); in s390_compat_regs_set()
1280 rc = __poke_user_compat(target, pos, *k++); in s390_compat_regs_set()
1291 rc = __poke_user_compat(target, pos, word); in s390_compat_regs_set()
1297 if (rc == 0 && target == current) in s390_compat_regs_set()
1298 restore_access_regs(target->thread.acrs); in s390_compat_regs_set()
1303 static int s390_compat_regs_high_get(struct task_struct *target, in s390_compat_regs_high_get() argument
1311 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_get()
1331 static int s390_compat_regs_high_set(struct task_struct *target, in s390_compat_regs_high_set() argument
1340 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_set()
1364 static int s390_compat_last_break_get(struct task_struct *target, in s390_compat_last_break_get() argument
1372 last_break = task_thread_info(target)->last_break; in s390_compat_last_break_get()
1385 static int s390_compat_last_break_set(struct task_struct *target, in s390_compat_last_break_set() argument