Lines Matching refs:target

852 static int s390_regs_get(struct task_struct *target,  in s390_regs_get()  argument
857 if (target == current) in s390_regs_get()
858 save_access_regs(target->thread.acrs); in s390_regs_get()
861 membuf_store(&to, __peek_user(target, pos)); in s390_regs_get()
865 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument
872 if (target == current) in s390_regs_set()
873 save_access_regs(target->thread.acrs); in s390_regs_set()
878 rc = __poke_user(target, pos, *k++); in s390_regs_set()
889 rc = __poke_user(target, pos, word); in s390_regs_set()
895 if (rc == 0 && target == current) in s390_regs_set()
896 restore_access_regs(target->thread.acrs); in s390_regs_set()
901 static int s390_fpregs_get(struct task_struct *target, in s390_fpregs_get() argument
907 if (target == current) in s390_fpregs_get()
910 fp_regs.fpc = target->thread.fpu.fpc; in s390_fpregs_get()
911 fpregs_store(&fp_regs, &target->thread.fpu); in s390_fpregs_get()
916 static int s390_fpregs_set(struct task_struct *target, in s390_fpregs_set() argument
924 if (target == current) in s390_fpregs_set()
928 convert_vx_to_fp(fprs, target->thread.fpu.vxrs); in s390_fpregs_set()
930 memcpy(&fprs, target->thread.fpu.fprs, sizeof(fprs)); in s390_fpregs_set()
934 u32 ufpc[2] = { target->thread.fpu.fpc, 0 }; in s390_fpregs_set()
941 target->thread.fpu.fpc = ufpc[0]; in s390_fpregs_set()
951 convert_fp_to_vx(target->thread.fpu.vxrs, fprs); in s390_fpregs_set()
953 memcpy(target->thread.fpu.fprs, &fprs, sizeof(fprs)); in s390_fpregs_set()
958 static int s390_last_break_get(struct task_struct *target, in s390_last_break_get() argument
962 return membuf_store(&to, target->thread.last_break); in s390_last_break_get()
965 static int s390_last_break_set(struct task_struct *target, in s390_last_break_set() argument
973 static int s390_tdb_get(struct task_struct *target, in s390_tdb_get() argument
977 struct pt_regs *regs = task_pt_regs(target); in s390_tdb_get()
982 size = sizeof(target->thread.trap_tdb.data); in s390_tdb_get()
983 return membuf_write(&to, target->thread.trap_tdb.data, size); in s390_tdb_get()
986 static int s390_tdb_set(struct task_struct *target, in s390_tdb_set() argument
994 static int s390_vxrs_low_get(struct task_struct *target, in s390_vxrs_low_get() argument
1003 if (target == current) in s390_vxrs_low_get()
1006 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_get()
1010 static int s390_vxrs_low_set(struct task_struct *target, in s390_vxrs_low_set() argument
1020 if (target == current) in s390_vxrs_low_set()
1024 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_set()
1029 *((__u64 *)(target->thread.fpu.vxrs + i) + 1) = vxrs[i]; in s390_vxrs_low_set()
1034 static int s390_vxrs_high_get(struct task_struct *target, in s390_vxrs_high_get() argument
1040 if (target == current) in s390_vxrs_high_get()
1042 return membuf_write(&to, target->thread.fpu.vxrs + __NUM_VXRS_LOW, in s390_vxrs_high_get()
1046 static int s390_vxrs_high_set(struct task_struct *target, in s390_vxrs_high_set() argument
1055 if (target == current) in s390_vxrs_high_set()
1059 target->thread.fpu.vxrs + __NUM_VXRS_LOW, 0, -1); in s390_vxrs_high_set()
1063 static int s390_system_call_get(struct task_struct *target, in s390_system_call_get() argument
1067 return membuf_store(&to, target->thread.system_call); in s390_system_call_get()
1070 static int s390_system_call_set(struct task_struct *target, in s390_system_call_set() argument
1075 unsigned int *data = &target->thread.system_call; in s390_system_call_set()
1080 static int s390_gs_cb_get(struct task_struct *target, in s390_gs_cb_get() argument
1084 struct gs_cb *data = target->thread.gs_cb; in s390_gs_cb_get()
1090 if (target == current) in s390_gs_cb_get()
1095 static int s390_gs_cb_set(struct task_struct *target, in s390_gs_cb_set() argument
1105 if (!target->thread.gs_cb) { in s390_gs_cb_set()
1110 if (!target->thread.gs_cb) in s390_gs_cb_set()
1112 else if (target == current) in s390_gs_cb_set()
1115 gs_cb = *target->thread.gs_cb; in s390_gs_cb_set()
1123 if (!target->thread.gs_cb) in s390_gs_cb_set()
1124 target->thread.gs_cb = data; in s390_gs_cb_set()
1125 *target->thread.gs_cb = gs_cb; in s390_gs_cb_set()
1126 if (target == current) { in s390_gs_cb_set()
1128 restore_gs_cb(target->thread.gs_cb); in s390_gs_cb_set()
1134 static int s390_gs_bc_get(struct task_struct *target, in s390_gs_bc_get() argument
1138 struct gs_cb *data = target->thread.gs_bc_cb; in s390_gs_bc_get()
1147 static int s390_gs_bc_set(struct task_struct *target, in s390_gs_bc_set() argument
1152 struct gs_cb *data = target->thread.gs_bc_cb; in s390_gs_bc_set()
1160 target->thread.gs_bc_cb = data; in s390_gs_bc_set()
1192 static int s390_runtime_instr_get(struct task_struct *target, in s390_runtime_instr_get() argument
1196 struct runtime_instr_cb *data = target->thread.ri_cb; in s390_runtime_instr_get()
1206 static int s390_runtime_instr_set(struct task_struct *target, in s390_runtime_instr_set() argument
1217 if (!target->thread.ri_cb) { in s390_runtime_instr_set()
1223 if (target->thread.ri_cb) { in s390_runtime_instr_set()
1224 if (target == current) in s390_runtime_instr_set()
1227 ri_cb = *target->thread.ri_cb; in s390_runtime_instr_set()
1247 if (!target->thread.ri_cb) in s390_runtime_instr_set()
1248 target->thread.ri_cb = data; in s390_runtime_instr_set()
1249 *target->thread.ri_cb = ri_cb; in s390_runtime_instr_set()
1250 if (target == current) in s390_runtime_instr_set()
1251 load_runtime_instr_cb(target->thread.ri_cb); in s390_runtime_instr_set()
1348 static int s390_compat_regs_get(struct task_struct *target, in s390_compat_regs_get() argument
1354 if (target == current) in s390_compat_regs_get()
1355 save_access_regs(target->thread.acrs); in s390_compat_regs_get()
1358 membuf_store(&to, __peek_user_compat(target, n)); in s390_compat_regs_get()
1362 static int s390_compat_regs_set(struct task_struct *target, in s390_compat_regs_set() argument
1369 if (target == current) in s390_compat_regs_set()
1370 save_access_regs(target->thread.acrs); in s390_compat_regs_set()
1375 rc = __poke_user_compat(target, pos, *k++); in s390_compat_regs_set()
1386 rc = __poke_user_compat(target, pos, word); in s390_compat_regs_set()
1392 if (rc == 0 && target == current) in s390_compat_regs_set()
1393 restore_access_regs(target->thread.acrs); in s390_compat_regs_set()
1398 static int s390_compat_regs_high_get(struct task_struct *target, in s390_compat_regs_high_get() argument
1405 gprs_high = (compat_ulong_t *)task_pt_regs(target)->gprs; in s390_compat_regs_high_get()
1411 static int s390_compat_regs_high_set(struct task_struct *target, in s390_compat_regs_high_set() argument
1420 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_set()
1444 static int s390_compat_last_break_get(struct task_struct *target, in s390_compat_last_break_get() argument
1448 compat_ulong_t last_break = target->thread.last_break; in s390_compat_last_break_get()
1453 static int s390_compat_last_break_set(struct task_struct *target, in s390_compat_last_break_set() argument