Lines Matching refs:ptr

53 #define __get_user_asm(insn, x, ptr, err)			\
62 : "m" (*(ptr))); \
67 #define __get_user_8(x, ptr, err) \
68 __get_user_asm("ld", x, ptr, err)
70 #define __get_user_8(x, ptr, err) \
72 u32 __user *__ptr = (u32 __user *)(ptr); \
114 * @ptr: Source address, in user space.
122 * @ptr must have pointer-to-simple-variable type, and the result of
123 * dereferencing @ptr must be assignable to @x without a cast.
131 #define __get_user(x, ptr) \
133 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
148 * @ptr: Source address, in user space.
156 * @ptr must have pointer-to-simple-variable type, and the result of
157 * dereferencing @ptr must be assignable to @x without a cast.
162 #define get_user(x, ptr) \
164 const __typeof__(*(ptr)) __user *__p = (ptr); \
171 #define __put_user_asm(insn, x, ptr, err) \
173 __typeof__(*(ptr)) __x = x; \
179 : "+r" (err), "=m" (*(ptr)) \
184 #define __put_user_8(x, ptr, err) \
185 __put_user_asm("sd", x, ptr, err)
187 #define __put_user_8(x, ptr, err) \
189 u32 __user *__ptr = (u32 __user *)(ptr); \
229 * @ptr: Destination address, in user space.
237 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
238 * to the result of dereferencing @ptr. The value of @x is copied to avoid
247 #define __put_user(x, ptr) \
249 __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
265 * @ptr: Destination address, in user space.
273 * @ptr must have pointer-to-simple-variable type, and @x must be assignable
274 * to the result of dereferencing @ptr.
278 #define put_user(x, ptr) \
280 __typeof__(*(ptr)) __user *__p = (ptr); \