Lines Matching refs:res
60 #define __put_user_asm(res, x, ptr, bwl, reg, err) \ argument
75 : "+d" (res), "=m" (*(ptr)) \
131 #define __get_user_asm(res, x, ptr, type, bwl, reg, err) ({ \ argument
147 : "+d" (res), "=&" #reg (__gu_val) \
205 #define __constant_copy_from_user_asm(res, to, from, tmp, n, s1, s2, s3)\ argument
235 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \
241 unsigned long res = 0, tmp; in __constant_copy_from_user() local
245 __get_user_asm(res, *(u8 *)to, (u8 __user *)from, u8, b, d, 1); in __constant_copy_from_user()
248 __get_user_asm(res, *(u16 *)to, (u16 __user *)from, u16, w, r, 2); in __constant_copy_from_user()
251 __constant_copy_from_user_asm(res, to, from, tmp, 3, w, b,); in __constant_copy_from_user()
254 __get_user_asm(res, *(u32 *)to, (u32 __user *)from, u32, l, r, 4); in __constant_copy_from_user()
257 __constant_copy_from_user_asm(res, to, from, tmp, 5, l, b,); in __constant_copy_from_user()
260 __constant_copy_from_user_asm(res, to, from, tmp, 6, l, w,); in __constant_copy_from_user()
263 __constant_copy_from_user_asm(res, to, from, tmp, 7, l, w, b); in __constant_copy_from_user()
266 __constant_copy_from_user_asm(res, to, from, tmp, 8, l, l,); in __constant_copy_from_user()
269 __constant_copy_from_user_asm(res, to, from, tmp, 9, l, l, b); in __constant_copy_from_user()
272 __constant_copy_from_user_asm(res, to, from, tmp, 10, l, l, w); in __constant_copy_from_user()
275 __constant_copy_from_user_asm(res, to, from, tmp, 12, l, l, l); in __constant_copy_from_user()
282 return res; in __constant_copy_from_user()
285 #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3) \ argument
316 : "+d" (res), "+a" (to), "+a" (from), "=&d" (tmp) \
322 unsigned long res = 0, tmp; in __constant_copy_to_user() local
326 __put_user_asm(res, *(u8 *)from, (u8 __user *)to, b, d, 1); in __constant_copy_to_user()
329 __put_user_asm(res, *(u16 *)from, (u16 __user *)to, w, r, 2); in __constant_copy_to_user()
332 __constant_copy_to_user_asm(res, to, from, tmp, 3, w, b,); in __constant_copy_to_user()
335 __put_user_asm(res, *(u32 *)from, (u32 __user *)to, l, r, 4); in __constant_copy_to_user()
338 __constant_copy_to_user_asm(res, to, from, tmp, 5, l, b,); in __constant_copy_to_user()
341 __constant_copy_to_user_asm(res, to, from, tmp, 6, l, w,); in __constant_copy_to_user()
344 __constant_copy_to_user_asm(res, to, from, tmp, 7, l, w, b); in __constant_copy_to_user()
347 __constant_copy_to_user_asm(res, to, from, tmp, 8, l, l,); in __constant_copy_to_user()
350 __constant_copy_to_user_asm(res, to, from, tmp, 9, l, l, b); in __constant_copy_to_user()
353 __constant_copy_to_user_asm(res, to, from, tmp, 10, l, l, w); in __constant_copy_to_user()
356 __constant_copy_to_user_asm(res, to, from, tmp, 12, l, l, l); in __constant_copy_to_user()
363 return res; in __constant_copy_to_user()