• Home
  • Raw
  • Download

Lines Matching refs:target

892 static int s390_regs_get(struct task_struct *target,  in s390_regs_get()  argument
897 if (target == current) in s390_regs_get()
898 save_access_regs(target->thread.acrs); in s390_regs_get()
903 *k++ = __peek_user(target, pos); in s390_regs_get()
910 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get()
919 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument
926 if (target == current) in s390_regs_set()
927 save_access_regs(target->thread.acrs); in s390_regs_set()
932 rc = __poke_user(target, pos, *k++); in s390_regs_set()
943 rc = __poke_user(target, pos, word); in s390_regs_set()
949 if (rc == 0 && target == current) in s390_regs_set()
950 restore_access_regs(target->thread.acrs); in s390_regs_set()
955 static int s390_fpregs_get(struct task_struct *target, in s390_fpregs_get() argument
961 if (target == current) in s390_fpregs_get()
964 fp_regs.fpc = target->thread.fpu.fpc; in s390_fpregs_get()
965 fpregs_store(&fp_regs, &target->thread.fpu); in s390_fpregs_get()
971 static int s390_fpregs_set(struct task_struct *target, in s390_fpregs_set() argument
979 if (target == current) in s390_fpregs_set()
983 convert_vx_to_fp(fprs, target->thread.fpu.vxrs); in s390_fpregs_set()
985 memcpy(&fprs, target->thread.fpu.fprs, sizeof(fprs)); in s390_fpregs_set()
989 u32 ufpc[2] = { target->thread.fpu.fpc, 0 }; in s390_fpregs_set()
996 target->thread.fpu.fpc = ufpc[0]; in s390_fpregs_set()
1006 convert_fp_to_vx(target->thread.fpu.vxrs, fprs); in s390_fpregs_set()
1008 memcpy(target->thread.fpu.fprs, &fprs, sizeof(fprs)); in s390_fpregs_set()
1013 static int s390_last_break_get(struct task_struct *target, in s390_last_break_get() argument
1021 *k = target->thread.last_break; in s390_last_break_get()
1024 if (__put_user(target->thread.last_break, u)) in s390_last_break_get()
1031 static int s390_last_break_set(struct task_struct *target, in s390_last_break_set() argument
1039 static int s390_tdb_get(struct task_struct *target, in s390_tdb_get() argument
1044 struct pt_regs *regs = task_pt_regs(target); in s390_tdb_get()
1049 data = target->thread.trap_tdb; in s390_tdb_get()
1053 static int s390_tdb_set(struct task_struct *target, in s390_tdb_set() argument
1061 static int s390_vxrs_low_get(struct task_struct *target, in s390_vxrs_low_get() argument
1071 if (target == current) in s390_vxrs_low_get()
1074 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_get()
1078 static int s390_vxrs_low_set(struct task_struct *target, in s390_vxrs_low_set() argument
1088 if (target == current) in s390_vxrs_low_set()
1092 vxrs[i] = *((__u64 *)(target->thread.fpu.vxrs + i) + 1); in s390_vxrs_low_set()
1097 *((__u64 *)(target->thread.fpu.vxrs + i) + 1) = vxrs[i]; in s390_vxrs_low_set()
1102 static int s390_vxrs_high_get(struct task_struct *target, in s390_vxrs_high_get() argument
1111 if (target == current) in s390_vxrs_high_get()
1113 memcpy(vxrs, target->thread.fpu.vxrs + __NUM_VXRS_LOW, sizeof(vxrs)); in s390_vxrs_high_get()
1118 static int s390_vxrs_high_set(struct task_struct *target, in s390_vxrs_high_set() argument
1127 if (target == current) in s390_vxrs_high_set()
1131 target->thread.fpu.vxrs + __NUM_VXRS_LOW, 0, -1); in s390_vxrs_high_set()
1135 static int s390_system_call_get(struct task_struct *target, in s390_system_call_get() argument
1140 unsigned int *data = &target->thread.system_call; in s390_system_call_get()
1145 static int s390_system_call_set(struct task_struct *target, in s390_system_call_set() argument
1150 unsigned int *data = &target->thread.system_call; in s390_system_call_set()
1155 static int s390_gs_cb_get(struct task_struct *target, in s390_gs_cb_get() argument
1160 struct gs_cb *data = target->thread.gs_cb; in s390_gs_cb_get()
1166 if (target == current) in s390_gs_cb_get()
1172 static int s390_gs_cb_set(struct task_struct *target, in s390_gs_cb_set() argument
1182 if (!target->thread.gs_cb) { in s390_gs_cb_set()
1187 if (!target->thread.gs_cb) in s390_gs_cb_set()
1189 else if (target == current) in s390_gs_cb_set()
1192 gs_cb = *target->thread.gs_cb; in s390_gs_cb_set()
1200 if (!target->thread.gs_cb) in s390_gs_cb_set()
1201 target->thread.gs_cb = data; in s390_gs_cb_set()
1202 *target->thread.gs_cb = gs_cb; in s390_gs_cb_set()
1203 if (target == current) { in s390_gs_cb_set()
1205 restore_gs_cb(target->thread.gs_cb); in s390_gs_cb_set()
1211 static int s390_gs_bc_get(struct task_struct *target, in s390_gs_bc_get() argument
1216 struct gs_cb *data = target->thread.gs_bc_cb; in s390_gs_bc_get()
1226 static int s390_gs_bc_set(struct task_struct *target, in s390_gs_bc_set() argument
1231 struct gs_cb *data = target->thread.gs_bc_cb; in s390_gs_bc_set()
1239 target->thread.gs_bc_cb = data; in s390_gs_bc_set()
1272 static int s390_runtime_instr_get(struct task_struct *target, in s390_runtime_instr_get() argument
1277 struct runtime_instr_cb *data = target->thread.ri_cb; in s390_runtime_instr_get()
1288 static int s390_runtime_instr_set(struct task_struct *target, in s390_runtime_instr_set() argument
1299 if (!target->thread.ri_cb) { in s390_runtime_instr_set()
1305 if (target->thread.ri_cb) { in s390_runtime_instr_set()
1306 if (target == current) in s390_runtime_instr_set()
1309 ri_cb = *target->thread.ri_cb; in s390_runtime_instr_set()
1325 if (!target->thread.ri_cb) in s390_runtime_instr_set()
1326 target->thread.ri_cb = data; in s390_runtime_instr_set()
1327 *target->thread.ri_cb = ri_cb; in s390_runtime_instr_set()
1328 if (target == current) in s390_runtime_instr_set()
1329 load_runtime_instr_cb(target->thread.ri_cb); in s390_runtime_instr_set()
1426 static int s390_compat_regs_get(struct task_struct *target, in s390_compat_regs_get() argument
1431 if (target == current) in s390_compat_regs_get()
1432 save_access_regs(target->thread.acrs); in s390_compat_regs_get()
1437 *k++ = __peek_user_compat(target, pos); in s390_compat_regs_get()
1444 if (__put_user(__peek_user_compat(target, pos), u++)) in s390_compat_regs_get()
1453 static int s390_compat_regs_set(struct task_struct *target, in s390_compat_regs_set() argument
1460 if (target == current) in s390_compat_regs_set()
1461 save_access_regs(target->thread.acrs); in s390_compat_regs_set()
1466 rc = __poke_user_compat(target, pos, *k++); in s390_compat_regs_set()
1477 rc = __poke_user_compat(target, pos, word); in s390_compat_regs_set()
1483 if (rc == 0 && target == current) in s390_compat_regs_set()
1484 restore_access_regs(target->thread.acrs); in s390_compat_regs_set()
1489 static int s390_compat_regs_high_get(struct task_struct *target, in s390_compat_regs_high_get() argument
1497 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_get()
1517 static int s390_compat_regs_high_set(struct task_struct *target, in s390_compat_regs_high_set() argument
1526 &task_pt_regs(target)->gprs[pos / sizeof(compat_ulong_t)]; in s390_compat_regs_high_set()
1550 static int s390_compat_last_break_get(struct task_struct *target, in s390_compat_last_break_get() argument
1558 last_break = target->thread.last_break; in s390_compat_last_break_get()
1571 static int s390_compat_last_break_set(struct task_struct *target, in s390_compat_last_break_set() argument