Lines Matching refs:target

217 static int gpr32_get(struct task_struct *target,
221 struct pt_regs *regs = task_pt_regs(target);
228 static int gpr32_set(struct task_struct *target,
233 struct pt_regs *regs = task_pt_regs(target);
273 mips_syscall_update_nr(target, regs);
282 static int gpr64_get(struct task_struct *target,
286 struct pt_regs *regs = task_pt_regs(target);
293 static int gpr64_set(struct task_struct *target,
298 struct pt_regs *regs = task_pt_regs(target);
334 mips_syscall_update_nr(target, regs);
413 static void fpr_get_fpa(struct task_struct *target,
416 membuf_write(to, &target->thread.fpu,
426 static void fpr_get_msa(struct task_struct *target, struct membuf *to)
432 membuf_store(to, get_fpr64(&target->thread.fpu.fpr[i], 0));
440 static int fpr_get(struct task_struct *target,
444 if (sizeof(target->thread.fpu.fpr[0]) == sizeof(elf_fpreg_t))
445 fpr_get_fpa(target, &to);
447 fpr_get_msa(target, &to);
449 membuf_write(&to, &target->thread.fpu.fcr31, sizeof(u32));
459 static int fpr_set_fpa(struct task_struct *target,
464 &target->thread.fpu,
474 static int fpr_set_msa(struct task_struct *target,
489 set_fpr64(&target->thread.fpu.fpr[i], 0, fpr_val);
507 static int fpr_set(struct task_struct *target,
522 init_fp_ctx(target);
524 if (sizeof(target->thread.fpu.fpr[0]) == sizeof(elf_fpreg_t))
525 err = fpr_set_fpa(target, &pos, &count, &kbuf, &ubuf);
527 err = fpr_set_msa(target, &pos, &count, &kbuf, &ubuf);
538 ptrace_setfcr31(target, fcr31);
551 static int fp_mode_get(struct task_struct *target,
555 return membuf_store(&to, (int)mips_get_process_fp_mode(target));
567 static int fp_mode_set(struct task_struct *target,
586 err = mips_set_process_fp_mode(target, fp_mode);
602 static void copy_pad_fprs(struct task_struct *target,
616 membuf_write(to, &target->thread.fpu.fpr[i], cp_sz);
622 static int msa_get(struct task_struct *target,
629 .fcsr = target->thread.fpu.fcr31,
631 .msacsr = target->thread.fpu.msacsr,
634 if (!tsk_used_math(target)) {
636 copy_pad_fprs(target, regset, &to, 0);
637 } else if (!test_tsk_thread_flag(target, TIF_MSA_CTX_LIVE)) {
639 copy_pad_fprs(target, regset, &to, 8);
640 } else if (sizeof(target->thread.fpu.fpr[0]) == regset->size) {
642 membuf_write(&to, &target->thread.fpu.fpr, wr_size);
645 copy_pad_fprs(target, regset, &to,
646 sizeof(target->thread.fpu.fpr[0]));
652 static int msa_set(struct task_struct *target,
662 init_fp_ctx(target);
664 if (sizeof(target->thread.fpu.fpr[0]) == regset->size) {
667 &target->thread.fpu.fpr,
672 sizeof(target->thread.fpu.fpr[0]));
677 &target->thread.fpu.fpr[i],
686 target->thread.fpu.fcr31 = ctrl_regs.fcsr & ~FPU_CSR_ALL_X;
687 target->thread.fpu.msacsr = ctrl_regs.msacsr & ~MSA_CSR_CAUSEF;
700 static int dsp32_get(struct task_struct *target,
713 dspregs[i] = target->thread.dsp.dspr[i];
714 dspregs[NUM_DSP_REGS] = target->thread.dsp.dspcontrol;
721 static int dsp32_set(struct task_struct *target,
749 target->thread.dsp.dspr[i] = (s32)dspregs[i];
752 target->thread.dsp.dspcontrol = (s32)dspregs[i];
766 static int dsp64_get(struct task_struct *target,
779 dspregs[i] = target->thread.dsp.dspr[i];
780 dspregs[NUM_DSP_REGS] = target->thread.dsp.dspcontrol;
787 static int dsp64_set(struct task_struct *target,
815 target->thread.dsp.dspr[i] = dspregs[i];
818 target->thread.dsp.dspcontrol = dspregs[i];
830 static int dsp_active(struct task_struct *target,