• Home
  • Raw
  • Download

Lines Matching refs:key

43 	const struct blk_crypto_key *key;  member
166 const struct blk_crypto_key *key) in blk_ksm_hash_bucket_for_key() argument
168 return &ksm->slot_hashtable[hash_ptr(key, ksm->log_slot_ht_size)]; in blk_ksm_hash_bucket_for_key()
183 const struct blk_crypto_key *key) in blk_ksm_find_keyslot() argument
185 const struct hlist_head *head = blk_ksm_hash_bucket_for_key(ksm, key); in blk_ksm_find_keyslot()
189 if (slotp->key == key) in blk_ksm_find_keyslot()
197 const struct blk_crypto_key *key) in blk_ksm_find_and_grab_keyslot() argument
201 slot = blk_ksm_find_keyslot(ksm, key); in blk_ksm_find_and_grab_keyslot()
234 const struct blk_crypto_key *key, in blk_ksm_get_slot_for_key() argument
247 slot = blk_ksm_find_and_grab_keyslot(ksm, key); in blk_ksm_get_slot_for_key()
254 slot = blk_ksm_find_and_grab_keyslot(ksm, key); in blk_ksm_get_slot_for_key()
276 err = ksm->ksm_ll_ops.keyslot_program(ksm, key, slot_idx); in blk_ksm_get_slot_for_key()
284 if (slot->key) in blk_ksm_get_slot_for_key()
286 slot->key = key; in blk_ksm_get_slot_for_key()
287 hlist_add_head(&slot->hash_node, blk_ksm_hash_bucket_for_key(ksm, key)); in blk_ksm_get_slot_for_key()
352 const struct blk_crypto_key *key) in blk_ksm_evict_key() argument
360 err = ksm->ksm_ll_ops.keyslot_evict(ksm, key, -1); in blk_ksm_evict_key()
368 slot = blk_ksm_find_keyslot(ksm, key); in blk_ksm_evict_key()
383 err = ksm->ksm_ll_ops.keyslot_evict(ksm, key, in blk_ksm_evict_key()
391 slot->key = NULL; in blk_ksm_evict_key()
416 const struct blk_crypto_key *key = ksm->slots[slot].key; in blk_ksm_reprogram_all_keys() local
419 if (!key) in blk_ksm_reprogram_all_keys()
422 err = ksm->ksm_ll_ops.keyslot_program(ksm, key, slot); in blk_ksm_reprogram_all_keys()