Lines Matching refs:mount_crypt_stat

250 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)  in ecryptfs_destroy_mount_crypt_stat()  argument
254 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
256 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
258 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
266 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
267 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
735 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
737 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
739 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
741 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
743 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
746 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
754 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
760 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
763 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
775 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
789 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
792 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
798 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
824 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
826 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
830 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
833 mount_crypt_stat); in ecryptfs_new_file_context()
835 mount_crypt_stat); in ecryptfs_new_file_context()
842 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
844 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
848 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1283 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1288 mount_crypt_stat = in ecryptfs_i_size_init()
1289 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1290 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1322 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1323 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1431 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1433 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1436 mount_crypt_stat); in ecryptfs_read_metadata()
1471 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1504 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1511 || (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1519 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1541 mount_crypt_stat, in ecryptfs_encrypt_filename()
1949 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1958 || (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1973 mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1986 || (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1987 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2008 || (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
2009 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2063 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
2064 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
2070 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_decode_and_decrypt_filename()
2071 && !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_decode_and_decrypt_filename()
2095 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2122 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2129 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2135 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()