Lines Matching defs:res
44 #define __put_user_asm(res, x, ptr, bwl, reg, err) \
59 : "+d" (res), "=m" (*(ptr)) \
115 #define __get_user_asm(res, x, ptr, type, bwl, reg, err) ({ \
131 : "+d" (res), "=&" #reg (__gu_val) \
189 #define __constant_copy_from_user_asm(res, to, from, tmp, n, s1, s2, s3)\
219 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \
225 unsigned long res = 0, tmp;
229 __get_user_asm(res, *(u8 *)to, (u8 __user *)from, u8, b, d, 1);
232 __get_user_asm(res, *(u16 *)to, (u16 __user *)from, u16, w, d, 2);
235 __constant_copy_from_user_asm(res, to, from, tmp, 3, w, b,);
238 __get_user_asm(res, *(u32 *)to, (u32 __user *)from, u32, l, r, 4);
241 __constant_copy_from_user_asm(res, to, from, tmp, 5, l, b,);
244 __constant_copy_from_user_asm(res, to, from, tmp, 6, l, w,);
247 __constant_copy_from_user_asm(res, to, from, tmp, 7, l, w, b);
250 __constant_copy_from_user_asm(res, to, from, tmp, 8, l, l,);
253 __constant_copy_from_user_asm(res, to, from, tmp, 9, l, l, b);
256 __constant_copy_from_user_asm(res, to, from, tmp, 10, l, l, w);
259 __constant_copy_from_user_asm(res, to, from, tmp, 12, l, l, l);
266 return res;
269 #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3) \
300 : "+d" (res), "+a" (to), "+a" (from), "=&d" (tmp) \
306 unsigned long res = 0, tmp;
310 __put_user_asm(res, *(u8 *)from, (u8 __user *)to, b, d, 1);
313 __put_user_asm(res, *(u16 *)from, (u16 __user *)to, w, d, 2);
316 __constant_copy_to_user_asm(res, to, from, tmp, 3, w, b,);
319 __put_user_asm(res, *(u32 *)from, (u32 __user *)to, l, r, 4);
322 __constant_copy_to_user_asm(res, to, from, tmp, 5, l, b,);
325 __constant_copy_to_user_asm(res, to, from, tmp, 6, l, w,);
328 __constant_copy_to_user_asm(res, to, from, tmp, 7, l, w, b);
331 __constant_copy_to_user_asm(res, to, from, tmp, 8, l, l,);
334 __constant_copy_to_user_asm(res, to, from, tmp, 9, l, l, b);
337 __constant_copy_to_user_asm(res, to, from, tmp, 10, l, l, w);
340 __constant_copy_to_user_asm(res, to, from, tmp, 12, l, l, l);
347 return res;