Lines Matching refs:tocopy
108 int tocopy; in __copy_to_user_memcpy() local
119 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
120 if (tocopy > n) in __copy_to_user_memcpy()
121 tocopy = n; in __copy_to_user_memcpy()
124 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
126 to += tocopy; in __copy_to_user_memcpy()
127 from += tocopy; in __copy_to_user_memcpy()
128 n -= tocopy; in __copy_to_user_memcpy()
177 int tocopy; in __clear_user_memset() local
186 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
187 if (tocopy > n) in __clear_user_memset()
188 tocopy = n; in __clear_user_memset()
191 memset((void *)addr, 0, tocopy); in __clear_user_memset()
193 addr += tocopy; in __clear_user_memset()
194 n -= tocopy; in __clear_user_memset()