Lines Matching refs:to_copy
1426 unsigned int to_copy; in dm_integrity_rw_tag() local
1437 to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size); in dm_integrity_rw_tag()
1440 memcpy(tag, dp, to_copy); in dm_integrity_rw_tag()
1442 if (memcmp(dp, tag, to_copy)) { in dm_integrity_rw_tag()
1443 memcpy(dp, tag, to_copy); in dm_integrity_rw_tag()
1444 dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy); in dm_integrity_rw_tag()
1450 if (unlikely(memcmp(dp, tag, to_copy))) in dm_integrity_rw_tag()
1452 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) { in dm_integrity_rw_tag()
1460 for (i = 0; i < to_copy; i++, ts--) { in dm_integrity_rw_tag()
1479 tag += to_copy; in dm_integrity_rw_tag()
1480 *metadata_offset += to_copy; in dm_integrity_rw_tag()
1487 hash_offset = (hash_offset + to_copy) % ic->tag_size; in dm_integrity_rw_tag()
1489 total_size -= to_copy; in dm_integrity_rw_tag()