Searched refs:mode_num (Results 1 – 7 of 7) sorted by relevance
621 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument623 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()[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()
210 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num);219 blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument
25 unsigned int mode_num; member44 for (i = 0; i < priv->chip->mode_num; i++) { in es7134_check_mclk()189 .mode_num = ARRAY_SIZE(es7134_modes),266 .mode_num = ARRAY_SIZE(es7154_modes),
23 unsigned int mode_num; member95 for (i = 0; i < priv->chip->mode_num; i++) { in es7241_hw_params()208 .mode_num = ARRAY_SIZE(es7241_modes),
195 const u8 mode_num = mode - fscrypt_modes; in setup_per_mode_enc_key() local198 u8 hkdf_info[sizeof(mode_num) + sizeof(sb->s_uuid)]; in setup_per_mode_enc_key()202 if (WARN_ON_ONCE(mode_num > FSCRYPT_MODE_MAX)) in setup_per_mode_enc_key()205 prep_key = &keys[mode_num]; in setup_per_mode_enc_key()216 BUILD_BUG_ON(sizeof(mode_num) != 1); in setup_per_mode_enc_key()219 hkdf_info[hkdf_infolen++] = mode_num; in setup_per_mode_enc_key()
72 int mode_num = adev->dma_mode & 0x0F; in hpt3x3_set_dmamode() local78 r1 |= (mode_num << (3 * dn)); in hpt3x3_set_dmamode()