Searched refs:num_slots (Results 1 – 3 of 3) sorted by relevance
74 unsigned int num_slots) in blk_crypto_profile_init() argument94 if (num_slots == 0) in blk_crypto_profile_init()99 profile->slots = kvcalloc(num_slots, sizeof(profile->slots[0]), in blk_crypto_profile_init()104 profile->num_slots = num_slots; in blk_crypto_profile_init()109 for (slot = 0; slot < num_slots; slot++) { in blk_crypto_profile_init()117 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_crypto_profile_init()160 unsigned int num_slots) in devm_blk_crypto_profile_init() argument162 int err = blk_crypto_profile_init(profile, num_slots); in devm_blk_crypto_profile_init()266 if (profile->num_slots == 0) in blk_crypto_get_keyslot()380 if (profile->num_slots == 0) { in __blk_crypto_evict_key()[all …]
68 return ksm->num_slots == 0; in blk_ksm_is_passthrough()81 int blk_ksm_init(struct blk_keyslot_manager *ksm, unsigned int num_slots) in blk_ksm_init() argument89 if (num_slots == 0) in blk_ksm_init()92 ksm->slots = kvcalloc(num_slots, sizeof(ksm->slots[0]), GFP_KERNEL); in blk_ksm_init()96 ksm->num_slots = num_slots; in blk_ksm_init()103 for (slot = 0; slot < num_slots; slot++) { in blk_ksm_init()111 slot_hashtable_size = roundup_pow_of_two(num_slots); in blk_ksm_init()153 unsigned int num_slots) in devm_blk_ksm_init() argument155 int err = blk_ksm_init(ksm, num_slots); in devm_blk_ksm_init()415 for (slot = 0; slot < ksm->num_slots; slot++) { in blk_ksm_reprogram_all_keys()[all …]
43 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show()