Lines Matching defs:to_copy
1416 unsigned int to_copy;
1427 to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size);
1430 memcpy(tag, dp, to_copy);
1432 if (memcmp(dp, tag, to_copy)) {
1433 memcpy(dp, tag, to_copy);
1434 dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy);
1440 if (unlikely(memcmp(dp, tag, to_copy)))
1442 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) {
1450 for (i = 0; i < to_copy; i++, ts--) {
1469 tag += to_copy;
1470 *metadata_offset += to_copy;
1477 hash_offset = (hash_offset + to_copy) % ic->tag_size;
1479 total_size -= to_copy;