• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/xtensa/include/asm/

Lines Matching refs:to

6  * These routines provide basic accessing functions to the user memory
9 * This file is subject to the terms and conditions of the GNU General Public
56 * set_fs sets current->thread.current_ds to some value.
59 * <av> value to write
63 * <av> preserved, value to write
73 * On success, kernel_ok branches to a label indicated by parameter
74 * <success>. This implies that the macro falls through to the next
83 * <success> label to branch to on success; implies
99 * user_ok determines whether the access to user-space memory is allowed.
102 * On error, user_ok branches to a label indicated by parameter
103 * <error>. This implies that the macro falls through to the next
114 * <error> label to branch to on error; implies fall-through
132 * On error, access_ok branches to a label indicated by parameter
133 * <error>. This implies that the macro falls through to the next
144 * <error> label to branch to on error; implies fall-through
190 * This gets kind of ugly. We want to return _two_ values in
191 * "get_user()" and yet we don't want to do any pointers, because that
195 * Careful to not
206 * accesses to the same area of user memory).
253 * User code passes a bad variable ptr to a system call.
254 * Kernel tries to access the variable.
256 * Unaligned exception handler tries to make aligned accesses.
258 * do_page_fault() thinks the fault address belongs to the kernel, not the
262 * __check_align_* macros to check for unaligned addresses before
285 * because we do not write to any memory gcc knows about, so there
372 * Copy to/from user space
377 * architecture would cause heavy code bloat if we tried to inline
384 extern unsigned __xtensa_copy_user(void *to, const void *from, unsigned n);
385 #define __copy_user(to,from,size) __xtensa_copy_user(to,from,size)
389 __generic_copy_from_user_nocheck(void *to, const void *from, unsigned long n)
391 return __copy_user(to,from,n);
395 __generic_copy_to_user_nocheck(void *to, const void *from, unsigned long n)
397 return __copy_user(to,from,n);
401 __generic_copy_to_user(void *to, const void *from, unsigned long n)
404 if (access_ok(VERIFY_WRITE, to, n))
405 return __copy_user(to,from,n);
410 __generic_copy_from_user(void *to, const void *from, unsigned long n)
412 prefetchw(to);
414 return __copy_user(to,from,n);
416 memset(to, 0, n);
420 #define copy_to_user(to,from,n) __generic_copy_to_user((to),(from),(n))
421 #define copy_from_user(to,from,n) __generic_copy_from_user((to),(from),(n))
422 #define __copy_to_user(to,from,n) __generic_copy_to_user_nocheck((to),(from),(n))
423 #define __copy_from_user(to,from,n) __generic_copy_from_user_nocheck((to),(from),(n))
429 * We need to return the number of bytes not cleared. Our memset()