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()
170 int tocopy; in __clear_user_memset() local
179 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
180 if (tocopy > n) in __clear_user_memset()
181 tocopy = n; in __clear_user_memset()
184 __memset((void *)addr, 0, tocopy); in __clear_user_memset()
186 addr += tocopy; in __clear_user_memset()
187 n -= tocopy; in __clear_user_memset()