Searched refs:profile (Results 1 – 6 of 6) sorted by relevance
| /block/ |
| A D | blk-crypto-profile.c | 81 memset(profile, 0, sizeof(*profile)); in blk_crypto_profile_init() 107 profile->slots[slot].profile = profile; in blk_crypto_profile_init() 166 profile); in devm_blk_crypto_profile_init() 181 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_remove_slot_from_lru_list() local 327 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_put_keyslot() local 349 if (!profile) in __blk_crypto_cfg_supported() 374 err = profile->ll_ops.keyslot_evict(profile, key, -1); in __blk_crypto_evict_key() 397 err = profile->ll_ops.keyslot_evict(profile, key, in __blk_crypto_evict_key() 450 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy() 451 memzero_explicit(profile, sizeof(*profile)); in blk_crypto_profile_destroy() [all …]
|
| A D | blk-crypto-sysfs.c | 15 struct blk_crypto_profile *profile; member 20 ssize_t (*show)(struct blk_crypto_profile *profile, 26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile; in kobj_to_crypto_profile() 41 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() argument 47 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() argument 50 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show() 53 static ssize_t raw_keys_show(struct blk_crypto_profile *profile, in raw_keys_show() argument 78 !(profile->key_types_supported & BLK_CRYPTO_KEY_TYPE_RAW)) in blk_crypto_is_visible() 111 if (profile->modes_supported[mode_num]) in blk_crypto_mode_is_visible() 142 return a->show(profile, a, page); in blk_crypto_attr_show() [all …]
|
| A D | blk-crypto.c | 473 static int blk_crypto_ioctl_import_key(struct blk_crypto_profile *profile, in blk_crypto_ioctl_import_key() argument 495 ret = blk_crypto_import_key(profile, raw_key, arg.raw_key_size, lt_key); in blk_crypto_ioctl_import_key() 517 static int blk_crypto_ioctl_generate_key(struct blk_crypto_profile *profile, in blk_crypto_ioctl_generate_key() argument 530 ret = blk_crypto_generate_key(profile, lt_key); in blk_crypto_ioctl_generate_key() 551 static int blk_crypto_ioctl_prepare_key(struct blk_crypto_profile *profile, in blk_crypto_ioctl_prepare_key() argument 573 ret = blk_crypto_prepare_key(profile, lt_key, arg.lt_key_size, eph_key); in blk_crypto_ioctl_prepare_key() 598 struct blk_crypto_profile *profile = in blk_crypto_ioctl() local 601 if (!profile) in blk_crypto_ioctl() 606 return blk_crypto_ioctl_import_key(profile, argp); in blk_crypto_ioctl() 608 return blk_crypto_ioctl_generate_key(profile, argp); in blk_crypto_ioctl() [all …]
|
| A D | blk-crypto-internal.h | 74 blk_status_t blk_crypto_get_keyslot(struct blk_crypto_profile *profile, 80 int __blk_crypto_evict_key(struct blk_crypto_profile *profile, 83 bool __blk_crypto_cfg_supported(struct blk_crypto_profile *profile,
|
| A D | Makefile | 35 obj-$(CONFIG_BLK_INLINE_ENCRYPTION) += blk-crypto.o blk-crypto-profile.o \
|
| A D | blk-crypto-fallback.c | 108 blk_crypto_fallback_keyslot_program(struct blk_crypto_profile *profile, in blk_crypto_fallback_keyslot_program() argument 131 static int blk_crypto_fallback_keyslot_evict(struct blk_crypto_profile *profile, in blk_crypto_fallback_keyslot_evict() argument
|
Completed in 31 milliseconds