Lines Matching refs:ptr
193 #define get_user(x, ptr) \ argument
194 __get_user_check((x), (ptr), sizeof(*(ptr)))
196 #define __get_user_check(x, ptr, size) \ argument
199 const typeof(*(ptr)) __user *__gu_addr = (ptr); \
223 x = (__force typeof(*(ptr)))__gu_val; \
227 #define __get_user(x, ptr) \ argument
232 switch (sizeof(*(ptr))) { \
234 __get_user_asm("lbu", (ptr), __gu_val, __gu_err); \
237 __get_user_asm("lhu", (ptr), __gu_val, __gu_err); \
240 __get_user_asm("lw", (ptr), __gu_val, __gu_err); \
245 x = (__force __typeof__(*(ptr))) __gu_val; \
304 #define put_user(x, ptr) \ argument
305 __put_user_check((x), (ptr), sizeof(*(ptr)))
307 #define __put_user_check(x, ptr, size) \ argument
309 typeof(*(ptr)) volatile __pu_val = x; \
310 typeof(*(ptr)) __user *__pu_addr = (ptr); \
340 #define __put_user(x, ptr) \ argument
342 __typeof__(*(ptr)) volatile __gu_val = (x); \
346 __put_user_asm("sb", (ptr), __gu_val, __gu_err); \
349 __put_user_asm("sh", (ptr), __gu_val, __gu_err); \
352 __put_user_asm("sw", (ptr), __gu_val, __gu_err); \
355 __put_user_asm_8((ptr), __gu_val, __gu_err); \