Lines Matching refs:target

264 static int gpr_get(struct task_struct *target, const struct user_regset *regset,  in gpr_get()  argument
270 if (target->thread.regs == NULL) in gpr_get()
273 if (!FULL_REGS(target->thread.regs)) { in gpr_get()
276 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr_get()
280 target->thread.regs, in gpr_get()
283 unsigned long msr = get_user_msr(target); in gpr_get()
295 &target->thread.regs->orig_gpr3, in gpr_get()
305 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
312 if (target->thread.regs == NULL) in gpr_set()
315 CHECK_FULL_REGS(target->thread.regs); in gpr_set()
318 target->thread.regs, in gpr_set()
326 ret = set_user_msr(target, reg); in gpr_set()
334 &target->thread.regs->orig_gpr3, in gpr_set()
349 ret = set_user_trap(target, reg); in gpr_set()
360 static int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument
368 flush_fp_to_thread(target); in fpr_get()
373 buf[i] = target->thread.TS_FPR(i); in fpr_get()
374 buf[32] = target->thread.fp_state.fpscr; in fpr_get()
382 &target->thread.fp_state, 0, -1); in fpr_get()
386 static int fpr_set(struct task_struct *target, const struct user_regset *regset, in fpr_set() argument
394 flush_fp_to_thread(target); in fpr_set()
402 target->thread.TS_FPR(i) = buf[i]; in fpr_set()
403 target->thread.fp_state.fpscr = buf[32]; in fpr_set()
410 &target->thread.fp_state, 0, -1); in fpr_set()
428 static int vr_active(struct task_struct *target, in vr_active() argument
431 flush_altivec_to_thread(target); in vr_active()
432 return target->thread.used_vr ? regset->n : 0; in vr_active()
435 static int vr_get(struct task_struct *target, const struct user_regset *regset, in vr_get() argument
441 flush_altivec_to_thread(target); in vr_get()
447 &target->thread.vr_state, 0, in vr_get()
458 vrsave.word = target->thread.vrsave; in vr_get()
466 static int vr_set(struct task_struct *target, const struct user_regset *regset, in vr_set() argument
472 flush_altivec_to_thread(target); in vr_set()
478 &target->thread.vr_state, 0, in vr_set()
489 vrsave.word = target->thread.vrsave; in vr_set()
493 target->thread.vrsave = vrsave.word; in vr_set()
507 static int vsr_active(struct task_struct *target, in vsr_active() argument
510 flush_vsx_to_thread(target); in vsr_active()
511 return target->thread.used_vsr ? regset->n : 0; in vsr_active()
514 static int vsr_get(struct task_struct *target, const struct user_regset *regset, in vsr_get() argument
521 flush_vsx_to_thread(target); in vsr_get()
524 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_get()
531 static int vsr_set(struct task_struct *target, const struct user_regset *regset, in vsr_set() argument
538 flush_vsx_to_thread(target); in vsr_set()
543 target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in vsr_set()
562 static int evr_active(struct task_struct *target, in evr_active() argument
565 flush_spe_to_thread(target); in evr_active()
566 return target->thread.used_spe ? regset->n : 0; in evr_active()
569 static int evr_get(struct task_struct *target, const struct user_regset *regset, in evr_get() argument
575 flush_spe_to_thread(target); in evr_get()
578 &target->thread.evr, in evr_get()
579 0, sizeof(target->thread.evr)); in evr_get()
586 &target->thread.acc, in evr_get()
587 sizeof(target->thread.evr), -1); in evr_get()
592 static int evr_set(struct task_struct *target, const struct user_regset *regset, in evr_set() argument
598 flush_spe_to_thread(target); in evr_set()
601 &target->thread.evr, in evr_set()
602 0, sizeof(target->thread.evr)); in evr_set()
609 &target->thread.acc, in evr_set()
610 sizeof(target->thread.evr), -1); in evr_set()
676 static int gpr32_get(struct task_struct *target, in gpr32_get() argument
681 const unsigned long *regs = &target->thread.regs->gpr[0]; in gpr32_get()
687 if (target->thread.regs == NULL) in gpr32_get()
690 if (!FULL_REGS(target->thread.regs)) { in gpr32_get()
693 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr32_get()
708 reg = get_user_msr(target); in gpr32_get()
733 static int gpr32_set(struct task_struct *target, in gpr32_set() argument
738 unsigned long *regs = &target->thread.regs->gpr[0]; in gpr32_set()
743 if (target->thread.regs == NULL) in gpr32_set()
746 CHECK_FULL_REGS(target->thread.regs); in gpr32_set()
767 set_user_msr(target, reg); in gpr32_set()
793 set_user_trap(target, reg); in gpr32_set()