Lines Matching refs:target
50 static void init_fp_ctx(struct task_struct *target) in init_fp_ctx() argument
53 if (tsk_used_math(target)) in init_fp_ctx()
57 memset(&target->thread.fpu.fpr, ~0, sizeof(target->thread.fpu.fpr)); in init_fp_ctx()
66 set_stopped_child_used_math(target); in init_fp_ctx()
289 static int gpr32_get(struct task_struct *target, in gpr32_get() argument
294 struct pt_regs *regs = task_pt_regs(target); in gpr32_get()
317 static int gpr32_set(struct task_struct *target, in gpr32_set() argument
322 struct pt_regs *regs = task_pt_regs(target); in gpr32_set()
368 static int gpr64_get(struct task_struct *target, in gpr64_get() argument
373 struct pt_regs *regs = task_pt_regs(target); in gpr64_get()
396 static int gpr64_set(struct task_struct *target, in gpr64_set() argument
401 struct pt_regs *regs = task_pt_regs(target); in gpr64_set()
441 static int fpr_get(struct task_struct *target, in fpr_get() argument
452 if (sizeof(target->thread.fpu.fpr[i]) == sizeof(elf_fpreg_t)) in fpr_get()
454 &target->thread.fpu, in fpr_get()
458 fpr_val = get_fpr64(&target->thread.fpu.fpr[i], 0); in fpr_get()
469 static int fpr_set(struct task_struct *target, in fpr_set() argument
480 init_fp_ctx(target); in fpr_set()
482 if (sizeof(target->thread.fpu.fpr[i]) == sizeof(elf_fpreg_t)) in fpr_set()
484 &target->thread.fpu, in fpr_set()
493 set_fpr64(&target->thread.fpu.fpr[i], 0, fpr_val); in fpr_set()