Lines Matching defs:mount_crypt_stat

200 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
204 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED))
206 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex);
208 &mount_crypt_stat->global_auth_tok_list,
215 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex);
216 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat));
678 * @mount_crypt_stat: The mount point's cryptographic context
685 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
687 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED)
689 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)
691 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) {
693 if (mount_crypt_stat->flags
696 else if (mount_crypt_stat->flags
704 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
710 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex);
713 &mount_crypt_stat->global_auth_tok_list,
725 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex);
733 * @mount_crypt_stat: The mount point's cryptographic context
739 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
742 mount_crypt_stat);
748 crypt_stat->mount_crypt_stat = mount_crypt_stat;
774 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
776 ecryptfs_inode->i_sb)->mount_crypt_stat;
780 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat);
783 mount_crypt_stat);
785 mount_crypt_stat);
792 strlen(mount_crypt_stat->global_default_cipher_name);
794 mount_crypt_stat->global_default_cipher_name,
798 mount_crypt_stat->global_default_cipher_key_size;
1242 struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
1247 mount_crypt_stat =
1248 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat;
1249 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) {
1281 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private(
1282 ecryptfs_dentry->d_sb)->mount_crypt_stat;
1390 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
1392 ecryptfs_dentry->d_sb)->mount_crypt_stat;
1395 mount_crypt_stat);
1428 if (crypt_stat->mount_crypt_stat->flags
1460 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
1466 if (mount_crypt_stat && (mount_crypt_stat->flags
1474 mount_crypt_stat, NULL,
1493 mount_crypt_stat,
1894 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
1902 if (mount_crypt_stat && (mount_crypt_stat->flags
1913 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat);
1924 if (mount_crypt_stat
1925 && (mount_crypt_stat->flags
1941 if (mount_crypt_stat
1942 && (mount_crypt_stat->flags
2006 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
2007 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat;
2013 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) &&
2014 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) {
2043 mount_crypt_stat,
2067 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
2074 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) {
2080 mount_crypt_stat->global_default_fn_cipher_name);