Lines Matching refs:target

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