Lines Matching refs:tocopy
107 int tocopy; in __copy_to_user_memcpy() local
118 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
119 if (tocopy > n) in __copy_to_user_memcpy()
120 tocopy = n; in __copy_to_user_memcpy()
123 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
125 to += tocopy; in __copy_to_user_memcpy()
126 from += tocopy; in __copy_to_user_memcpy()
127 n -= tocopy; in __copy_to_user_memcpy()
175 int tocopy; in __clear_user_memset() local
184 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
185 if (tocopy > n) in __clear_user_memset()
186 tocopy = n; in __clear_user_memset()
189 memset((void *)addr, 0, tocopy); in __clear_user_memset()
191 addr += tocopy; in __clear_user_memset()
192 n -= tocopy; in __clear_user_memset()