Home
last modified time | relevance | path

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

/linux-6.1.9/block/
Dblk-crypto-fallback.c611 int blk_crypto_fallback_start_using_mode(enum blk_crypto_mode_num mode_num) in blk_crypto_fallback_start_using_mode() argument
613 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 …]
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.h194 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
/linux-6.1.9/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.1.9/fs/crypto/
Dkeysetup.c180 const u8 mode_num = mode - fscrypt_modes; in setup_per_mode_enc_key() local
183 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()
/linux-6.1.9/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()