/arch/um/include/asm/ |
H A D | uaccess.h | 54 #define access_ok(type, addr, size) \ macro 90 * the specified block with access_ok() before calling this function. 146 (access_ok(VERIFY_READ, private_ptr, sizeof(*private_ptr)) ? \ 166 (access_ok(VERIFY_WRITE, private_ptr, sizeof(*private_ptr)) ? \
|
/arch/arm64/include/asm/ |
H A D | uaccess.h | 102 #define access_ok(type, addr, size) __range_ok(addr, size) macro 107 * space - it must have been done previously with a separate "access_ok()" 172 access_ok(VERIFY_READ, __p, sizeof(*__p)) ? \ 234 access_ok(VERIFY_WRITE, __p, sizeof(*__p)) ? \ 246 if (access_ok(VERIFY_READ, from, n)) 255 if (access_ok(VERIFY_WRITE, to, n)) 262 if (access_ok(VERIFY_READ, from, n) && access_ok(VERIFY_WRITE, to, n)) 272 if (access_ok(VERIFY_WRITE, to, n))
|
/arch/avr32/include/asm/ |
H A D | uaccess.h | 69 #define access_ok(type, addr, size) (likely(__range_ok(addr, size) == 0)) macro 148 * Caller must check the pointer with access_ok() before calling this 170 * Caller must check the pointer with access_ok() before calling this 204 if (access_ok(VERIFY_READ, __gu_addr, size)) { \ 266 if (access_ok(VERIFY_WRITE, __pu_addr, size)) { \
|
/arch/frv/include/asm/ |
H A D | uaccess.h | 65 #define access_ok(type,addr,size) (__range_ok((void __user *)(addr), (size)) == 0) macro
|
/arch/m68k/include/asm/ |
H A D | uaccess_mm.h | 17 static inline int access_ok(int type, const void __user *addr, function
|
H A D | uaccess_no.h | 16 #define access_ok(type,addr,size) _access_ok((unsigned long)(addr),(size)) macro 19 * It is not enough to just have access_ok check for a real RAM address.
|
/arch/sh/include/asm/ |
H A D | uaccess.h | 24 #define access_ok(type, addr, size) \ macro 48 * checks by hand with "access_ok()") 72 if (likely(access_ok(VERIFY_READ, __gu_addr, (size)))) \ 93 if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) \ 140 if (__cl_size && access_ok(VERIFY_WRITE, \
|
/arch/alpha/include/asm/ |
H A D | uaccess.h | 45 #define access_ok(type,addr,size) \ macro 71 * checks by hand with "access_ok()")
|
/arch/arm/include/asm/ |
H A D | uaccess.h | 272 #define access_ok(type,addr,size) (__range_ok(addr,size) == 0) macro 280 * "access_ok()" call. 490 if (access_ok(VERIFY_READ, from, n)) 499 if (access_ok(VERIFY_WRITE, to, n)) 509 if (access_ok(VERIFY_WRITE, to, n))
|
/arch/blackfin/include/asm/ |
H A D | uaccess.h | 35 #define access_ok(type, addr, size) _access_ok((unsigned long)(addr), (size)) macro 76 if (!access_ok(VERIFY_WRITE, _p, sizeof(*(_p)))) {\ 135 if (likely(access_ok(VERIFY_READ, _p, ptr_size))) { \ 180 if (access_ok(VERIFY_READ, from, n)) 190 if (access_ok(VERIFY_WRITE, to, n)) 206 if (!access_ok(VERIFY_READ, src, 1)) 226 if (!access_ok(VERIFY_READ, src, 1)) 233 if (!access_ok(VERIFY_READ, src, 1)) 245 if (!access_ok(VERIFY_WRITE, to, n))
|
/arch/cris/include/asm/ |
H A D | uaccess.h | 55 #define access_ok(type,addr,size) __access_ok((unsigned long)(addr),(size)) macro 88 * with a separate "access_ok()" call (this is used when we do multiple 142 if (access_ok(VERIFY_WRITE,__pu_addr,size)) \ 164 if (access_ok(VERIFY_READ,__gu_addr,size)) \ 182 if (access_ok(VERIFY_WRITE, to, n)) 190 if (access_ok(VERIFY_READ, from, n)) 198 if (access_ok(VERIFY_WRITE, to, n)) 213 if (access_ok(VERIFY_READ, src, 1))
|
/arch/ia64/include/asm/ |
H A D | uaccess.h | 48 #define KERNEL_DS ((mm_segment_t) { ~0UL }) /* cf. access_ok() */ 49 #define USER_DS ((mm_segment_t) { TASK_SIZE-1 }) /* cf. access_ok() */ 73 #define access_ok(type, addr, size) __access_ok((addr), (size), get_fs()) macro 89 * checks by hand with "access_ok()") 282 if (likely(access_ok(VERIFY_READ, from, n) && access_ok(VERIFY_WRITE, to, n)))
|
/arch/m32r/include/asm/ |
H A D | uaccess.h | 87 * access_ok: - Checks if a user space pointer is valid 106 #define access_ok(type,addr,size) (likely(__range_ok(addr,size) == 0)) macro 108 static inline int access_ok(int type, const void *addr, unsigned long size) function 147 * with a separate "access_ok()" call (this is used when we do multiple 206 * Caller must check the pointer with access_ok() before calling this 231 if (access_ok(VERIFY_READ,__gu_addr,size)) \ 286 * Caller must check the pointer with access_ok() before calling this 309 if (access_ok(VERIFY_WRITE,__pu_addr,size)) \ 574 * the specified block with access_ok() before calling this function. 612 * the specified block with access_ok() befor [all...] |
/arch/metag/include/asm/ |
H A D | uaccess.h | 34 * as readv/writev use access_ok to validate pointers, but want 51 #define access_ok(type, addr, size) __access_ok((unsigned long)(addr), \ macro 56 return access_ok(type, addr, size) ? 0 : -EFAULT; 100 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \ 146 if (access_ok(VERIFY_READ, __gu_addr, size)) \ 202 if (access_ok(VERIFY_READ, from, n)) 217 if (access_ok(VERIFY_WRITE, to, n)) 234 if (access_ok(VERIFY_WRITE, to, n))
|
/arch/microblaze/include/asm/ |
H A D | uaccess.h | 89 #define access_ok(type, addr, size) (__range_ok((addr), (size)) == 0) macro 93 static inline int access_ok(int type, const void __user *addr, function 149 if (unlikely(!access_ok(VERIFY_WRITE, to, n))) 202 if (access_ok(VERIFY_READ, __gu_addr, size)) { \ 313 if (access_ok(VERIFY_WRITE, __pu_addr, size)) { \ 375 if (access_ok(VERIFY_READ, from, n)) 389 if (access_ok(VERIFY_WRITE, to, n)) 404 if (!access_ok(VERIFY_READ, src, 1)) 418 if (!access_ok(VERIFY_READ, src, 1))
|
/arch/mn10300/include/asm/ |
H A D | uaccess.h | 72 #define access_ok(type, addr, size) (__range_ok((addr), (size)) == 0) macro 77 return access_ok(type, addr, size) ? 0 : -EFAULT; 108 * checks by hand with "access_ok()") 431 if (access_ok(VERIFY_WRITE, to, n)) 440 if (access_ok(VERIFY_READ, from, n))
|
/arch/openrisc/include/asm/ |
H A D | uaccess.h | 65 #define access_ok(type, addr, size) \ macro 100 * with a separate "access_ok()" call (this is used when we do multiple 130 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \ 203 if (access_ok(VERIFY_READ, __gu_addr, size)) \ 278 if (access_ok(VERIFY_READ, from, n)) 292 if (access_ok(VERIFY_WRITE, to, n)) 307 if (access_ok(VERIFY_WRITE, addr, size))
|
/arch/parisc/include/asm/ |
H A D | uaccess.h | 28 * parisc, we don't need to do anything for access_ok(). 33 static inline long access_ok(int type, const void __user * addr, function
|
/arch/powerpc/include/asm/ |
H A D | uaccess.h | 61 #define access_ok(type, addr, size) \ macro 94 * with a separate "access_ok()" call (this is used when we do multiple 192 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \ 298 if (access_ok(VERIFY_READ, __gu_addr, (size))) \ 328 if (access_ok(VERIFY_READ, from, n)) 343 if (access_ok(VERIFY_WRITE, to, n)) 438 if (likely(access_ok(VERIFY_WRITE, addr, size)))
|
/arch/s390/include/asm/ |
H A D | uaccess.h | 62 #define access_ok(type, addr, size) __access_ok(addr, size) macro 104 * the specified block with access_ok() before calling this function. 124 * the specified block with access_ok() before calling this function.
|
/arch/score/include/asm/ |
H A D | uaccess.h | 32 * access_ok: - Checks if a user space pointer is valid 56 #define access_ok(type, addr, size) \ macro 110 * Caller must check the pointer with access_ok() before calling this 131 * Caller must check the pointer with access_ok() before calling this 184 if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) \ 250 if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { \ 298 if (access_ok(VERIFY_READ, from, len)) 313 if (access_ok(VERIFY_WRITE, to, len)) 346 if (access_ok(VERIFY_READ, from, len) && 347 access_ok(VERFITY_WRIT [all...] |
/arch/sparc/include/asm/ |
H A D | uaccess_32.h | 24 /* Sparc is not segmented, however we need to be able to fool access_ok() 50 #define access_ok(type, addr, size) \ macro 107 * checks by hand with "access_ok()")
|
H A D | uaccess_64.h | 57 static inline int access_ok(int type, const void __user * addr, unsigned long size) function
|
/arch/tile/include/asm/ |
H A D | uaccess.h | 74 * access_ok: - Checks if a user space pointer is valid 92 #define access_ok(type, addr, size) ({ \ macro 207 * Caller must check the pointer with access_ok() before calling this 284 * Caller must check the pointer with access_ok() before calling this 311 access_ok(VERIFY_WRITE, (__Pu_addr), sizeof(*(__Pu_addr))) ? \ 319 access_ok(VERIFY_READ, (__Gu_addr), sizeof(*(__Gu_addr))) ? \ 333 * the specified block with access_ok() before calling this function. 355 if (access_ok(VERIFY_WRITE, to, n)) 369 * the specified block with access_ok() before calling this function. 397 if (access_ok(VERIFY_REA [all...] |
/arch/x86/include/asm/ |
H A D | uaccess.h | 70 * access_ok: - Checks if a user space pointer is valid 88 #define access_ok(type, addr, size) \ macro 126 * with a separate "access_ok()" call (this is used when we do multiple 467 * Caller must check the pointer with access_ok() before calling this 491 * Caller must check the pointer with access_ok() before calling this 622 access_ok(VERIFY_WRITE, (ptr), sizeof(*(ptr))) ? \
|