Lines Matching refs:num_slots
75 unsigned int num_slots) in blk_crypto_profile_init() argument
91 if (num_slots == 0) in blk_crypto_profile_init()
96 profile->slots = kvcalloc(num_slots, sizeof(profile->slots[0]), in blk_crypto_profile_init()
101 profile->num_slots = num_slots; in blk_crypto_profile_init()
106 for (slot = 0; slot < num_slots; slot++) { in blk_crypto_profile_init()
114 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_crypto_profile_init()
157 unsigned int num_slots) in devm_blk_crypto_profile_init() argument
159 int err = blk_crypto_profile_init(profile, num_slots); in devm_blk_crypto_profile_init()
262 if (profile->num_slots == 0) in blk_crypto_get_keyslot()
369 if (profile->num_slots == 0) { in __blk_crypto_evict_key()
422 if (profile->num_slots == 0) in blk_crypto_reprogram_all_keys()
427 for (slot = 0; slot < profile->num_slots; slot++) { in blk_crypto_reprogram_all_keys()
448 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy()