Lines Matching refs:tocopy
106 int tocopy; in __copy_to_user_memcpy() local
117 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
118 if (tocopy > n) in __copy_to_user_memcpy()
119 tocopy = n; in __copy_to_user_memcpy()
122 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
124 to += tocopy; in __copy_to_user_memcpy()
125 from += tocopy; in __copy_to_user_memcpy()
126 n -= tocopy; in __copy_to_user_memcpy()
174 int tocopy; in __clear_user_memset() local
183 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
184 if (tocopy > n) in __clear_user_memset()
185 tocopy = n; in __clear_user_memset()
188 memset((void *)addr, 0, tocopy); in __clear_user_memset()
190 addr += tocopy; in __clear_user_memset()
191 n -= tocopy; in __clear_user_memset()