Lines Matching refs:ptr
194 #define get_user(x, ptr) \ argument
195 __get_user_check((x), (ptr), sizeof(*(ptr)))
197 #define __get_user_check(x, ptr, size) \ argument
200 const typeof(*(ptr)) __user *__gu_addr = (ptr); \
224 x = (__force typeof(*(ptr)))__gu_val; \
228 #define __get_user(x, ptr) \ argument
233 switch (sizeof(*(ptr))) { \
235 __get_user_asm("lbu", (ptr), __gu_val, __gu_err); \
238 __get_user_asm("lhu", (ptr), __gu_val, __gu_err); \
241 __get_user_asm("lw", (ptr), __gu_val, __gu_err); \
246 x = (__force __typeof__(*(ptr))) __gu_val; \
306 #define put_user(x, ptr) \ argument
307 __put_user_check((x), (ptr), sizeof(*(ptr)))
309 #define __put_user_check(x, ptr, size) \ argument
311 typeof(*(ptr)) volatile __pu_val = x; \
312 typeof(*(ptr)) __user *__pu_addr = (ptr); \
342 #define __put_user(x, ptr) \ argument
344 __typeof__(*(ptr)) volatile __gu_val = (x); \
348 __put_user_asm("sb", (ptr), __gu_val, __gu_err); \
351 __put_user_asm("sh", (ptr), __gu_val, __gu_err); \
354 __put_user_asm("sw", (ptr), __gu_val, __gu_err); \
357 __put_user_asm_8((ptr), __gu_val, __gu_err); \