Lines Matching refs:slotp

92 	struct blk_crypto_keyslot *slotp = &blk_crypto_keyslots[slot];  in blk_crypto_evict_keyslot()  local
93 enum blk_crypto_mode_num crypto_mode = slotp->crypto_mode; in blk_crypto_evict_keyslot()
96 WARN_ON(slotp->crypto_mode == BLK_ENCRYPTION_MODE_INVALID); in blk_crypto_evict_keyslot()
99 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_evict_keyslot()
102 slotp->crypto_mode = BLK_ENCRYPTION_MODE_INVALID; in blk_crypto_evict_keyslot()
109 struct blk_crypto_keyslot *slotp = &blk_crypto_keyslots[slot]; in blk_crypto_keyslot_program() local
114 if (crypto_mode != slotp->crypto_mode && in blk_crypto_keyslot_program()
115 slotp->crypto_mode != BLK_ENCRYPTION_MODE_INVALID) in blk_crypto_keyslot_program()
118 slotp->crypto_mode = crypto_mode; in blk_crypto_keyslot_program()
119 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_keyslot_program()
191 const struct blk_crypto_keyslot *slotp; in blk_crypto_alloc_cipher_req() local
194 slotp = &blk_crypto_keyslots[keyslot_idx]; in blk_crypto_alloc_cipher_req()
195 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode], in blk_crypto_alloc_cipher_req()
603 struct blk_crypto_keyslot *slotp; in blk_crypto_fallback_start_using_mode() local
624 slotp = &blk_crypto_keyslots[i]; in blk_crypto_fallback_start_using_mode()
625 slotp->tfms[mode_num] = crypto_alloc_skcipher(cipher_str, 0, 0); in blk_crypto_fallback_start_using_mode()
626 if (IS_ERR(slotp->tfms[mode_num])) { in blk_crypto_fallback_start_using_mode()
627 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
633 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()
637 crypto_skcipher_set_flags(slotp->tfms[mode_num], in blk_crypto_fallback_start_using_mode()
650 slotp = &blk_crypto_keyslots[i]; in blk_crypto_fallback_start_using_mode()
651 crypto_free_skcipher(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
652 slotp->tfms[mode_num] = NULL; in blk_crypto_fallback_start_using_mode()