Lines Matching refs:target
23 int regset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_fpregs_active() argument
28 int regset_xregset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_xregset_fpregs_active() argument
71 int xfpregs_get(struct task_struct *target, const struct user_regset *regset, in xfpregs_get() argument
74 struct fpu *fpu = x86_task_fpu(target); in xfpregs_get()
86 copy_xstate_to_uabi_buf(to, target, XSTATE_COPY_FX); in xfpregs_get()
90 int xfpregs_set(struct task_struct *target, const struct user_regset *regset, in xfpregs_set() argument
94 struct fpu *fpu = x86_task_fpu(target); in xfpregs_set()
130 int xstateregs_get(struct task_struct *target, const struct user_regset *regset, in xstateregs_get() argument
136 sync_fpstate(x86_task_fpu(target)); in xstateregs_get()
138 copy_xstate_to_uabi_buf(to, target, XSTATE_COPY_XSAVE); in xstateregs_get()
142 int xstateregs_set(struct task_struct *target, const struct user_regset *regset, in xstateregs_set() argument
146 struct fpu *fpu = x86_task_fpu(target); in xstateregs_set()
171 ret = copy_uabi_from_kernel_to_xstate(fpu->fpstate, kbuf ?: tmpbuf, &target->thread.pkru); in xstateregs_set()
179 int ssp_active(struct task_struct *target, const struct user_regset *regset) in ssp_active() argument
181 if (target->thread.features & ARCH_SHSTK_SHSTK) in ssp_active()
187 int ssp_get(struct task_struct *target, const struct user_regset *regset, in ssp_get() argument
190 struct fpu *fpu = x86_task_fpu(target); in ssp_get()
194 !ssp_active(target, regset)) in ssp_get()
213 int ssp_set(struct task_struct *target, const struct user_regset *regset, in ssp_set() argument
217 struct fpu *fpu = x86_task_fpu(target); in ssp_set()
224 !ssp_active(target, regset)) in ssp_set()
401 int fpregs_get(struct task_struct *target, const struct user_regset *regset, in fpregs_get() argument
404 struct fpu *fpu = x86_task_fpu(target); in fpregs_get()
411 return fpregs_soft_get(target, regset, to); in fpregs_get()
422 copy_xstate_to_uabi_buf(mb, target, XSTATE_COPY_FP); in fpregs_get()
428 __convert_from_fxsr(&env, target, fx); in fpregs_get()
432 int fpregs_set(struct task_struct *target, const struct user_regset *regset, in fpregs_set() argument
436 struct fpu *fpu = x86_task_fpu(target); in fpregs_set()
445 return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf); in fpregs_set()