Searched refs:mode_num (Results 1 – 3 of 3) sorted by relevance
623 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument625 const char *cipher_str = blk_crypto_modes[mode_num].cipher_str; in blk_crypto_fallback_start_using_mode()635 if (likely(smp_load_acquire(&tfms_inited[mode_num]))) in blk_crypto_fallback_start_using_mode()639 if (tfms_inited[mode_num]) in blk_crypto_fallback_start_using_mode()648 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0); in blk_crypto_fallback_start_using_mode()649 if (IS_ERR(slotp->tfms[mode_num])) { in blk_crypto_fallback_start_using_mode()650 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()656 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()660 crypto_skcipher_set_flags(slotp->tfms[mode_num], in blk_crypto_fallback_start_using_mode()668 smp_store_release(&tfms_inited[mode_num], true); in blk_crypto_fallback_start_using_mode()[all …]
74 int mode_num = a - __blk_crypto_mode_attrs; in blk_crypto_mode_is_visible() local76 if (profile->modes_supported[mode_num]) in blk_crypto_mode_is_visible()84 int mode_num = attr - __blk_crypto_mode_attrs; in blk_crypto_mode_show() local86 return sysfs_emit(page, "0x%x\n", profile->modes_supported[mode_num]); in blk_crypto_mode_show()
224 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num);233 blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument