Lines Matching refs:vi
42 static inline int cmp_hashes(const struct fsverity_info *vi, in cmp_hashes() argument
46 const unsigned int hsize = vi->tree_params.digest_size; in cmp_hashes()
51 fsverity_err(vi->inode, in cmp_hashes()
54 vi->tree_params.hash_alg->name, hsize, want_hash, in cmp_hashes()
55 vi->tree_params.hash_alg->name, hsize, real_hash); in cmp_hashes()
76 static bool verify_page(struct inode *inode, const struct fsverity_info *vi, in verify_page() argument
80 const struct merkle_tree_params *params = &vi->tree_params; in verify_page()
135 want_hash = vi->root_hash; in verify_page()
147 err = cmp_hashes(vi, want_hash, real_hash, index, level - 1); in verify_page()
162 err = cmp_hashes(vi, want_hash, real_hash, index, -1); in verify_page()
182 const struct fsverity_info *vi = inode->i_verity_info; in fsverity_verify_page() local
187 req = fsverity_alloc_hash_request(vi->tree_params.hash_alg, GFP_NOFS); in fsverity_verify_page()
189 valid = verify_page(inode, vi, req, page, 0); in fsverity_verify_page()
191 fsverity_free_hash_request(vi->tree_params.hash_alg, req); in fsverity_verify_page()
216 const struct fsverity_info *vi = inode->i_verity_info; in fsverity_verify_bio() local
217 const struct merkle_tree_params *params = &vi->tree_params; in fsverity_verify_bio()
248 !verify_page(inode, vi, req, page, level0_ra_pages)) in fsverity_verify_bio()