Home
last modified time | relevance | path

Searched refs:slot_hashtable_size (Results 1 – 2 of 2) sorted by relevance

/block/
Dkeyslot-manager.c85 unsigned int slot_hashtable_size; in blk_ksm_init() local
111 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_ksm_init()
116 if (slot_hashtable_size < 2) in blk_ksm_init()
117 slot_hashtable_size = 2; in blk_ksm_init()
119 ksm->log_slot_ht_size = ilog2(slot_hashtable_size); in blk_ksm_init()
120 ksm->slot_hashtable = kvmalloc_array(slot_hashtable_size, in blk_ksm_init()
125 for (i = 0; i < slot_hashtable_size; i++) in blk_ksm_init()
Dblk-crypto-profile.c78 unsigned int slot_hashtable_size; in blk_crypto_profile_init() local
117 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_crypto_profile_init()
122 if (slot_hashtable_size < 2) in blk_crypto_profile_init()
123 slot_hashtable_size = 2; in blk_crypto_profile_init()
125 profile->log_slot_ht_size = ilog2(slot_hashtable_size); in blk_crypto_profile_init()
127 kvmalloc_array(slot_hashtable_size, in blk_crypto_profile_init()
131 for (i = 0; i < slot_hashtable_size; i++) in blk_crypto_profile_init()