Lines Matching refs:toCopy

1971 		size_t toCopy = std::min(size, sizeof(buffer));  in debug_memcpy()  local
1974 if (((addr_t)from + toCopy) % B_PAGE_SIZE < toCopy) in debug_memcpy()
1975 toCopy -= ((addr_t)from + toCopy) % B_PAGE_SIZE; in debug_memcpy()
1976 if (((addr_t)to + toCopy) % B_PAGE_SIZE < toCopy) in debug_memcpy()
1977 toCopy -= ((addr_t)to + toCopy) % B_PAGE_SIZE; in debug_memcpy()
1979 if (vm_debug_copy_page_memory(teamID, (void*)from, buffer, toCopy, in debug_memcpy()
1981 || vm_debug_copy_page_memory(teamID, to, buffer, toCopy, true) in debug_memcpy()
1986 from = (const uint8*)from + toCopy; in debug_memcpy()
1987 to = (uint8*)to + toCopy; in debug_memcpy()
1988 size -= toCopy; in debug_memcpy()
2036 size_t toCopy = std::min(maxSize, sizeof(buffer)); in debug_strlcpy() local
2039 if (((addr_t)from + toCopy) % B_PAGE_SIZE < toCopy) in debug_strlcpy()
2040 toCopy -= ((addr_t)from + toCopy) % B_PAGE_SIZE; in debug_strlcpy()
2041 if (((addr_t)to + toCopy) % B_PAGE_SIZE < toCopy) in debug_strlcpy()
2042 toCopy -= ((addr_t)to + toCopy) % B_PAGE_SIZE; in debug_strlcpy()
2045 if (vm_debug_copy_page_memory(teamID, (void*)from, buffer, toCopy, in debug_strlcpy()
2052 size_t length = strnlen(buffer, toCopy); in debug_strlcpy()
2053 bool endOfString = length < toCopy; in debug_strlcpy()
2055 from = (const char*)from + toCopy; in debug_strlcpy()
2061 toCopy = length + 1; in debug_strlcpy()
2071 toCopy = size; in debug_strlcpy()
2074 if (vm_debug_copy_page_memory(teamID, to, buffer, toCopy, true) in debug_strlcpy()
2079 to = (char*)to + toCopy; in debug_strlcpy()
2080 size -= toCopy; in debug_strlcpy()