Lines Matching refs:to_copy
1322 unsigned to_copy; in dm_integrity_rw_tag() local
1333 to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size); in dm_integrity_rw_tag()
1336 memcpy(tag, dp, to_copy); in dm_integrity_rw_tag()
1338 memcpy(dp, tag, to_copy); in dm_integrity_rw_tag()
1339 dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy); in dm_integrity_rw_tag()
1344 if (unlikely(memcmp(dp, tag, to_copy))) in dm_integrity_rw_tag()
1346 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) { in dm_integrity_rw_tag()
1354 for (i = 0; i < to_copy; i++, ts--) { in dm_integrity_rw_tag()
1373 tag += to_copy; in dm_integrity_rw_tag()
1374 *metadata_offset += to_copy; in dm_integrity_rw_tag()
1381 hash_offset = (hash_offset + to_copy) % ic->tag_size; in dm_integrity_rw_tag()
1384 total_size -= to_copy; in dm_integrity_rw_tag()