Lines Matching refs:key

41 	const struct blk_crypto_key *key;  member
172 const struct blk_crypto_key *key) in blk_crypto_hash_bucket_for_key() argument
175 hash_ptr(key, profile->log_slot_ht_size)]; in blk_crypto_hash_bucket_for_key()
191 const struct blk_crypto_key *key) in blk_crypto_find_keyslot() argument
194 blk_crypto_hash_bucket_for_key(profile, key); in blk_crypto_find_keyslot()
198 if (slotp->key == key) in blk_crypto_find_keyslot()
206 const struct blk_crypto_key *key) in blk_crypto_find_and_grab_keyslot() argument
210 slot = blk_crypto_find_keyslot(profile, key); in blk_crypto_find_and_grab_keyslot()
249 const struct blk_crypto_key *key, in blk_crypto_get_keyslot() argument
266 slot = blk_crypto_find_and_grab_keyslot(profile, key); in blk_crypto_get_keyslot()
273 slot = blk_crypto_find_and_grab_keyslot(profile, key); in blk_crypto_get_keyslot()
295 err = profile->ll_ops.keyslot_program(profile, key, slot_idx); in blk_crypto_get_keyslot()
303 if (slot->key) in blk_crypto_get_keyslot()
305 slot->key = key; in blk_crypto_get_keyslot()
307 blk_crypto_hash_bucket_for_key(profile, key)); in blk_crypto_get_keyslot()
364 const struct blk_crypto_key *key) in __blk_crypto_evict_key() argument
372 err = profile->ll_ops.keyslot_evict(profile, key, -1); in __blk_crypto_evict_key()
380 slot = blk_crypto_find_keyslot(profile, key); in __blk_crypto_evict_key()
395 err = profile->ll_ops.keyslot_evict(profile, key, in __blk_crypto_evict_key()
403 slot->key = NULL; in __blk_crypto_evict_key()
428 const struct blk_crypto_key *key = profile->slots[slot].key; in blk_crypto_reprogram_all_keys() local
431 if (!key) in blk_crypto_reprogram_all_keys()
434 err = profile->ll_ops.keyslot_program(profile, key, slot); in blk_crypto_reprogram_all_keys()