Lines Matching +full:3 +full:x
11 #define __put_user_asm_b(x, ptr, err) \ argument
16 " br 3f \n" \
17 "2: mov %0, %3 \n" \
18 " br 3f \n" \
23 "3: \n" \
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
34 " br 3f \n" \
35 "2: mov %0, %3 \n" \
36 " br 3f \n" \
41 "3: \n" \
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
52 " br 3f \n" \
53 "2: mov %0, %3 \n" \
54 " br 3f \n" \
59 "3: \n" \
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
71 " ldw %3, (%1, 0) \n" \
72 "1: stw %3, (%2, 0) \n" \
73 " ldw %3, (%1, 4) \n" \
74 "2: stw %3, (%2, 4) \n" \
76 "3: mov %0, %4 \n" \
80 ".long 1b, 3b \n" \
81 ".long 2b, 3b \n" \
84 : "=r"(err), "=r"(x), "=r"(ptr), \
86 : "0"(err), "1"(x), "2"(ptr), "3"(0), \
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()
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
128 " br 3f \n" \
131 " br 3f \n" \
136 "3: \n" \
137 : "=r"(err), "=r"(x), "=r"(errcode) \
142 #define __get_user_asm_64(x, ptr, err) \ argument
148 "1: ldw %3, (%2, 0) \n" \
149 " stw %3, (%1, 0) \n" \
150 "2: ldw %3, (%2, 4) \n" \
151 " stw %3, (%1, 4) \n" \
153 "3: mov %0, %4 \n" \
157 ".long 1b, 3b \n" \
158 ".long 2b, 3b \n" \
161 : "=r"(err), "=r"(x), "=r"(ptr), \
163 : "0"(err), "1"(x), "2"(ptr), "3"(0), \
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()
184 *(u32 *)x = (u32)tmp; in __get_user_fn()
187 __get_user_asm_64(x, ptr, retval); in __get_user_fn()