Lines Matching refs:mount_crypt_stat

200 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)  in ecryptfs_destroy_mount_crypt_stat()  argument
204 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
206 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
208 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
215 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
216 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
661 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
663 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
665 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
667 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
669 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
672 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
680 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
686 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
689 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
701 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
715 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
718 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
724 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
750 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
752 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
756 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
759 mount_crypt_stat); in ecryptfs_new_file_context()
761 mount_crypt_stat); in ecryptfs_new_file_context()
768 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
770 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
774 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1218 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1223 mount_crypt_stat = in ecryptfs_i_size_init()
1224 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1225 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1257 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1258 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1366 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1368 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1371 mount_crypt_stat); in ecryptfs_read_metadata()
1404 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1436 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1442 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1450 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1469 mount_crypt_stat, in ecryptfs_encrypt_filename()
1868 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1876 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1887 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1898 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1899 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1915 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1916 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1970 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
1971 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
1977 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) && in ecryptfs_decode_and_decrypt_filename()
1978 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) { in ecryptfs_decode_and_decrypt_filename()
2007 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2031 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2038 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2044 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()