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()
121 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
122 to += tocopy; in __copy_to_user_memcpy()
123 from += tocopy; in __copy_to_user_memcpy()
124 n -= tocopy; in __copy_to_user_memcpy()
165 int tocopy; in __clear_user_memset() local
174 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
175 if (tocopy > n) in __clear_user_memset()
176 tocopy = n; in __clear_user_memset()
178 memset((void *)addr, 0, tocopy); in __clear_user_memset()
179 addr += tocopy; in __clear_user_memset()
180 n -= tocopy; in __clear_user_memset()