• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-i386/

Lines Matching defs:to

51  * This is equivalent to the following test:
68 * to write to a block, it is always safe to read from it.
69 * @addr: User space pointer to start of block to check
70 * @size: Size of block to check
74 * Checks if a pointer to a block of memory in user space is valid.
87 * address of an instruction that is allowed to fault, and the second is
89 * modified, so it is entirely up to the continuation code to figure out
90 * what to do.
94 * we don't even have to jump over them. Further, they do not intrude
109 * This gets kind of ugly. We want to return _two_ values in "get_user()"
110 * and yet we don't want to do any pointers, because that is too much
117 * accesses to the same area of user memory).
130 /* Careful: we have to cast the result to the type of the pointer for sign reasons */
133 * @x: Variable to store result.
138 * This macro copies a single simple variable from user space to kernel
142 * @ptr must have pointer-to-simple-variable type, and the result of
143 * dereferencing @ptr must be assignable to @x without a cast.
146 * On error, the variable @x is set to zero.
181 * @x: Value to copy to user space.
186 * This macro copies a single simple value from kernel space to user
190 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
191 * to the result of dereferencing @ptr.
229 * @x: Variable to store result.
234 * This macro copies a single simple variable from user space to kernel
238 * @ptr must have pointer-to-simple-variable type, and the result of
239 * dereferencing @ptr must be assignable to @x without a cast.
245 * On error, the variable @x is set to zero.
253 * @x: Value to copy to user space.
258 * This macro copies a single simple value from kernel space to user
262 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
263 * to the result of dereferencing @ptr.
330 * we do not write to any memory gcc knows about, so there are no
389 unsigned long __must_check __copy_to_user_ll(void __user *to,
391 unsigned long __must_check __copy_from_user_ll(void *to,
393 unsigned long __must_check __copy_from_user_ll_nozero(void *to,
395 unsigned long __must_check __copy_from_user_ll_nocache(void *to,
397 unsigned long __must_check __copy_from_user_ll_nocache_nozero(void *to,
402 * @to: Destination address, in user space.
404 * @n: Number of bytes to copy.
408 * Copy data from kernel space to user space. Caller must check
420 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n)
427 __put_user_size(*(u8 *)from, (u8 __user *)to, 1, ret, 1);
430 __put_user_size(*(u16 *)from, (u16 __user *)to, 2, ret, 2);
433 __put_user_size(*(u32 *)from, (u32 __user *)to, 4, ret, 4);
437 return __copy_to_user_ll(to, from, n);
442 * @to: Destination address, in user space.
444 * @n: Number of bytes to copy.
448 * Copy data from kernel space to user space. Caller must check
455 __copy_to_user(void __user *to, const void *from, unsigned long n)
458 return __copy_to_user_inatomic(to, from, n);
462 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n)
474 __get_user_size(*(u8 *)to, from, 1, ret, 1);
477 __get_user_size(*(u16 *)to, from, 2, ret, 2);
480 __get_user_size(*(u32 *)to, from, 4, ret, 4);
484 return __copy_from_user_ll_nozero(to, from, n);
489 * @to: Destination address, in kernel space.
491 * @n: Number of bytes to copy.
495 * Copy data from user space to kernel space. Caller must check
502 * data to the requested size using zero bytes.
510 __copy_from_user(void *to, const void __user *from, unsigned long n)
518 __get_user_size(*(u8 *)to, from, 1, ret, 1);
521 __get_user_size(*(u16 *)to, from, 2, ret, 2);
524 __get_user_size(*(u32 *)to, from, 4, ret, 4);
528 return __copy_from_user_ll(to, from, n);
533 static __always_inline unsigned long __copy_from_user_nocache(void *to,
542 __get_user_size(*(u8 *)to, from, 1, ret, 1);
545 __get_user_size(*(u16 *)to, from, 2, ret, 2);
548 __get_user_size(*(u32 *)to, from, 4, ret, 4);
552 return __copy_from_user_ll_nocache(to, from, n);
556 __copy_from_user_inatomic_nocache(void *to, const void __user *from, unsigned long n)
558 return __copy_from_user_ll_nocache_nozero(to, from, n);
561 unsigned long __must_check copy_to_user(void __user *to,
563 unsigned long __must_check copy_from_user(void *to,
572 * @str: The string to measure.
581 * If there is a limit on the length of a valid string, you may wish to