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

Lines Matching refs:to

66  * @count: Maximum number of bytes to copy, including the trailing NUL.
68 * Copies a NUL-terminated string from userspace to kernel space.
75 * If access to userspace fails, returns -EFAULT (some data may have been
95 * @count: Maximum number of bytes to copy, including the trailing NUL.
97 * Copies a NUL-terminated string from userspace to kernel space.
102 * If access to userspace fails, returns -EFAULT (some data may have been
146 * @to: Destination address, in user space.
147 * @n: Number of bytes to zero.
155 clear_user(void __user *to, unsigned long n)
158 if (access_ok(VERIFY_WRITE, to, n))
159 __do_clear_user(to, n);
166 * @to: Destination address, in user space.
167 * @n: Number of bytes to zero.
176 __clear_user(void __user *to, unsigned long n)
178 __do_clear_user(to, n);
185 * @s: The string to measure.
229 __copy_user_intel(void __user *to, const void *from, unsigned long size)
330 : "1"(to), "2"(from), "0"(size)
336 __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size)
425 : "1"(to), "2"(from), "0"(size)
435 static unsigned long __copy_user_zeroing_intel_nocache(void *to,
527 : "1"(to), "2"(from), "0"(size)
532 static unsigned long __copy_user_intel_nocache(void *to,
618 : "1"(to), "2"(from), "0"(size)
626 * Leave these declared but undefined. They should not be any references to
629 unsigned long __copy_user_zeroing_intel(void *to, const void __user *from,
631 unsigned long __copy_user_intel(void __user *to, const void *from,
633 unsigned long __copy_user_zeroing_intel_nocache(void *to,
638 #define __copy_user(to,from,size) \
670 : "3"(size), "0"(size), "1"(to), "2"(from) \
674 #define __copy_user_zeroing(to,from,size) \
712 : "3"(size), "0"(size), "1"(to), "2"(from) \
716 unsigned long __copy_to_user_ll(void __user *to, const void *from,
721 ((unsigned long )to) < TASK_SIZE) {
725 * length to take the slow path.
732 * from supervisory mode, and due to preemption or SMP,
737 unsigned long offset = ((unsigned long)to)%PAGE_SIZE;
749 (unsigned long )to, 1, 1, 0, &pg, NULL);
770 to += len;
776 if (movsl_is_ok(to, from, n))
777 __copy_user(to, from, n);
779 n = __copy_user_intel(to, from, n);
784 unsigned long __copy_from_user_ll(void *to, const void __user *from,
787 if (movsl_is_ok(to, from, n))
788 __copy_user_zeroing(to, from, n);
790 n = __copy_user_zeroing_intel(to, from, n);
795 unsigned long __copy_from_user_ll_nozero(void *to, const void __user *from,
798 if (movsl_is_ok(to, from, n))
799 __copy_user(to, from, n);
801 n = __copy_user_intel((void __user *)to,
807 unsigned long __copy_from_user_ll_nocache(void *to, const void __user *from,
812 n = __copy_user_zeroing_intel_nocache(to, from, n);
814 __copy_user_zeroing(to, from, n);
816 __copy_user_zeroing(to, from, n);
821 unsigned long __copy_from_user_ll_nocache_nozero(void *to, const void __user *from,
826 n = __copy_user_intel_nocache(to, from, n);
828 __copy_user(to, from, n);
830 __copy_user(to, from, n);
837 * @to: Destination address, in user space.
839 * @n: Number of bytes to copy.
843 * Copy data from kernel space to user space.
849 copy_to_user(void __user *to, const void *from, unsigned long n)
851 if (access_ok(VERIFY_WRITE, to, n))
852 n = __copy_to_user(to, from, n);
859 * @to: Destination address, in kernel space.
861 * @n: Number of bytes to copy.
865 * Copy data from user space to kernel space.
871 * data to the requested size using zero bytes.
874 copy_from_user(void *to, const void __user *from, unsigned long n)
877 n = __copy_from_user(to, from, n);
879 memset(to, 0, n);