Home
last modified time | relevance | path

Searched refs:__user (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/arch/arm/include/asm/
Dsyscalls.h15 asmlinkage long sys_oabi_stat64(const char __user * filename,
16 struct oldabi_stat64 __user * statbuf);
17 asmlinkage long sys_oabi_lstat64(const char __user * filename,
18 struct oldabi_stat64 __user * statbuf);
20 struct oldabi_stat64 __user * statbuf);
22 const char __user *filename,
23 struct oldabi_stat64 __user *statbuf,
29 struct oabi_epoll_event __user *event);
33 struct oabi_sembuf __user *tsops,
35 const struct old_timespec32 __user *timeout);
[all …]
/arch/loongarch/kernel/
Dsignal.c55 _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);
[all …]
/arch/x86/math-emu/
Dload_store.c68 void __user * data_address) in FPU_load_store()
125 FPU_load_single((float __user *)data_address, &loaded_data); in FPU_load_store()
137 FPU_load_int32((long __user *)data_address, &loaded_data); in FPU_load_store()
143 FPU_load_double((double __user *)data_address, in FPU_load_store()
156 FPU_load_int16((short __user *)data_address, &loaded_data); in FPU_load_store()
166 (st0_ptr, st0_tag, (long __user *)data_address)) in FPU_load_store()
176 (st0_ptr, st0_tag, (long long __user *)data_address)) in FPU_load_store()
186 (st0_ptr, st0_tag, (short __user *)data_address)) in FPU_load_store()
194 (float __user *)data_address); in FPU_load_store()
198 FPU_store_int32(st0_ptr, st0_tag, (long __user *)data_address); in FPU_load_store()
[all …]
Dfpu_proto.h86 extern void __user *FPU_get_address(u_char FPU_modrm, unsigned long *fpu_eip,
89 extern void __user *FPU_get_address_16(u_char FPU_modrm, unsigned long *fpu_eip,
94 void __user * data_address);
127 extern int FPU_load_extended(long double __user *s, int stnr);
128 extern int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data);
129 extern int FPU_load_single(float __user *single, FPU_REG *loaded_data);
130 extern int FPU_load_int64(long long __user *_s);
131 extern int FPU_load_int32(long __user *_s, FPU_REG *loaded_data);
132 extern int FPU_load_int16(short __user *_s, FPU_REG *loaded_data);
133 extern int FPU_load_bcd(u_char __user *s);
[all …]
Dreg_ld_str.c82 int FPU_load_extended(long double __user *s, int stnr) in FPU_load_extended()
95 int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data) in FPU_load_double()
102 FPU_get_user(m64, 1 + (unsigned long __user *)dfloat); in FPU_load_double()
103 FPU_get_user(l64, (unsigned long __user *)dfloat); in FPU_load_double()
156 int FPU_load_single(float __user *single, FPU_REG *loaded_data) in FPU_load_single()
163 FPU_get_user(m32, (unsigned long __user *)single); in FPU_load_single()
210 int FPU_load_int64(long long __user *_s) in FPU_load_int64()
240 int FPU_load_int32(long __user *_s, FPU_REG *loaded_data) in FPU_load_int32()
269 int FPU_load_int16(short __user *_s, FPU_REG *loaded_data) in FPU_load_int16()
298 int FPU_load_bcd(u_char __user *s) in FPU_load_bcd()
[all …]
/arch/powerpc/kernel/
Dsignal.h13 void __user *get_sigframe(struct ksignal *ksig, struct task_struct *tsk,
22 static inline int __get_user_sigset(sigset_t *dst, const sigset_t __user *src) in __get_user_sigset()
26 return __get_user(dst->sig[0], (u64 __user *)&src->sig[0]); in __get_user_sigset()
30 const sigset_t __user *__src = src; \
38 extern unsigned long copy_vsx_to_user(void __user *to,
40 extern unsigned long copy_ckvsx_to_user(void __user *to,
43 void __user *from);
45 void __user *from);
46 unsigned long copy_fpr_to_user(void __user *to, struct task_struct *task);
47 unsigned long copy_ckfpr_to_user(void __user *to, struct task_struct *task);
[all …]
Dsignal_32.c92 __unsafe_save_general_regs(struct pt_regs *regs, struct mcontext __user *frame) in __unsafe_save_general_regs()
113 __unsafe_restore_general_regs(struct pt_regs *regs, struct mcontext __user *sr) in __unsafe_restore_general_regs()
134 sigset_t __user *__us = uset ; \
143 #define from_user_ptr(p) ((void __user *)(p))
146 __unsafe_save_general_regs(struct pt_regs *regs, struct mcontext __user *frame) in __unsafe_save_general_regs()
156 int __unsafe_restore_general_regs(struct pt_regs *regs, struct mcontext __user *sr) in __unsafe_restore_general_regs()
268 __unsafe_save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, in __unsafe_save_user_regs()
269 struct mcontext __user *tm_frame, int ctx_has_vsx_region) in __unsafe_save_user_regs()
293 unsafe_put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32], in __unsafe_save_user_regs()
328 (u32 __user *)&frame->mc_vregs + ELF_NEVRREG, failed); in __unsafe_save_user_regs()
[all …]
/arch/s390/include/uapi/asm/
Dzcrypt.h39 __u8 __user *inputdata;
41 __u8 __user *outputdata;
43 __u8 __user *b_key;
44 __u8 __user *n_modulus;
62 __u8 __user *inputdata;
64 __u8 __user *outputdata;
66 __u8 __user *bp_key;
67 __u8 __user *bq_key;
68 __u8 __user *np_prime;
69 __u8 __user *nq_prime;
[all …]
/arch/powerpc/include/asm/
Duaccess.h39 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
63 __typeof__(*(ptr)) __user *_pu_addr = (ptr); \
129 __typeof__(*(ptr)) __user *__pus_addr = (ptr); \
203 case 1: __get_user_asm_goto(x, (u8 __user *)ptr, label, "lbz"); break; \
204 case 2: __get_user_asm_goto(x, (u16 __user *)ptr, label, "lhz"); break; \
205 case 4: __get_user_asm_goto(x, (u32 __user *)ptr, label, "lwz"); break; \
206 case 8: __get_user_asm2_goto(x, (u64 __user *)ptr, label); break; \
264 case 1: __get_user_asm(x, (u8 __user *)ptr, retval, "lbz"); break; \
265 case 2: __get_user_asm(x, (u16 __user *)ptr, retval, "lhz"); break; \
266 case 4: __get_user_asm(x, (u32 __user *)ptr, retval, "lwz"); break; \
[all …]
Dsyscalls.h44 long sys_rtas(struct rtas_args __user *uargs);
53 long sys_swapcontext(struct ucontext __user *old_ctx,
54 struct ucontext __user *new_ctx, long ctx_size);
65 long sys_debug_setcontext(struct ucontext __user *ctx, int ndbg,
66 struct sig_dbg_op __user *dbg);
72 unsigned long len, u32 __user *map);
75 long compat_sys_swapcontext(struct ucontext32 __user *old_ctx,
76 struct ucontext32 __user *new_ctx,
79 struct compat_rlimit __user *rlim);
94 char __user *ubuf, compat_size_t count,
[all …]
Dkup.h75 static __always_inline void allow_user_access(void __user *to, const void __user *from, in allow_user_access()
135 static __always_inline void allow_read_from_user(const void __user *from, unsigned long size) in allow_read_from_user()
141 static __always_inline void allow_write_to_user(void __user *to, unsigned long size) in allow_write_to_user()
146 static __always_inline void allow_read_write_user(void __user *to, const void __user *from, in allow_read_write_user()
153 static __always_inline void prevent_read_from_user(const void __user *from, unsigned long size) in prevent_read_from_user()
158 static __always_inline void prevent_write_to_user(void __user *to, unsigned long size) in prevent_write_to_user()
163 static __always_inline void prevent_read_write_user(void __user *to, const void __user *from, in prevent_read_write_user()
/arch/sparc/kernel/
Dsystbls.h15 asmlinkage long sys_getdomainname(char __user *name, int len);
36 void __user *ptr, long fifth);
47 utrap_handler_t __user *old_p,
48 utrap_handler_t __user *old_d);
52 asmlinkage long compat_sys_truncate64(const char __user * path,
59 asmlinkage long compat_sys_stat64(const char __user * filename,
60 struct compat_stat64 __user *statbuf);
61 asmlinkage long compat_sys_lstat64(const char __user * filename,
62 struct compat_stat64 __user *statbuf);
64 struct compat_stat64 __user * statbuf);
[all …]
/arch/arm/kernel/
Dsys_oabi-compat.c122 struct oldabi_stat64 __user *statbuf) in cp_oldabi_stat64()
148 asmlinkage long sys_oabi_stat64(const char __user * filename, in sys_oabi_stat64()
149 struct oldabi_stat64 __user * statbuf) in sys_oabi_stat64()
158 asmlinkage long sys_oabi_lstat64(const char __user * filename, in sys_oabi_lstat64()
159 struct oldabi_stat64 __user * statbuf) in sys_oabi_lstat64()
169 struct oldabi_stat64 __user * statbuf) in sys_oabi_fstat64()
179 const char __user *filename, in sys_oabi_fstatat64()
180 struct oldabi_stat64 __user *statbuf, in sys_oabi_fstatat64()
200 static int get_oabi_flock(struct flock64 *kernel, struct oabi_flock64 __user *arg) in get_oabi_flock()
204 if (copy_from_user(&user, (struct oabi_flock64 __user *)arg, in get_oabi_flock()
[all …]
/arch/s390/kernel/
Dcompat_linux.h81 long compat_sys_s390_truncate64(const char __user *path, u32 high, u32 low);
83 long compat_sys_s390_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, u32 high, u32…
84 long compat_sys_s390_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, u32 hi…
86 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf);
87 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf);
88 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf);
89 …ompat_sys_s390_fstatat64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user
90 long compat_sys_s390_old_mmap(struct mmap_arg_struct_emu31 __user *arg);
91 long compat_sys_s390_mmap2(struct mmap_arg_struct_emu31 __user *arg);
92 long compat_sys_s390_read(unsigned int fd, char __user *buf, compat_size_t count);
[all …]
/arch/alpha/kernel/
Dosf_sys.c105 struct osf_dirent __user *dirent;
106 long __user *basep;
115 struct osf_dirent __user *dirent; in osf_filldir()
141 dirent = (void __user *)dirent + reclen; in osf_filldir()
151 struct osf_dirent __user *, dirent, unsigned int, count, in SYSCALL_DEFINE4() argument
152 long __user *, basep) in SYSCALL_DEFINE4() argument
278 linux_to_osf_stat(struct kstat *lstat, struct osf_stat __user *osf_stat) in linux_to_osf_stat()
304 linux_to_osf_statfs(struct kstatfs *linux_stat, struct osf_statfs __user *osf_stat, in linux_to_osf_statfs()
325 linux_to_osf_statfs64(struct kstatfs *linux_stat, struct osf_statfs64 __user *osf_stat, in linux_to_osf_statfs64()
344 SYSCALL_DEFINE3(osf_statfs, const char __user *, pathname, in SYSCALL_DEFINE3() argument
[all …]
/arch/mips/kernel/
Dsignal-common.h25 extern void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs,
28 extern int fpcsr_pending(unsigned int __user *fpcsr);
36 _save_fp_context(void __user *fpregs, void __user *csr);
38 _restore_fp_context(void __user *fpregs, void __user *csr);
40 extern asmlinkage int _save_msa_all_upper(void __user *buf);
41 extern asmlinkage int _restore_msa_all_upper(void __user *buf);
Dsignal.c44 static int (*save_fp_context)(void __user *sc);
45 static int (*restore_fp_context)(void __user *sc);
70 static int copy_fp_to_sigcontext(void __user *sc) in copy_fp_to_sigcontext()
73 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_to_sigcontext()
74 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; in copy_fp_to_sigcontext()
89 static int copy_fp_from_sigcontext(void __user *sc) in copy_fp_from_sigcontext()
92 uint64_t __user *fpregs = sc + abi->off_sc_fpregs; in copy_fp_from_sigcontext()
93 uint32_t __user *csr = sc + abi->off_sc_fpc_csr; in copy_fp_from_sigcontext()
110 static int copy_fp_to_sigcontext(void __user *sc) in copy_fp_to_sigcontext()
115 static int copy_fp_from_sigcontext(void __user *sc) in copy_fp_from_sigcontext()
[all …]
Dptrace32.c65 u32 __user * addrOthers; in compat_arch_ptrace()
70 if (get_user(addrOthers, (u32 __user * __user *) (unsigned long) addr) != 0) in compat_arch_ptrace()
77 ret = put_user(tmp, (u32 __user *) (unsigned long) data); in compat_arch_ptrace()
164 ret = put_user(tmp, (unsigned __user *) (unsigned long) data); in compat_arch_ptrace()
179 u32 __user * addrOthers; in compat_arch_ptrace()
183 if (get_user(addrOthers, (u32 __user * __user *) (unsigned long) addr) != 0) in compat_arch_ptrace()
274 (struct user_pt_regs __user *) (__u64) data); in compat_arch_ptrace()
279 (struct user_pt_regs __user *) (__u64) data); in compat_arch_ptrace()
284 ret = ptrace_getfpregs(child, (__u32 __user *) (__u64) data); in compat_arch_ptrace()
288 ret = ptrace_setfpregs(child, (__u32 __user *) (__u64) data); in compat_arch_ptrace()
[all …]
/arch/powerpc/perf/
Dcallchain_32.c33 static int read_user_stack_32(const unsigned int __user *ptr, unsigned int *ret) in read_user_stack_32()
81 struct signal_frame_32 __user *sf; in sane_signal_32_frame()
84 sf = (struct signal_frame_32 __user *) (unsigned long) sp; in sane_signal_32_frame()
85 if (read_user_stack_32((unsigned int __user *) &sf->sctx.regs, &regs)) in sane_signal_32_frame()
92 struct rt_signal_frame_32 __user *sf; in sane_rt_signal_32_frame()
95 sf = (struct rt_signal_frame_32 __user *) (unsigned long) sp; in sane_rt_signal_32_frame()
96 if (read_user_stack_32((unsigned int __user *) &sf->uc.uc_regs, &regs)) in sane_rt_signal_32_frame()
101 static unsigned int __user *signal_frame_32_regs(unsigned int sp, in signal_frame_32_regs()
104 struct mcontext32 __user *mctx = NULL; in signal_frame_32_regs()
105 struct signal_frame_32 __user *sf; in signal_frame_32_regs()
[all …]
/arch/sh/include/asm/
Duaccess.h32 #define __m(x) (*(struct __large_struct __user *)(x))
38 const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
49 const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
59 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
69 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
79 extern long strncpy_from_user(char *dest, const char __user *src, long count);
81 extern __must_check long strnlen_user(const char __user *str, long n);
88 raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user()
94 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user()
105 __kernel_size_t __clear_user(void __user *addr, __kernel_size_t size);
[all …]
/arch/x86/um/
Dsignal.c83 static int convert_fxsr_to_user(struct _fpstate __user *buf, in convert_fxsr_to_user()
87 struct _fpreg __user *to; in convert_fxsr_to_user()
105 unsigned long __user *t = (unsigned long __user *)to; in convert_fxsr_to_user()
117 struct _fpstate __user *buf) in convert_fxsr_from_user()
121 struct _fpreg __user *from; in convert_fxsr_from_user()
140 unsigned long __user *f = (unsigned long __user *)from; in convert_fxsr_from_user()
155 struct sigcontext __user *from) in copy_sc_from_user()
210 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], in copy_sc_from_user()
237 static int copy_sc_to_user(struct sigcontext __user *to, in copy_sc_to_user()
238 struct _xstate __user *to_fp, struct pt_regs *regs, in copy_sc_to_user()
[all …]
/arch/riscv/kernel/
Dsignal.c43 union __riscv_fp_state __user *sc_fpregs) in restore_fp_state()
46 struct __riscv_d_ext_state __user *state = &sc_fpregs->d; in restore_fp_state()
57 union __riscv_fp_state __user *sc_fpregs) in save_fp_state()
60 struct __riscv_d_ext_state __user *state = &sc_fpregs->d; in save_fp_state()
73 static long save_v_state(struct pt_regs *regs, void __user **sc_vec) in save_v_state()
75 struct __riscv_ctx_hdr __user *hdr; in save_v_state()
76 struct __sc_riscv_v_state __user *state; in save_v_state()
77 void __user *datap; in save_v_state()
82 state = (struct __sc_riscv_v_state __user *)(hdr + 1); in save_v_state()
116 static long __restore_v_state(struct pt_regs *regs, void __user *sc_vec) in __restore_v_state()
[all …]
/arch/powerpc/kernel/ptrace/
Dptrace-decl.h75 const void *kbuf, const void __user *ubuf);
83 const void *kbuf, const void __user *ubuf);
91 const void *kbuf, const void __user *ubuf);
99 const void *kbuf, const void __user *ubuf);
110 const void *kbuf, const void __user *ubuf,
125 const void *kbuf, const void __user *ubuf);
130 const void *kbuf, const void __user *ubuf);
135 const void *kbuf, const void __user *ubuf);
140 const void *kbuf, const void __user *ubuf);
145 const void *kbuf, const void __user *ubuf);
[all …]
/arch/riscv/include/asm/
Duaccess.h72 u32 __user *__ptr = (u32 __user *)(ptr); \
133 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
164 const __typeof__(*(ptr)) __user *__p = (ptr); \
189 u32 __user *__ptr = (u32 __user *)(ptr); \
249 __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
280 __typeof__(*(ptr)) __user *__p = (ptr); \
288 unsigned long __must_check __asm_copy_to_user(void __user *to,
291 const void __user *from, unsigned long n);
294 raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user()
300 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user()
[all …]
/arch/microblaze/include/asm/
Duaccess.h23 extern unsigned long __copy_tofrom_user(void __user *to,
24 const void __user *from, unsigned long size);
27 static inline unsigned long __must_check __clear_user(void __user *to, in __clear_user()
46 static inline unsigned long __must_check clear_user(void __user *to, in clear_user()
96 const typeof(*(ptr)) __user *__gu_ptr = (ptr); \
189 typeof(*(ptr)) __user *__pu_addr = (ptr); \
243 raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user()
245 return __copy_tofrom_user((__force void __user *)to, from, n); in raw_copy_from_user()
249 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user()
251 return __copy_tofrom_user(to, (__force const void __user *)from, n); in raw_copy_to_user()
[all …]

12345678910>>...22