Searched refs:slotp (Results 1 – 3 of 3) sorted by relevance
93 struct blk_crypto_fallback_keyslot *slotp = &blk_crypto_keyslots[slot]; in blk_crypto_fallback_evict_keyslot() local94 enum blk_crypto_mode_num crypto_mode = slotp->crypto_mode; in blk_crypto_fallback_evict_keyslot()97 WARN_ON(slotp->crypto_mode == BLK_ENCRYPTION_MODE_INVALID); in blk_crypto_fallback_evict_keyslot()100 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()103 slotp->crypto_mode = BLK_ENCRYPTION_MODE_INVALID; in blk_crypto_fallback_evict_keyslot()111 struct blk_crypto_fallback_keyslot *slotp = &blk_crypto_keyslots[slot]; in blk_crypto_fallback_keyslot_program() local116 if (crypto_mode != slotp->crypto_mode && in blk_crypto_fallback_keyslot_program()117 slotp->crypto_mode != BLK_ENCRYPTION_MODE_INVALID) in blk_crypto_fallback_keyslot_program()120 slotp->crypto_mode = crypto_mode; in blk_crypto_fallback_keyslot_program()121 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_fallback_keyslot_program()[all …]
186 struct blk_ksm_keyslot *slotp; in blk_ksm_find_keyslot() local188 hlist_for_each_entry(slotp, head, hash_node) { in blk_ksm_find_keyslot()189 if (slotp->key == key) in blk_ksm_find_keyslot()190 return slotp; in blk_ksm_find_keyslot()
198 struct blk_crypto_keyslot *slotp; in blk_crypto_find_keyslot() local200 hlist_for_each_entry(slotp, head, hash_node) { in blk_crypto_find_keyslot()201 if (slotp->key == key) in blk_crypto_find_keyslot()202 return slotp; in blk_crypto_find_keyslot()