Lines Matching refs:ptr

29 static inline int __access_ok(const void __user *ptr, unsigned long size);
164 #define uaccess_mask_ptr(ptr) (__typeof__(ptr))__uaccess_mask_ptr(ptr)
165 static inline void __user *__uaccess_mask_ptr(const void __user *ptr)
172 : "r" (ptr),
195 #define __raw_get_mem(ldr, x, ptr, err, type) \
198 switch (sizeof(*(ptr))) { \
200 __get_mem_asm(ldr "b", "%w", __gu_val, (ptr), (err), type); \
203 __get_mem_asm(ldr "h", "%w", __gu_val, (ptr), (err), type); \
206 __get_mem_asm(ldr, "%w", __gu_val, (ptr), (err), type); \
209 __get_mem_asm(ldr, "%x", __gu_val, (ptr), (err), type); \
214 (x) = (__force __typeof__(*(ptr)))__gu_val; \
219 * uaccess_ttbr0_disable(). As `x` and `ptr` could contain blocking functions,
222 #define __raw_get_user(x, ptr, err) \
224 __typeof__(*(ptr)) __user *__rgu_ptr = (ptr); \
226 __chk_user_ptr(ptr); \
235 #define __get_user_error(x, ptr, err) \
237 __typeof__(*(ptr)) __user *__p = (ptr); \
247 #define __get_user(x, ptr) \
250 __get_user_error((x), (ptr), __gu_err); \
284 #define __raw_put_mem(str, x, ptr, err, type) \
286 __typeof__(*(ptr)) __pu_val = (x); \
287 switch (sizeof(*(ptr))) { \
289 __put_mem_asm(str "b", "%w", __pu_val, (ptr), (err), type); \
292 __put_mem_asm(str "h", "%w", __pu_val, (ptr), (err), type); \
295 __put_mem_asm(str, "%w", __pu_val, (ptr), (err), type); \
298 __put_mem_asm(str, "%x", __pu_val, (ptr), (err), type); \
307 * uaccess_ttbr0_disable(). As `x` and `ptr` could contain blocking functions,
310 #define __raw_put_user(x, ptr, err) \
312 __typeof__(*(ptr)) __user *__rpu_ptr = (ptr); \
313 __typeof__(*(ptr)) __rpu_val = (x); \
321 #define __put_user_error(x, ptr, err) \
323 __typeof__(*(ptr)) __user *__p = (ptr); \
333 #define __put_user(x, ptr) \
336 __put_user_error((x), (ptr), __pu_err); \