Lines Matching refs:tfm_mutex
595 struct mutex *tfm_mutex; member
643 &s->tfm_mutex, mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_write_tag_70_packet()
650 mutex_lock(s->tfm_mutex); in ecryptfs_write_tag_70_packet()
804 mutex_unlock(s->tfm_mutex); in ecryptfs_write_tag_70_packet()
823 struct mutex *tfm_mutex; member
931 &s->tfm_mutex, in ecryptfs_parse_tag_70_packet()
939 mutex_lock(s->tfm_mutex); in ecryptfs_parse_tag_70_packet()
1041 mutex_unlock(s->tfm_mutex); in ecryptfs_parse_tag_70_packet()
1614 struct mutex *tfm_mutex; in decrypt_passphrase_encrypted_session_key() local
1627 rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&tfm, &tfm_mutex, in decrypt_passphrase_encrypted_session_key()
1657 mutex_lock(tfm_mutex); in decrypt_passphrase_encrypted_session_key()
1660 mutex_unlock(tfm_mutex); in decrypt_passphrase_encrypted_session_key()
1674 mutex_unlock(tfm_mutex); in decrypt_passphrase_encrypted_session_key()
1683 mutex_unlock(tfm_mutex); in decrypt_passphrase_encrypted_session_key()
2144 struct mutex *tfm_mutex = NULL; in write_tag_3_packet() local
2157 rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&tfm, &tfm_mutex, in write_tag_3_packet()
2239 mutex_lock(tfm_mutex); in write_tag_3_packet()
2243 mutex_unlock(tfm_mutex); in write_tag_3_packet()
2251 mutex_unlock(tfm_mutex); in write_tag_3_packet()
2268 mutex_unlock(tfm_mutex); in write_tag_3_packet()