Lines Matching +full:4 +full:x
11 #define __put_user_asm_b(x, ptr, err) \ argument
24 : "=r"(err), "=r"(x), "=r"(ptr), "=r"(errcode) \
25 : "0"(err), "1"(x), "2"(ptr), "3"(-EFAULT) \
29 #define __put_user_asm_h(x, ptr, err) \ argument
42 : "=r"(err), "=r"(x), "=r"(ptr), "=r"(errcode) \
43 : "0"(err), "1"(x), "2"(ptr), "3"(-EFAULT) \
47 #define __put_user_asm_w(x, ptr, err) \ argument
60 : "=r"(err), "=r"(x), "=r"(ptr), "=r"(errcode) \
61 : "0"(err), "1"(x), "2"(ptr), "3"(-EFAULT) \
65 #define __put_user_asm_64(x, ptr, err) \ argument
73 " ldw %3, (%1, 4) \n" \
74 "2: stw %3, (%2, 4) \n" \
75 " br 4f \n" \
76 "3: mov %0, %4 \n" \
77 " br 4f \n" \
83 "4: \n" \
84 : "=r"(err), "=r"(x), "=r"(ptr), \
86 : "0"(err), "1"(x), "2"(ptr), "3"(0), \
87 "4"(-EFAULT) \
91 static inline int __put_user_fn(size_t size, void __user *ptr, void *x) in __put_user_fn() argument
98 tmp = *(u8 *)x; in __put_user_fn()
102 tmp = *(u16 *)x; in __put_user_fn()
105 case 4: in __put_user_fn()
106 tmp = *(u32 *)x; in __put_user_fn()
110 __put_user_asm_64(x, (u64 *)ptr, retval); in __put_user_fn()
123 #define __get_user_asm_common(x, ptr, ins, err) \ argument
127 "1: " ins " %1, (%4, 0) \n" \
137 : "=r"(err), "=r"(x), "=r"(errcode) \
142 #define __get_user_asm_64(x, ptr, err) \ argument
150 "2: ldw %3, (%2, 4) \n" \
151 " stw %3, (%1, 4) \n" \
152 " br 4f \n" \
153 "3: mov %0, %4 \n" \
154 " br 4f \n" \
160 "4: \n" \
161 : "=r"(err), "=r"(x), "=r"(ptr), \
163 : "0"(err), "1"(x), "2"(ptr), "3"(0), \
164 "4"(-EFAULT) \
168 static inline int __get_user_fn(size_t size, const void __user *ptr, void *x) in __get_user_fn() argument
176 *(u8 *)x = (u8)tmp; in __get_user_fn()
180 *(u16 *)x = (u16)tmp; in __get_user_fn()
182 case 4: in __get_user_fn()
184 *(u32 *)x = (u32)tmp; in __get_user_fn()
187 __get_user_asm_64(x, ptr, retval); in __get_user_fn()