Lines Matching refs:size
21 static unsigned long compute_size(unsigned long start, unsigned long size, unsigned long *offset) in compute_size() argument
24 unsigned long end = start + size; in compute_size()
30 size = end - fault_addr; in compute_size()
32 return size; in compute_size()
35 unsigned long copy_from_user_fixup(void *to, const void __user *from, unsigned long size) in copy_from_user_fixup() argument
39 size = compute_size((unsigned long) from, size, &offset); in copy_from_user_fixup()
40 if (likely(size)) in copy_from_user_fixup()
41 memset(to + offset, 0, size); in copy_from_user_fixup()
43 return size; in copy_from_user_fixup()
47 unsigned long copy_to_user_fixup(void __user *to, const void *from, unsigned long size) in copy_to_user_fixup() argument
51 return compute_size((unsigned long) to, size, &offset); in copy_to_user_fixup()
55 unsigned long copy_in_user_fixup(void __user *to, void __user *from, unsigned long size) in copy_in_user_fixup() argument
59 unsigned long end = start + size; in copy_in_user_fixup()
65 end = start + size; in copy_in_user_fixup()
69 return size; in copy_in_user_fixup()