Home
last modified time | relevance | path

Searched refs:mode_num (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/block/
Dblk-crypto-fallback.c621 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()
[all …]
Dblk-crypto-sysfs.c74 int mode_num = a - __blk_crypto_mode_attrs; in blk_crypto_mode_is_visible() local
76 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() local
86 return sysfs_emit(page, "0x%x\n", profile->modes_supported[mode_num]); in blk_crypto_mode_show()
Dblk-crypto-internal.h210 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
/linux-6.6.21/sound/soc/codecs/
Des7134.c25 unsigned int mode_num; member
44 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),
Des7241.c23 unsigned int mode_num; member
95 for (i = 0; i < priv->chip->mode_num; i++) { in es7241_hw_params()
208 .mode_num = ARRAY_SIZE(es7241_modes),
/linux-6.6.21/fs/crypto/
Dkeysetup.c195 const u8 mode_num = mode - fscrypt_modes; in setup_per_mode_enc_key() local
198 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()
/linux-6.6.21/drivers/ata/
Dpata_hpt3x3.c72 int mode_num = adev->dma_mode & 0x0F; in hpt3x3_set_dmamode() local
78 r1 |= (mode_num << (3 * dn)); in hpt3x3_set_dmamode()