Lines Matching refs:level
26 pgoff_t dindex, unsigned int level, pgoff_t *hindex, 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()
54 pgoff_t index, int level) in cmp_hashes() argument
63 index, level, in cmp_hashes()
92 int level; in verify_page() local
110 for (level = 0; level < params->num_levels; level++) { in verify_page()
115 hash_at_level(params, index, level, &hindex, &hoffset); in verify_page()
118 level, hindex, hoffset); in verify_page()
140 hpages[level] = hpage; in verify_page()
141 hoffsets[level] = hoffset; in verify_page()
149 for (; level > 0; level--) { in verify_page()
150 struct page *hpage = hpages[level - 1]; in verify_page()
151 unsigned int hoffset = hoffsets[level - 1]; in verify_page()
156 err = cmp_hashes(vi, want_hash, real_hash, index, level - 1); in verify_page()
164 level - 1, params->hash_alg->name, hsize, want_hash); in verify_page()
173 for (; level > 0; level--) in verify_page()
174 put_page(hpages[level - 1]); in verify_page()