Lines Matching refs:num_slots
74 unsigned int num_slots) in blk_crypto_profile_init() argument
83 if (num_slots == 0) in blk_crypto_profile_init()
88 profile->slots = kvcalloc(num_slots, sizeof(profile->slots[0]), in blk_crypto_profile_init()
93 profile->num_slots = num_slots; in blk_crypto_profile_init()
98 for (slot = 0; slot < num_slots; slot++) { in blk_crypto_profile_init()
106 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_crypto_profile_init()
149 unsigned int num_slots) in devm_blk_crypto_profile_init() argument
151 int err = blk_crypto_profile_init(profile, num_slots); in devm_blk_crypto_profile_init()
255 if (profile->num_slots == 0) in blk_crypto_get_keyslot()
379 if (profile->num_slots == 0) { in __blk_crypto_evict_key()
424 if (profile->num_slots == 0) in blk_crypto_reprogram_all_keys()
429 for (slot = 0; slot < profile->num_slots; slot++) { in blk_crypto_reprogram_all_keys()
449 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy()