Lines Matching refs:mode_num
621 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument
623 const char *cipher_str = blk_crypto_modes[mode_num].cipher_str; in blk_crypto_fallback_start_using_mode()
633 if (likely(smp_load_acquire(&tfms_inited[mode_num]))) in blk_crypto_fallback_start_using_mode()
637 if (tfms_inited[mode_num]) in blk_crypto_fallback_start_using_mode()
646 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0); in blk_crypto_fallback_start_using_mode()
647 if (IS_ERR(slotp->tfms[mode_num])) { in blk_crypto_fallback_start_using_mode()
648 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
654 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()
658 crypto_skcipher_set_flags(slotp->tfms[mode_num], in blk_crypto_fallback_start_using_mode()
666 smp_store_release(&tfms_inited[mode_num], true); in blk_crypto_fallback_start_using_mode()
672 crypto_free_skcipher(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
673 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()