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

Lines Matching refs:to

51  * special hack in arch_setup_additional_pages() to auto-create a mapping
52 * for the first 16 KB, and it would seem strange to have different
77 * to write to a block, it is always safe to read from it.
78 * @addr: User space pointer to start of block to check
79 * @size: Size of block to check
83 * Checks if a pointer to a block of memory in user space is valid.
99 * address of an instruction that is allowed to fault, and the second is
101 * modified, so it is entirely up to the continuation code to figure out
102 * what to do.
106 * we don't even have to jump over them. Further, they do not intrude
122 * we size the structure to accommodate. In practice, for the
140 /* Unimplemented routines to cause linker failures */
145 * Careful: we have to cast the result to the type of the pointer
150 * @x: Variable to store result.
155 * This macro copies a single simple variable from user space to kernel
159 * @ptr must have pointer-to-simple-variable type, and the result of
160 * dereferencing @ptr must be assignable to @x without a cast.
163 * On error, the variable @x is set to zero.
196 * @x: Value to copy to user space.
201 * This macro copies a single simple value from kernel space to user
205 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
206 * to the result of dereferencing @ptr.
213 * Implementation note: The "case 8" logic of casting to the type of
215 * of keeping all integer types the same, but casting any pointers to
249 * check the address of their arguments to make sure they are not
270 * @to: Destination address, in user space.
272 * @n: Number of bytes to copy.
276 * Copy data from kernel space to user space. Caller must check
283 * to be called from atomic context, typically bracketed by calls
284 * to pagefault_disable() and pagefault_enable().
287 void __user *to, const void *from, unsigned long n);
290 __copy_to_user(void __user *to, const void *from, unsigned long n)
293 return __copy_to_user_inatomic(to, from, n);
297 copy_to_user(void __user *to, const void *from, unsigned long n)
299 if (access_ok(VERIFY_WRITE, to, n))
300 n = __copy_to_user(to, from, n);
306 * @to: Destination address, in kernel space.
308 * @n: Number of bytes to copy.
312 * Copy data from user space to kernel space. Caller must check
319 * data to the requested size using zero bytes.
322 * to be called from atomic context, typically bracketed by calls
323 * to pagefault_disable() and pagefault_enable(). This version
327 void *to, const void __user *from, unsigned long n);
329 void *to, const void __user *from, unsigned long n);
332 __copy_from_user(void *to, const void __user *from, unsigned long n)
335 return __copy_from_user_zeroing(to, from, n);
339 _copy_from_user(void *to, const void __user *from, unsigned long n)
342 n = __copy_from_user(to, from, n);
344 memset(to, 0, n);
352 static inline unsigned long __must_check copy_from_user(void *to,
356 int sz = __compiletime_object_size(to);
359 n = _copy_from_user(to, from, n);
372 * @to: Destination address, in user space.
374 * @n: Number of bytes to copy.
378 * Copy data from user space to user space. Caller must check
385 void __user *to, const void __user *from, unsigned long n);
388 __copy_in_user(void __user *to, const void __user *from, unsigned long n)
391 return __copy_in_user_inatomic(to, from, n);
395 copy_in_user(void __user *to, const void __user *from, unsigned long n)
397 if (access_ok(VERIFY_WRITE, to, n) && access_ok(VERIFY_READ, from, n))
398 n = __copy_in_user(to, from, n);
406 * @str: The string to measure.
415 * If there is a limit on the length of a valid string, you may wish to
431 * @count: Maximum number of bytes to copy, including the trailing NUL.
433 * Copies a NUL-terminated string from userspace to kernel space.
440 * If access to userspace fails, returns -EFAULT (some data may have been
464 * @len: Number of bytes to zero.
489 * @len: Number of bytes to flush.
517 * @len: Number of bytes to invalidate.
524 * to the cache being marked invalid.
548 * @len: Number of bytes to invalidate.