Lines Matching refs:size
56 static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit) in __chk_range_not_ok() argument
58 if (__builtin_constant_p(size)) in __chk_range_not_ok()
59 return addr > limit - size; in __chk_range_not_ok()
61 addr += size; in __chk_range_not_ok()
62 if (addr < size) in __chk_range_not_ok()
68 #define __range_not_ok(addr, size, limit) \ argument
71 __chk_range_not_ok((unsigned long __force)(addr), size, limit); \
74 static inline int __access_ok(const void __user * addr, unsigned long size) in __access_ok() argument
79 static inline int access_ok(int type, const void __user * addr, unsigned long size) in access_ok() argument
131 #define __put_user_nocheck(data, addr, size) ({ \ argument
133 switch (size) { \
143 #define __put_user_asm(x, size, addr, ret) \ argument
146 "1:\t" "st"#size "a %1, [%2] %%asi\n\t" \
165 #define __get_user_nocheck(data, addr, size, type) ({ \ argument
168 switch (size) { \
182 #define __get_user_nocheck_ret(data, addr, size, type, retval) ({ \ argument
184 switch (size) { \
196 #define __get_user_asm(x, size, addr, ret) \ argument
199 "1:\t" "ld"#size "a [%2] %%asi, %1\n\t" \
217 #define __get_user_asm_ret(x, size, addr, retval) \ argument
221 "1:\t" "ld"#size "a [%1] %%asi, %0\n\n\t" \
230 "1:\t" "ld"#size "a [%1] %%asi, %0\n\n\t" \
247 unsigned long size);
249 unsigned long size);
251 copy_from_user(void *to, const void __user *from, unsigned long size) in copy_from_user() argument
253 unsigned long ret = ___copy_from_user(to, from, size); in copy_from_user()
256 ret = copy_from_user_fixup(to, from, size); in copy_from_user()
264 unsigned long size);
266 unsigned long size);
268 copy_to_user(void __user *to, const void *from, unsigned long size) in copy_to_user() argument
270 unsigned long ret = ___copy_to_user(to, from, size); in copy_to_user()
273 ret = copy_to_user_fixup(to, from, size); in copy_to_user()
280 unsigned long size);
282 unsigned long size);
284 copy_in_user(void __user *to, void __user *from, unsigned long size) in copy_in_user() argument
286 unsigned long ret = ___copy_in_user(to, from, size); in copy_in_user()
289 ret = copy_in_user_fixup(to, from, size); in copy_in_user()