Lines Matching refs:__user

55 _save_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
57 _restore_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
59 _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
61 _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
63 _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
65 _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
68 extern asmlinkage int _save_lbt_context(void __user *regs, void __user *eflags);
69 extern asmlinkage int _restore_lbt_context(void __user *regs, void __user *eflags);
70 extern asmlinkage int _save_ftop_context(void __user *ftop);
71 extern asmlinkage int _restore_ftop_context(void __user *ftop);
94 static void __user *get_ctx_through_ctxinfo(struct sctx_info *info) in get_ctx_through_ctxinfo()
96 return (void __user *)((char *)info + sizeof(struct sctx_info)); in get_ctx_through_ctxinfo()
103 static int copy_fpu_to_sigcontext(struct fpu_context __user *ctx) in copy_fpu_to_sigcontext()
107 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_fpu_to_sigcontext()
108 uint64_t __user *fcc = &ctx->fcc; in copy_fpu_to_sigcontext()
109 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext()
122 static int copy_fpu_from_sigcontext(struct fpu_context __user *ctx) in copy_fpu_from_sigcontext()
127 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_fpu_from_sigcontext()
128 uint64_t __user *fcc = &ctx->fcc; in copy_fpu_from_sigcontext()
129 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext()
141 static int copy_lsx_to_sigcontext(struct lsx_context __user *ctx) in copy_lsx_to_sigcontext()
145 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_lsx_to_sigcontext()
146 uint64_t __user *fcc = &ctx->fcc; in copy_lsx_to_sigcontext()
147 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_to_sigcontext()
161 static int copy_lsx_from_sigcontext(struct lsx_context __user *ctx) in copy_lsx_from_sigcontext()
166 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_lsx_from_sigcontext()
167 uint64_t __user *fcc = &ctx->fcc; in copy_lsx_from_sigcontext()
168 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_from_sigcontext()
182 static int copy_lasx_to_sigcontext(struct lasx_context __user *ctx) in copy_lasx_to_sigcontext()
186 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_lasx_to_sigcontext()
187 uint64_t __user *fcc = &ctx->fcc; in copy_lasx_to_sigcontext()
188 uint32_t __user *fcsr = &ctx->fcsr; in copy_lasx_to_sigcontext()
206 static int copy_lasx_from_sigcontext(struct lasx_context __user *ctx) in copy_lasx_from_sigcontext()
211 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_lasx_from_sigcontext()
212 uint64_t __user *fcc = &ctx->fcc; in copy_lasx_from_sigcontext()
213 uint32_t __user *fcsr = &ctx->fcsr; in copy_lasx_from_sigcontext()
232 static int copy_lbt_to_sigcontext(struct lbt_context __user *ctx) in copy_lbt_to_sigcontext()
235 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_lbt_to_sigcontext()
236 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in copy_lbt_to_sigcontext()
247 static int copy_lbt_from_sigcontext(struct lbt_context __user *ctx) in copy_lbt_from_sigcontext()
250 uint64_t __user *regs = (uint64_t *)&ctx->regs; in copy_lbt_from_sigcontext()
251 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in copy_lbt_from_sigcontext()
262 static int copy_ftop_to_sigcontext(struct lbt_context __user *ctx) in copy_ftop_to_sigcontext()
264 uint32_t __user *ftop = &ctx->ftop; in copy_ftop_to_sigcontext()
269 static int copy_ftop_from_sigcontext(struct lbt_context __user *ctx) in copy_ftop_from_sigcontext()
271 uint32_t __user *ftop = &ctx->ftop; in copy_ftop_from_sigcontext()
280 static int save_hw_fpu_context(struct fpu_context __user *ctx) in save_hw_fpu_context()
282 uint64_t __user *regs = (uint64_t *)&ctx->regs; in save_hw_fpu_context()
283 uint64_t __user *fcc = &ctx->fcc; in save_hw_fpu_context()
284 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_fpu_context()
289 static int restore_hw_fpu_context(struct fpu_context __user *ctx) in restore_hw_fpu_context()
291 uint64_t __user *regs = (uint64_t *)&ctx->regs; in restore_hw_fpu_context()
292 uint64_t __user *fcc = &ctx->fcc; in restore_hw_fpu_context()
293 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_fpu_context()
298 static int save_hw_lsx_context(struct lsx_context __user *ctx) in save_hw_lsx_context()
300 uint64_t __user *regs = (uint64_t *)&ctx->regs; in save_hw_lsx_context()
301 uint64_t __user *fcc = &ctx->fcc; in save_hw_lsx_context()
302 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_lsx_context()
307 static int restore_hw_lsx_context(struct lsx_context __user *ctx) in restore_hw_lsx_context()
309 uint64_t __user *regs = (uint64_t *)&ctx->regs; in restore_hw_lsx_context()
310 uint64_t __user *fcc = &ctx->fcc; in restore_hw_lsx_context()
311 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_lsx_context()
316 static int save_hw_lasx_context(struct lasx_context __user *ctx) in save_hw_lasx_context()
318 uint64_t __user *regs = (uint64_t *)&ctx->regs; in save_hw_lasx_context()
319 uint64_t __user *fcc = &ctx->fcc; in save_hw_lasx_context()
320 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_lasx_context()
325 static int restore_hw_lasx_context(struct lasx_context __user *ctx) in restore_hw_lasx_context()
327 uint64_t __user *regs = (uint64_t *)&ctx->regs; in restore_hw_lasx_context()
328 uint64_t __user *fcc = &ctx->fcc; in restore_hw_lasx_context()
329 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_lasx_context()
338 static int save_hw_lbt_context(struct lbt_context __user *ctx) in save_hw_lbt_context()
340 uint64_t __user *regs = (uint64_t *)&ctx->regs; in save_hw_lbt_context()
341 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in save_hw_lbt_context()
346 static int restore_hw_lbt_context(struct lbt_context __user *ctx) in restore_hw_lbt_context()
348 uint64_t __user *regs = (uint64_t *)&ctx->regs; in restore_hw_lbt_context()
349 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in restore_hw_lbt_context()
354 static int save_hw_ftop_context(struct lbt_context __user *ctx) in save_hw_ftop_context()
356 uint32_t __user *ftop = &ctx->ftop; in save_hw_ftop_context()
361 static int restore_hw_ftop_context(struct lbt_context __user *ctx) in restore_hw_ftop_context()
363 uint32_t __user *ftop = &ctx->ftop; in restore_hw_ftop_context()
369 static int fcsr_pending(unsigned int __user *fcsr) in fcsr_pending()
394 struct sctx_info __user *info = extctx->fpu.addr; in protected_save_fpu_context()
395 struct fpu_context __user *fpu_ctx = (struct fpu_context *)get_ctx_through_ctxinfo(info); in protected_save_fpu_context()
396 uint64_t __user *regs = (uint64_t *)&fpu_ctx->regs; in protected_save_fpu_context()
397 uint64_t __user *fcc = &fpu_ctx->fcc; in protected_save_fpu_context()
398 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_save_fpu_context()
428 struct sctx_info __user *info = extctx->fpu.addr; in protected_restore_fpu_context()
429 struct fpu_context __user *fpu_ctx = (struct fpu_context *)get_ctx_through_ctxinfo(info); in protected_restore_fpu_context()
430 uint64_t __user *regs = (uint64_t *)&fpu_ctx->regs; in protected_restore_fpu_context()
431 uint64_t __user *fcc = &fpu_ctx->fcc; in protected_restore_fpu_context()
432 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_restore_fpu_context()
463 struct sctx_info __user *info = extctx->lsx.addr; in protected_save_lsx_context()
464 struct lsx_context __user *lsx_ctx = (struct lsx_context *)get_ctx_through_ctxinfo(info); in protected_save_lsx_context()
465 uint64_t __user *regs = (uint64_t *)&lsx_ctx->regs; in protected_save_lsx_context()
466 uint64_t __user *fcc = &lsx_ctx->fcc; in protected_save_lsx_context()
467 uint32_t __user *fcsr = &lsx_ctx->fcsr; in protected_save_lsx_context()
500 struct sctx_info __user *info = extctx->lsx.addr; in protected_restore_lsx_context()
501 struct lsx_context __user *lsx_ctx = (struct lsx_context *)get_ctx_through_ctxinfo(info); in protected_restore_lsx_context()
502 uint64_t __user *regs = (uint64_t *)&lsx_ctx->regs; in protected_restore_lsx_context()
503 uint64_t __user *fcc = &lsx_ctx->fcc; in protected_restore_lsx_context()
504 uint32_t __user *fcsr = &lsx_ctx->fcsr; in protected_restore_lsx_context()
538 struct sctx_info __user *info = extctx->lasx.addr; in protected_save_lasx_context()
539 struct lasx_context __user *lasx_ctx = in protected_save_lasx_context()
541 uint64_t __user *regs = (uint64_t *)&lasx_ctx->regs; in protected_save_lasx_context()
542 uint64_t __user *fcc = &lasx_ctx->fcc; in protected_save_lasx_context()
543 uint32_t __user *fcsr = &lasx_ctx->fcsr; in protected_save_lasx_context()
578 struct sctx_info __user *info = extctx->lasx.addr; in protected_restore_lasx_context()
579 struct lasx_context __user *lasx_ctx = in protected_restore_lasx_context()
581 uint64_t __user *regs = (uint64_t *)&lasx_ctx->regs; in protected_restore_lasx_context()
582 uint64_t __user *fcc = &lasx_ctx->fcc; in protected_restore_lasx_context()
583 uint32_t __user *fcsr = &lasx_ctx->fcsr; in protected_restore_lasx_context()
620 struct sctx_info __user *info = extctx->lbt.addr; in protected_save_lbt_context()
621 struct lbt_context __user *lbt_ctx = in protected_save_lbt_context()
623 uint64_t __user *regs = (uint64_t *)&lbt_ctx->regs; in protected_save_lbt_context()
624 uint32_t __user *eflags = (uint32_t *)&lbt_ctx->eflags; in protected_save_lbt_context()
656 struct sctx_info __user *info = extctx->lbt.addr; in protected_restore_lbt_context()
657 struct lbt_context __user *lbt_ctx = in protected_restore_lbt_context()
659 uint64_t __user *regs = (uint64_t *)&lbt_ctx->regs; in protected_restore_lbt_context()
660 uint32_t __user *eflags = (uint32_t *)&lbt_ctx->eflags; in protected_restore_lbt_context()
687 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, in setup_sigcontext()
691 struct sctx_info __user *info; in setup_sigcontext()
720 static int parse_extcontext(struct sigcontext __user *sc, struct extctx_layout *extctx) in parse_extcontext()
724 struct sctx_info __user *info = (struct sctx_info __user *)&sc->sc_extcontext; in parse_extcontext()
778 static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext()
895 static void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, in get_sigframe()
909 return (void __user __force *)(-1UL); in get_sigframe()
919 return (void __user *)sp; in get_sigframe()
931 struct rt_sigframe __user *frame; in SYSCALL_DEFINE0()
934 frame = (struct rt_sigframe __user *)regs->regs[3]; in SYSCALL_DEFINE0()
964 struct rt_sigframe __user *frame; in setup_rt_frame()