Lines Matching +full:2 +full:x
11 #define __put_user_asm_b(x, ptr, err) \ argument
15 "1: stb %1, (%2,0) \n" \
17 "2: mov %0, %3 \n" \
20 ".align 2 \n" \
21 ".long 1b,2b \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
33 "1: sth %1, (%2,0) \n" \
35 "2: mov %0, %3 \n" \
38 ".align 2 \n" \
39 ".long 1b,2b \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
51 "1: stw %1, (%2,0) \n" \
53 "2: mov %0, %3 \n" \
56 ".align 2 \n" \
57 ".long 1b, 2b \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
72 "1: stw %3, (%2, 0) \n" \
74 "2: stw %3, (%2, 4) \n" \
79 ".align 2 \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()
101 case 2: 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
129 "2: mov %0, %2 \n" \
133 ".align 2 \n" \
134 ".long 1b, 2b \n" \
137 : "=r"(err), "=r"(x), "=r"(errcode) \
138 : "0"(0), "r"(ptr), "2"(-EFAULT) \
142 #define __get_user_asm_64(x, ptr, err) \ argument
148 "1: ldw %3, (%2, 0) \n" \
150 "2: ldw %3, (%2, 4) \n" \
156 ".align 2 \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()
178 case 2: 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()