Lines Matching refs:__user

50 _save_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
52 _restore_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
71 static void __user *get_ctx_through_ctxinfo(struct sctx_info *info) in get_ctx_through_ctxinfo()
73 return (void __user *)((char *)info + sizeof(struct sctx_info)); in get_ctx_through_ctxinfo()
80 static int copy_fpu_to_sigcontext(struct fpu_context __user *ctx) in copy_fpu_to_sigcontext()
84 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_fpu_to_sigcontext()
85 uint64_t __user *fcc = &ctx->fcc; in copy_fpu_to_sigcontext()
86 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext()
99 static int copy_fpu_from_sigcontext(struct fpu_context __user *ctx) in copy_fpu_from_sigcontext()
104 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_fpu_from_sigcontext()
105 uint64_t __user *fcc = &ctx->fcc; in copy_fpu_from_sigcontext()
106 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext()
121 static int save_hw_fpu_context(struct fpu_context __user *ctx) in save_hw_fpu_context()
123 uint64_t __user *regs = (uint64_t *)&ctx->regs; in save_hw_fpu_context()
124 uint64_t __user *fcc = &ctx->fcc; in save_hw_fpu_context()
125 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_fpu_context()
130 static int restore_hw_fpu_context(struct fpu_context __user *ctx) in restore_hw_fpu_context()
132 uint64_t __user *regs = (uint64_t *)&ctx->regs; in restore_hw_fpu_context()
133 uint64_t __user *fcc = &ctx->fcc; in restore_hw_fpu_context()
134 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_fpu_context()
139 static int fcsr_pending(unsigned int __user *fcsr) in fcsr_pending()
164 struct sctx_info __user *info = extctx->fpu.addr; in protected_save_fpu_context()
165 struct fpu_context __user *fpu_ctx = (struct fpu_context *)get_ctx_through_ctxinfo(info); in protected_save_fpu_context()
166 uint64_t __user *regs = (uint64_t *)&fpu_ctx->regs; in protected_save_fpu_context()
167 uint64_t __user *fcc = &fpu_ctx->fcc; in protected_save_fpu_context()
168 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_save_fpu_context()
198 struct sctx_info __user *info = extctx->fpu.addr; in protected_restore_fpu_context()
199 struct fpu_context __user *fpu_ctx = (struct fpu_context *)get_ctx_through_ctxinfo(info); in protected_restore_fpu_context()
200 uint64_t __user *regs = (uint64_t *)&fpu_ctx->regs; in protected_restore_fpu_context()
201 uint64_t __user *fcc = &fpu_ctx->fcc; in protected_restore_fpu_context()
202 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_restore_fpu_context()
230 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, in setup_sigcontext()
234 struct sctx_info __user *info; in setup_sigcontext()
254 static int parse_extcontext(struct sigcontext __user *sc, struct extctx_layout *extctx) in parse_extcontext()
258 struct sctx_info __user *info = (struct sctx_info __user *)&sc->sc_extcontext; in parse_extcontext()
291 static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext()
386 void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, in get_sigframe()
400 return (void __user __force *)(-1UL); in get_sigframe()
410 return (void __user *)sp; in get_sigframe()
422 struct rt_sigframe __user *frame; in sys_rt_sigreturn()
425 frame = (struct rt_sigframe __user *)regs->regs[3]; in sys_rt_sigreturn()
455 struct rt_sigframe __user *frame; in setup_rt_frame()