Lines Matching refs:params
25 static void hash_at_level(const struct merkle_tree_params *params, in hash_at_level() argument
32 position = dindex >> (level * params->log_arity); in hash_at_level()
35 *hindex = params->level_start[level] + (position >> params->log_arity); in hash_at_level()
38 *hoffset = (position & ((1 << params->log_arity) - 1)) << in hash_at_level()
39 (params->log_blocksize - params->log_arity); in hash_at_level()
89 const struct merkle_tree_params *params = &vi->tree_params; in verify_page() local
90 const unsigned int hsize = params->digest_size; in verify_page()
110 for (level = 0; level < params->num_levels; level++) { in verify_page()
115 hash_at_level(params, index, level, &hindex, &hoffset); in verify_page()
135 params->hash_alg->name, in verify_page()
146 params->hash_alg->name, hsize, want_hash); in verify_page()
153 err = fsverity_hash_page(params, inode, req, hpage, real_hash); in verify_page()
164 level - 1, params->hash_alg->name, hsize, want_hash); in verify_page()
168 err = fsverity_hash_page(params, inode, req, data_page, real_hash); in verify_page()