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));
651 * @mount_crypt_stat: The mount point's cryptographic context
658 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
660 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED)
662 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)
664 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) {
666 if (mount_crypt_stat->flags
669 else if (mount_crypt_stat->flags
677 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
683 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex);
686 &mount_crypt_stat->global_auth_tok_list,
698 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex);
706 * @mount_crypt_stat: The mount point's cryptographic context
712 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
715 mount_crypt_stat);
721 crypt_stat->mount_crypt_stat = mount_crypt_stat;
747 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
749 ecryptfs_inode->i_sb)->mount_crypt_stat;
753 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat);
756 mount_crypt_stat);
758 mount_crypt_stat);
765 strlen(mount_crypt_stat->global_default_cipher_name);
767 mount_crypt_stat->global_default_cipher_name,
771 mount_crypt_stat->global_default_cipher_key_size;
1215 struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
1220 mount_crypt_stat =
1221 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat;
1222 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) {
1254 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private(
1255 ecryptfs_dentry->d_sb)->mount_crypt_stat;
1363 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
1365 ecryptfs_dentry->d_sb)->mount_crypt_stat;
1368 mount_crypt_stat);
1401 if (crypt_stat->mount_crypt_stat->flags
1433 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
1439 if (mount_crypt_stat && (mount_crypt_stat->flags
1447 mount_crypt_stat, NULL,
1466 mount_crypt_stat,
1852 * @mount_crypt_stat: The crypt_stat struct associated with the file name to encode
1867 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
1875 if (mount_crypt_stat && (mount_crypt_stat->flags
1886 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat);
1897 if (mount_crypt_stat
1898 && (mount_crypt_stat->flags
1914 if (mount_crypt_stat
1915 && (mount_crypt_stat->flags
1979 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
1980 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat;
1986 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) &&
1987 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) {
2016 mount_crypt_stat,
2040 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
2047 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) {
2053 mount_crypt_stat->global_default_fn_cipher_name);