Lines Matching refs:tocopy
103 int tocopy; in __copy_to_user_memcpy() local
114 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
115 if (tocopy > n) in __copy_to_user_memcpy()
116 tocopy = n; in __copy_to_user_memcpy()
119 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
121 to += tocopy; in __copy_to_user_memcpy()
122 from += tocopy; in __copy_to_user_memcpy()
123 n -= tocopy; in __copy_to_user_memcpy()
172 int tocopy; in __clear_user_memset() local
181 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
182 if (tocopy > n) in __clear_user_memset()
183 tocopy = n; in __clear_user_memset()
186 memset((void *)addr, 0, tocopy); in __clear_user_memset()
188 addr += tocopy; in __clear_user_memset()
189 n -= tocopy; in __clear_user_memset()