Searched refs:hash_per_block_bits (Results 1 - 2 of 2) sorted by relevance

/linux-master/drivers/md/
H A Ddm-verity.h53 unsigned char hash_per_block_bits; /* log2(hashes in hash block) */ member in struct:dm_verity
H A Ddm-verity-target.c96 * The lowest "hash_per_block_bits"-bits of the result denote hash position
102 return block >> (level * v->hash_per_block_bits);
209 *hash_block = v->hash_level_block[level] + (position >> v->hash_per_block_bits);
214 idx = position & ((1 << v->hash_per_block_bits) - 1);
218 *offset = idx << (v->hash_dev_block_bits - v->hash_per_block_bits);
1437 v->hash_per_block_bits =
1442 while (v->hash_per_block_bits * v->levels < 64 &&
1444 (v->hash_per_block_bits * v->levels))
1458 s = (v->data_blocks + ((sector_t)1 << ((i + 1) * v->hash_per_block_bits)) - 1)
1459 >> ((i + 1) * v->hash_per_block_bits);
[all...]

Completed in 127 milliseconds