Lines Matching refs:df
60 struct data_file *df = get_incfs_data_file(filp); in incfs_get_root_hash() local
62 if (!df) in incfs_get_root_hash()
65 memcpy(root_hash, df->df_hash_tree->root_hash, in incfs_get_root_hash()
66 df->df_hash_tree->alg->digest_size); in incfs_get_root_hash()
78 struct data_file *df = get_incfs_data_file(filp); in incfs_end_enable_verity() local
84 if (!df || !df->df_backing_file_context) in incfs_end_enable_verity()
93 bfc = df->df_backing_file_context; in incfs_end_enable_verity()
120 df->df_verity_signature = vs; in incfs_end_enable_verity()
155 struct data_file *df; in incfs_get_verity_digest() local
163 df = node->n_file; in incfs_get_verity_digest()
172 &df->df_verity_file_digest.data); in incfs_get_verity_digest()
173 verity_file_digest.len = df->df_verity_file_digest.len; in incfs_get_verity_digest()
181 struct data_file *df; in incfs_set_verity_digest() local
189 df = node->n_file; in incfs_set_verity_digest()
190 df->df_verity_file_digest.len = verity_file_digest.len; in incfs_set_verity_digest()
199 if (cmpxchg_release(&df->df_verity_file_digest.data, NULL, in incfs_set_verity_digest()
296 static int incfs_build_merkle_tree(struct file *f, struct data_file *df, in incfs_build_merkle_tree() argument
318 limit = df->df_data_block_count; in incfs_build_merkle_tree()
420 struct data_file *df = get_incfs_data_file(f); in incfs_add_signature_record() local
432 if (!df) in incfs_add_signature_record()
435 if (df->df_header_flags & INCFS_FILE_MAPPED) in incfs_add_signature_record()
439 if (df->df_signature && df->df_hash_tree) in incfs_add_signature_record()
442 if (df->df_signature || df->df_hash_tree) in incfs_add_signature_record()
447 df->df_data_block_count); in incfs_add_signature_record()
451 bfc = df->df_backing_file_context; in incfs_add_signature_record()
470 error = incfs_build_merkle_tree(f, df, bfc, hash_tree, hash_offset, alg, in incfs_add_signature_record()
501 df->df_signature = signature; in incfs_add_signature_record()
508 smp_store_release(&df->df_hash_tree, hash_tree); in incfs_add_signature_record()
521 struct data_file *df = get_incfs_data_file(filp); in incfs_enable_verity() local
526 if (!df) in incfs_enable_verity()
529 err = mutex_lock_interruptible(&df->df_enable_verity); in incfs_enable_verity()
569 mutex_unlock(&df->df_enable_verity); in incfs_enable_verity()
615 struct data_file *df = get_incfs_data_file(filp); in incfs_get_verity_signature() local
620 if (!df || !df->df_backing_file_context) in incfs_get_verity_signature()
623 vs = df->df_verity_signature; in incfs_get_verity_signature()
638 res = incfs_kread(df->df_backing_file_context, in incfs_get_verity_signature()
751 struct data_file *df = get_incfs_data_file(filp); in incfs_read_merkle_tree() local
753 if (!df) in incfs_read_merkle_tree()
765 err = incfs_read_merkle_tree_blocks(tmp_buf, df, offset); in incfs_read_merkle_tree()