Lines Matching refs:tocopy
76 int tocopy; in __copy_to_user_memcpy() local
87 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
88 if (tocopy > n) in __copy_to_user_memcpy()
89 tocopy = n; in __copy_to_user_memcpy()
91 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
92 to += tocopy; in __copy_to_user_memcpy()
93 from += tocopy; in __copy_to_user_memcpy()
94 n -= tocopy; in __copy_to_user_memcpy()
132 int tocopy; in __clear_user_memset() local
141 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
142 if (tocopy > n) in __clear_user_memset()
143 tocopy = n; in __clear_user_memset()
145 memset((void *)addr, 0, tocopy); in __clear_user_memset()
146 addr += tocopy; in __clear_user_memset()
147 n -= tocopy; in __clear_user_memset()