Lines Matching defs:level
71 static int build_merkle_tree_level(struct file *filp, unsigned int level,
88 if (level < params->num_levels) {
89 dst_block_num = params->level_start[level];
102 pr_debug("Hashing block %llu of %llu for level %u\n",
103 i + 1, num_blocks_to_hash, level);
105 if (level == 0) {
121 /* Non-leaf: hashing hash block from level below */
123 params->level_start[level - 1] + i,
129 err, params->level_start[level - 1] + i);
141 if (level == params->num_levels) /* Root hash? */
187 unsigned int level;
204 * Build each level of the Merkle tree, starting at the leaf level
205 * (level 0) and ascending to the root node (level 'num_levels - 1').
206 * Then at the end (level 'num_levels'), calculate the root hash.
210 for (level = 0; level <= params->num_levels; level++) {
211 err = build_merkle_tree_level(filp, level, blocks, params,