Home
last modified time | relevance | path

Searched refs:access_ok (Results 1 – 25 of 172) sorted by relevance

1234567

/linux/arch/mips/kernel/
A Dunaligned.c197 if (!access_ok(addr, 2)) in emulate_load_store_insn()
206 if (!access_ok(addr, 4)) in emulate_load_store_insn()
215 if (!access_ok(addr, 2)) in emulate_load_store_insn()
224 if (!access_ok(addr, 2)) in emulate_load_store_insn()
233 if (!access_ok(addr, 4)) in emulate_load_store_insn()
248 if (user && !access_ok(addr, 2)) in emulate_load_store_insn()
263 if (user && !access_ok(addr, 4)) in emulate_load_store_insn()
278 if (user && !access_ok(addr, 2)) in emulate_load_store_insn()
301 if (user && !access_ok(addr, 4)) in emulate_load_store_insn()
324 if (user && !access_ok(addr, 8)) in emulate_load_store_insn()
[all …]
A Dsignal_o32.c121 if (!access_ok(frame, sizeof (*frame))) in setup_frame_32()
163 if (!access_ok(frame, sizeof(*frame))) in sys32_rt_sigreturn()
200 if (!access_ok(frame, sizeof (*frame))) in setup_rt_frame_32()
265 if (!access_ok(frame, sizeof(*frame))) in sys32_sigreturn()
/linux/arch/mips/loongson64/
A Dcop2-ex.c71 if (!access_ok(addr, 16)) in loongson_cu2_call()
86 if (!access_ok(addr, 16)) in loongson_cu2_call()
110 if (!access_ok(addr, 16)) in loongson_cu2_call()
127 if (!access_ok(addr, 16)) in loongson_cu2_call()
160 if (!access_ok(addr, 2)) in loongson_cu2_call()
171 if (!access_ok(addr, 4)) in loongson_cu2_call()
182 if (!access_ok(addr, 8)) in loongson_cu2_call()
195 if (!access_ok(addr, 4)) in loongson_cu2_call()
211 if (!access_ok(addr, 8)) in loongson_cu2_call()
239 if (!access_ok(addr, 2)) in loongson_cu2_call()
[all …]
/linux/arch/xtensa/include/asm/
A Duaccess.h44 #define access_ok(addr, size) __access_ok((unsigned long)(addr), (size)) macro
88 if (access_ok(__pu_addr, size)) \
184 if (access_ok(__gu_addr, size)) \
285 if (access_ok(addr, size)) in clear_user()
299 if (access_ok(src, 1)) in strncpy_from_user()
314 if (!access_ok(str, 1)) in strnlen_user()
/linux/arch/mips/include/asm/
A Duaccess.h87 #define access_ok(addr, size) \ macro
112 access_ok(__p, sizeof(*__p)) ? __put_user((x), __p) : -EFAULT; \
138 access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) : \
525 if (__cl_size && access_ok(__cl_addr, __cl_size)) \
555 if (!access_ok(__from, __len)) in strncpy_from_user()
591 if (!access_ok(s, 1)) in strnlen_user()
/linux/arch/nios2/include/asm/
A Duaccess.h39 #define access_ok(addr, len) \ macro
72 if (!access_ok(to, n)) in clear_user()
143 if (access_ok( __gu_ptr, sizeof(*__gu_ptr))) \
169 if (access_ok(__pu_ptr, sizeof(*__pu_ptr))) { \
/linux/arch/sh/include/asm/
A Duaccess.h24 #define access_ok(addr, size) \ macro
72 if (likely(access_ok(__gu_addr, (size)))) \
93 if (likely(access_ok(__pu_addr, size))) \
134 if (__cl_size && access_ok(__cl_addr, __cl_size)) \
/linux/arch/powerpc/include/asm/
A Duaccess.h23 #define access_ok(addr, size) \ macro
75 access_ok(_pu_addr, sizeof(*(ptr))) ? \
277 access_ok(_gu_addr, sizeof(*(ptr))) ? \
337 return likely(access_ok(addr, size)) ? __clear_user(addr, size) : size; in clear_user()
358 if (access_ok(to, n)) { in copy_mc_to_user()
376 if (unlikely(!access_ok(ptr, len))) in user_access_begin()
392 if (unlikely(!access_ok(ptr, len))) in user_read_access_begin()
406 if (unlikely(!access_ok(ptr, len))) in user_write_access_begin()
/linux/drivers/video/fbdev/mmp/
A Dcore.c165 mutex_init(&path->access_ok); in mmp_register_path()
199 mutex_init(&path->overlays[i].access_ok); in mmp_register_path()
230 mutex_destroy(&path->overlays[i].access_ok); in mmp_unregister_path()
232 mutex_destroy(&path->access_ok); in mmp_unregister_path()
/linux/arch/nds32/include/asm/
A Duaccess.h51 #define access_ok(addr, size) \ macro
92 if (access_ok(__p, sizeof(*__p))) { \
187 if (access_ok(__p, sizeof(*__p))) { \
276 if (access_ok(to, n)) in clear_user()
A Dfutex.h43 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
69 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
/linux/arch/microblaze/include/asm/
A Duaccess.h42 static inline int access_ok(const void __user *addr, unsigned long size) in access_ok() function
91 if (unlikely(!access_ok(to, n))) in clear_user()
138 access_ok(__gu_ptr, sizeof(*__gu_ptr)) ? \
233 if (access_ok(__pu_addr, size)) { \
A Dfutex.h37 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
73 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
/linux/drivers/video/fbdev/mmp/hw/
A Dmmp_ctrl.c136 mutex_lock(&overlay->access_ok); in overlay_set_win()
162 mutex_unlock(&overlay->access_ok); in overlay_set_win()
173 mutex_lock(&overlay->access_ok); in dmafetch_onoff()
178 mutex_unlock(&overlay->access_ok); in dmafetch_onoff()
184 mutex_lock(&path->access_ok); in path_enabledisable()
191 mutex_unlock(&path->access_ok); in path_enabledisable()
262 mutex_lock(&path->access_ok); in path_set_mode()
313 mutex_unlock(&path->access_ok); in path_set_mode()
485 mutex_init(&ctrl->access_ok); in mmphw_probe()
/linux/arch/openrisc/include/asm/
A Duaccess.h58 #define access_ok(addr, size) \ macro
105 if (access_ok(__pu_addr, size)) \
177 if (access_ok(__gu_addr, size)) \
266 if (likely(access_ok(addr, size))) in clear_user()
A Dfutex.h38 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
74 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
/linux/arch/arm/include/asm/
A Dfutex.h53 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
107 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
137 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
/linux/include/asm-generic/
A Duaccess.h129 #define access_ok(addr, size) __access_ok((unsigned long)(addr),(size)) macro
172 access_ok(__p, sizeof(*ptr)) ? \
234 access_ok(__p, sizeof(*ptr)) ? \
267 if (!access_ok(to, n)) in clear_user()
/linux/arch/x86/kernel/cpu/sgx/
A Dvirt.c347 if (WARN_ON_ONCE(!access_ok(secs, PAGE_SIZE))) in sgx_virt_ecreate()
376 if (WARN_ON_ONCE(!access_ok(sigstruct, sizeof(struct sgx_sigstruct)) || in __sgx_virt_einit()
377 !access_ok(token, SGX_EINITTOKEN_SIZE) || in __sgx_virt_einit()
378 !access_ok(secs, PAGE_SIZE))) in __sgx_virt_einit()
/linux/arch/riscv/include/asm/
A Duaccess.h45 #define access_ok(addr, size) ({ \ macro
217 access_ok(__p, sizeof(*__p)) ? \
353 access_ok(__p, sizeof(*__p)) ? \
387 return access_ok(to, n) ? in clear_user()
/linux/sound/core/seq/
A Dseq_queue.c355 int access_ok; in queue_access_lock() local
358 access_ok = check_access(q, client); in queue_access_lock()
359 if (access_ok) in queue_access_lock()
362 return access_ok; in queue_access_lock()
379 int access_ok; in snd_seq_queue_check_access() local
385 access_ok = check_access(q, client); in snd_seq_queue_check_access()
388 return access_ok; in snd_seq_queue_check_access()
/linux/arch/hexagon/include/asm/
A Dfutex.h39 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
79 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
/linux/arch/alpha/include/asm/
A Dfutex.h34 if (!access_ok(uaddr, sizeof(u32))) in arch_futex_atomic_op_inuser()
70 if (!access_ok(uaddr, sizeof(u32))) in futex_atomic_cmpxchg_inatomic()
/linux/lib/
A Dusercopy.c14 if (!should_fail_usercopy() && likely(access_ok(from, n))) { in _copy_from_user()
31 if (likely(access_ok(to, n))) { in _copy_to_user()
/linux/arch/um/kernel/skas/
A Duaccess.c197 if (!access_ok(src, 1)) in strncpy_from_user()
246 if (!access_ok(str, 1)) in strnlen_user()
282 if (!access_ok(uaddr, sizeof(*uaddr))) in arch_futex_atomic_op_inuser()
361 if (!access_ok(uaddr, sizeof(*uaddr))) in futex_atomic_cmpxchg_inatomic()

Completed in 31 milliseconds

1234567