Lines Matching defs:pos
1363 static bool test_journal_node(struct dm_integrity_c *ic, unsigned int pos, sector_t sector)
1368 if (unlikely(pos >= ic->journal_entries))
1370 node = &ic->journal_tree[pos];
1722 unsigned pos = 0;
1771 memcpy(mem + pos, buffer, ic->sectors_per_block << SECTOR_SHIFT);
1774 pos += ic->sectors_per_block << SECTOR_SHIFT;
1777 } while (pos < bv.bv_len);
1850 unsigned int pos;
1855 pos = 0;
1858 integrity_sector_checksum(ic, sector, mem + pos, checksums_ptr);
1861 pos += ic->sectors_per_block << SECTOR_SHIFT;
1863 } while (pos < bv_copy.bv_len && sectors_to_process && checksums != checksums_onstack);
1881 if (unlikely(pos < bv_copy.bv_len)) {
1882 bv_copy.bv_offset += pos;
1883 bv_copy.bv_len -= pos;
2211 unsigned int next_entry, i, pos;
2233 pos = journal_section * ic->journal_section_entries + journal_entry;
2240 add_journal_node(ic, &ic->journal_tree[pos], dio->range.logical_sector + i);
2241 pos++;
2242 if (unlikely(pos >= ic->journal_entries))
2243 pos = 0;
3356 DEBUG_print("recalc pos: %llx / %llx\n", recalc_pos, ic->provided_data_sectors);