Lines Matching refs:target

229 static int gpr_get(struct task_struct *target, const struct user_regset *regset,  in gpr_get()  argument
235 if (target->thread.regs == NULL) in gpr_get()
238 if (!FULL_REGS(target->thread.regs)) { in gpr_get()
241 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr_get()
245 target->thread.regs, in gpr_get()
248 unsigned long msr = get_user_msr(target); in gpr_get()
260 &target->thread.regs->orig_gpr3, in gpr_get()
270 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
277 if (target->thread.regs == NULL) in gpr_set()
280 CHECK_FULL_REGS(target->thread.regs); in gpr_set()
283 target->thread.regs, in gpr_set()
291 ret = set_user_msr(target, reg); in gpr_set()
299 &target->thread.regs->orig_gpr3, in gpr_set()
314 ret = set_user_trap(target, reg); in gpr_set()
325 static int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument
333 flush_fp_to_thread(target); in fpr_get()
338 buf[i] = target->thread.TS_FPR(i); in fpr_get()
339 memcpy(&buf[32], &target->thread.fpscr, sizeof(double)); in fpr_get()
347 &target->thread.fpr, 0, -1); in fpr_get()
351 static int fpr_set(struct task_struct *target, const struct user_regset *regset, in fpr_set() argument
359 flush_fp_to_thread(target); in fpr_set()
367 target->thread.TS_FPR(i) = buf[i]; in fpr_set()
368 memcpy(&target->thread.fpscr, &buf[32], sizeof(double)); in fpr_set()
375 &target->thread.fpr, 0, -1); in fpr_set()
393 static int vr_active(struct task_struct *target, in vr_active() argument
396 flush_altivec_to_thread(target); in vr_active()
397 return target->thread.used_vr ? regset->n : 0; in vr_active()
400 static int vr_get(struct task_struct *target, const struct user_regset *regset, in vr_get() argument
406 flush_altivec_to_thread(target); in vr_get()
412 &target->thread.vr, 0, in vr_get()
423 vrsave.word = target->thread.vrsave; in vr_get()
431 static int vr_set(struct task_struct *target, const struct user_regset *regset, in vr_set() argument
437 flush_altivec_to_thread(target); in vr_set()
443 &target->thread.vr, 0, 33 * sizeof(vector128)); in vr_set()
453 vrsave.word = target->thread.vrsave; in vr_set()
457 target->thread.vrsave = vrsave.word; in vr_set()
471 static int vsr_active(struct task_struct *target, in vsr_active() argument
474 flush_vsx_to_thread(target); in vsr_active()
475 return target->thread.used_vsr ? regset->n : 0; in vsr_active()
478 static int vsr_get(struct task_struct *target, const struct user_regset *regset, in vsr_get() argument
485 flush_vsx_to_thread(target); in vsr_get()
488 buf[i] = target->thread.fpr[i][TS_VSRLOWOFFSET]; in vsr_get()
495 static int vsr_set(struct task_struct *target, const struct user_regset *regset, in vsr_set() argument
502 flush_vsx_to_thread(target); in vsr_set()
507 target->thread.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in vsr_set()
526 static int evr_active(struct task_struct *target, in evr_active() argument
529 flush_spe_to_thread(target); in evr_active()
530 return target->thread.used_spe ? regset->n : 0; in evr_active()
533 static int evr_get(struct task_struct *target, const struct user_regset *regset, in evr_get() argument
539 flush_spe_to_thread(target); in evr_get()
542 &target->thread.evr, in evr_get()
543 0, sizeof(target->thread.evr)); in evr_get()
550 &target->thread.acc, in evr_get()
551 sizeof(target->thread.evr), -1); in evr_get()
556 static int evr_set(struct task_struct *target, const struct user_regset *regset, in evr_set() argument
562 flush_spe_to_thread(target); in evr_set()
565 &target->thread.evr, in evr_set()
566 0, sizeof(target->thread.evr)); in evr_set()
573 &target->thread.acc, in evr_set()
574 sizeof(target->thread.evr), -1); in evr_set()
640 static int gpr32_get(struct task_struct *target, in gpr32_get() argument
645 const unsigned long *regs = &target->thread.regs->gpr[0]; in gpr32_get()
651 if (target->thread.regs == NULL) in gpr32_get()
654 if (!FULL_REGS(target->thread.regs)) { in gpr32_get()
657 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr32_get()
672 reg = get_user_msr(target); in gpr32_get()
697 static int gpr32_set(struct task_struct *target, in gpr32_set() argument
702 unsigned long *regs = &target->thread.regs->gpr[0]; in gpr32_set()
707 if (target->thread.regs == NULL) in gpr32_set()
710 CHECK_FULL_REGS(target->thread.regs); in gpr32_set()
731 set_user_msr(target, reg); in gpr32_set()
757 set_user_trap(target, reg); in gpr32_set()