Lines Matching defs:profile
9 #include <linux/blk-crypto-profile.h>
15 struct blk_crypto_profile *profile;
20 ssize_t (*show)(struct blk_crypto_profile *profile,
26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile;
34 static ssize_t hw_wrapped_keys_show(struct blk_crypto_profile *profile,
41 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile,
44 return sysfs_emit(page, "%u\n", 8 * profile->max_dun_bytes_supported);
47 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile,
50 return sysfs_emit(page, "%u\n", profile->num_slots);
53 static ssize_t raw_keys_show(struct blk_crypto_profile *profile,
71 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj);
75 !(profile->key_types_supported & BLK_CRYPTO_KEY_TYPE_HW_WRAPPED))
78 !(profile->key_types_supported & BLK_CRYPTO_KEY_TYPE_RAW))
107 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj);
111 if (profile->modes_supported[mode_num])
116 static ssize_t blk_crypto_mode_show(struct blk_crypto_profile *profile,
121 return sysfs_emit(page, "0x%x\n", profile->modes_supported[mode_num]);
139 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj);
142 return a->show(profile, a, page);
176 obj->profile = q->crypto_profile;