Lines Matching refs:to
15 (void __user *to, const void *from, unsigned long n);
17 (void *to, const void __user *from, unsigned long n);
19 (void *to, const void __user *from, unsigned long n);
21 (void *to, const void __user *from, unsigned long n);
23 (void *to, const void __user *from, unsigned long n);
27 * @to: Destination address, in user space.
29 * @n: Number of bytes to copy.
33 * Copy data from kernel space to user space. Caller must check
45 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n)
52 __put_user_size(*(u8 *)from, (u8 __user *)to,
56 __put_user_size(*(u16 *)from, (u16 __user *)to,
60 __put_user_size(*(u32 *)from, (u32 __user *)to,
65 return __copy_to_user_ll(to, from, n);
70 * @to: Destination address, in user space.
72 * @n: Number of bytes to copy.
76 * Copy data from kernel space to user space. Caller must check
83 __copy_to_user(void __user *to, const void *from, unsigned long n)
86 return __copy_to_user_inatomic(to, from, n);
90 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n)
102 __get_user_size(*(u8 *)to, from, 1, ret, 1);
105 __get_user_size(*(u16 *)to, from, 2, ret, 2);
108 __get_user_size(*(u32 *)to, from, 4, ret, 4);
112 return __copy_from_user_ll_nozero(to, from, n);
117 * @to: Destination address, in kernel space.
119 * @n: Number of bytes to copy.
123 * Copy data from user space to kernel space. Caller must check
130 * data to the requested size using zero bytes.
138 __copy_from_user(void *to, const void __user *from, unsigned long n)
146 __get_user_size(*(u8 *)to, from, 1, ret, 1);
149 __get_user_size(*(u16 *)to, from, 2, ret, 2);
152 __get_user_size(*(u32 *)to, from, 4, ret, 4);
156 return __copy_from_user_ll(to, from, n);
159 static __always_inline unsigned long __copy_from_user_nocache(void *to,
168 __get_user_size(*(u8 *)to, from, 1, ret, 1);
171 __get_user_size(*(u16 *)to, from, 2, ret, 2);
174 __get_user_size(*(u32 *)to, from, 4, ret, 4);
178 return __copy_from_user_ll_nocache(to, from, n);
182 __copy_from_user_inatomic_nocache(void *to, const void __user *from,
185 return __copy_from_user_ll_nocache_nozero(to, from, n);
188 unsigned long __must_check copy_to_user(void __user *to,
190 unsigned long __must_check _copy_from_user(void *to,
203 static inline unsigned long __must_check copy_from_user(void *to,
207 int sz = __compiletime_object_size(to);
210 n = _copy_from_user(to, from, n);
224 * @str: The string to measure.
233 * If there is a limit on the length of a valid string, you may wish to