Searched refs:mode_num (Results 1 – 7 of 7) sorted by relevance
611 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument613 const char *cipher_str = blk_crypto_modes[mode_num].cipher_str; in blk_crypto_fallback_start_using_mode()623 if (likely(smp_load_acquire(&tfms_inited[mode_num]))) in blk_crypto_fallback_start_using_mode()627 if (tfms_inited[mode_num]) in blk_crypto_fallback_start_using_mode()636 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0); in blk_crypto_fallback_start_using_mode()637 if (IS_ERR(slotp->tfms[mode_num])) { in blk_crypto_fallback_start_using_mode()638 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()644 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()648 crypto_skcipher_set_flags(slotp->tfms[mode_num], in blk_crypto_fallback_start_using_mode()656 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()
194 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num);203 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),
180 const u8 mode_num = mode - fscrypt_modes; in setup_per_mode_enc_key() local183 u8 hkdf_info[sizeof(mode_num) + sizeof(sb->s_uuid)]; in setup_per_mode_enc_key()187 if (WARN_ON(mode_num > FSCRYPT_MODE_MAX)) in setup_per_mode_enc_key()190 prep_key = &keys[mode_num]; in setup_per_mode_enc_key()201 BUILD_BUG_ON(sizeof(mode_num) != 1); in setup_per_mode_enc_key()204 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()