Lines Matching refs:slot
90 static void blk_crypto_evict_keyslot(unsigned int slot) in blk_crypto_evict_keyslot() argument
92 struct blk_crypto_keyslot *slotp = &blk_crypto_keyslots[slot]; in blk_crypto_evict_keyslot()
107 unsigned int slot) in blk_crypto_keyslot_program() argument
109 struct blk_crypto_keyslot *slotp = &blk_crypto_keyslots[slot]; in blk_crypto_keyslot_program()
116 blk_crypto_evict_keyslot(slot); in blk_crypto_keyslot_program()
122 blk_crypto_evict_keyslot(slot); in blk_crypto_keyslot_program()
130 unsigned int slot) in blk_crypto_keyslot_evict() argument
132 blk_crypto_evict_keyslot(slot); in blk_crypto_keyslot_evict()
188 static bool blk_crypto_alloc_cipher_req(struct blk_ksm_keyslot *slot, in blk_crypto_alloc_cipher_req() argument
194 int keyslot_idx = blk_ksm_get_slot_idx(slot); in blk_crypto_alloc_cipher_req()
265 struct blk_ksm_keyslot *slot; in blk_crypto_fallback_encrypt_bio() local
295 blk_st = blk_ksm_get_slot_for_key(&blk_crypto_ksm, bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio()
302 if (!blk_crypto_alloc_cipher_req(slot, &ciph_req, &wait)) { in blk_crypto_fallback_encrypt_bio()
363 blk_ksm_put_slot(slot); in blk_crypto_fallback_encrypt_bio()
381 struct blk_ksm_keyslot *slot; in blk_crypto_fallback_decrypt_bio() local
397 blk_st = blk_ksm_get_slot_for_key(&blk_crypto_ksm, bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio()
404 if (!blk_crypto_alloc_cipher_req(slot, &ciph_req, &wait)) { in blk_crypto_fallback_decrypt_bio()
435 blk_ksm_put_slot(slot); in blk_crypto_fallback_decrypt_bio()