Lines Matching refs:profile
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()
34 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() argument
37 return sysfs_emit(page, "%u\n", 8 * profile->max_dun_bytes_supported); in max_dun_bits_show()
40 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() argument
43 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show()
72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible() local
76 if (profile->modes_supported[mode_num]) in blk_crypto_mode_is_visible()
81 static ssize_t blk_crypto_mode_show(struct blk_crypto_profile *profile, in blk_crypto_mode_show() argument
86 return sysfs_emit(page, "0x%x\n", profile->modes_supported[mode_num]); in blk_crypto_mode_show()
104 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_attr_show() local
107 return a->show(profile, a, page); in blk_crypto_attr_show()
140 obj->profile = q->crypto_profile; in blk_crypto_sysfs_register()