Lines Matching refs:vi
52 static inline int cmp_hashes(const struct fsverity_info *vi, in cmp_hashes() argument
56 const unsigned int hsize = vi->tree_params.digest_size; in cmp_hashes()
61 fsverity_err(vi->inode, in cmp_hashes()
64 vi->tree_params.hash_alg->name, hsize, want_hash, in cmp_hashes()
65 vi->tree_params.hash_alg->name, hsize, real_hash); in cmp_hashes()
86 static bool verify_page(struct inode *inode, const struct fsverity_info *vi, in verify_page() argument
90 const struct merkle_tree_params *params = &vi->tree_params; in verify_page()
145 want_hash = vi->root_hash; in verify_page()
157 err = cmp_hashes(vi, want_hash, real_hash, index, level - 1); in verify_page()
172 err = cmp_hashes(vi, want_hash, real_hash, index, -1); in verify_page()
192 const struct fsverity_info *vi = inode->i_verity_info; in fsverity_verify_page() local
197 req = fsverity_alloc_hash_request(vi->tree_params.hash_alg, GFP_NOFS); in fsverity_verify_page()
199 valid = verify_page(inode, vi, req, page, 0); in fsverity_verify_page()
201 fsverity_free_hash_request(vi->tree_params.hash_alg, req); in fsverity_verify_page()
226 const struct fsverity_info *vi = inode->i_verity_info; in fsverity_verify_bio() local
227 const struct merkle_tree_params *params = &vi->tree_params; in fsverity_verify_bio()
258 !verify_page(inode, vi, req, page, level0_ra_pages)) in fsverity_verify_bio()