• Home
  • Raw
  • Download

Lines Matching refs:target

474 static int hw_break_get(struct task_struct *target,  in hw_break_get()  argument
505 ret = ptrace_hbp_get_addr(note_type, target, idx, &addr); in hw_break_get()
514 ret = ptrace_hbp_get_ctrl(note_type, target, idx, &ctrl); in hw_break_get()
535 static int hw_break_set(struct task_struct *target, in hw_break_set() argument
560 ret = ptrace_hbp_set_addr(note_type, target, idx, addr); in hw_break_set()
571 ret = ptrace_hbp_set_ctrl(note_type, target, idx, ctrl); in hw_break_set()
589 static int gpr_get(struct task_struct *target, in gpr_get() argument
594 struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs; in gpr_get()
598 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
603 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set()
609 if (!valid_user_regs(&newregs, target)) in gpr_set()
612 task_pt_regs(target)->user_regs = newregs; in gpr_set()
619 static int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument
624 uregs = &target->thread.fpsimd_state.user_fpsimd; in fpr_get()
628 static int fpr_set(struct task_struct *target, const struct user_regset *regset, in fpr_set() argument
634 target->thread.fpsimd_state.user_fpsimd; in fpr_set()
640 target->thread.fpsimd_state.user_fpsimd = newstate; in fpr_set()
641 fpsimd_flush_task_state(target); in fpr_set()
645 static int tls_get(struct task_struct *target, const struct user_regset *regset, in tls_get() argument
649 unsigned long *tls = &target->thread.tp_value; in tls_get()
653 static int tls_set(struct task_struct *target, const struct user_regset *regset, in tls_set() argument
658 unsigned long tls = target->thread.tp_value; in tls_set()
664 target->thread.tp_value = tls; in tls_set()
668 static int system_call_get(struct task_struct *target, in system_call_get() argument
673 int syscallno = task_pt_regs(target)->syscallno; in system_call_get()
679 static int system_call_set(struct task_struct *target, in system_call_set() argument
684 int syscallno = task_pt_regs(target)->syscallno; in system_call_set()
691 task_pt_regs(target)->syscallno = syscallno; in system_call_set()
776 static int compat_gpr_get(struct task_struct *target, in compat_gpr_get() argument
799 reg = task_pt_regs(target)->pc; in compat_gpr_get()
802 reg = task_pt_regs(target)->pstate; in compat_gpr_get()
805 reg = task_pt_regs(target)->orig_x0; in compat_gpr_get()
808 reg = task_pt_regs(target)->regs[idx]; in compat_gpr_get()
828 static int compat_gpr_set(struct task_struct *target, in compat_gpr_set() argument
846 newregs = *task_pt_regs(target); in compat_gpr_set()
881 if (valid_user_regs(&newregs.user_regs, target)) in compat_gpr_set()
882 *task_pt_regs(target) = newregs; in compat_gpr_set()
889 static int compat_vfp_get(struct task_struct *target, in compat_vfp_get() argument
898 uregs = &target->thread.fpsimd_state.user_fpsimd; in compat_vfp_get()
916 static int compat_vfp_set(struct task_struct *target, in compat_vfp_set() argument
928 uregs = &target->thread.fpsimd_state.user_fpsimd; in compat_vfp_set()
939 fpsimd_flush_task_state(target); in compat_vfp_set()
943 static int compat_tls_get(struct task_struct *target, in compat_tls_get() argument
947 compat_ulong_t tls = (compat_ulong_t)target->thread.tp_value; in compat_tls_get()
951 static int compat_tls_set(struct task_struct *target, in compat_tls_set() argument
957 compat_ulong_t tls = target->thread.tp_value; in compat_tls_set()
963 target->thread.tp_value = tls; in compat_tls_set()