Lines Matching refs:blk_crypto_attr
18 struct blk_crypto_attr { struct
21 struct blk_crypto_attr *attr, char *page); argument
29 static struct blk_crypto_attr *attr_to_crypto_attr(struct attribute *attr) in attr_to_crypto_attr()
31 return container_of(attr, struct blk_crypto_attr, attr); in attr_to_crypto_attr()
35 struct blk_crypto_attr *attr, char *page) in max_dun_bits_show()
41 struct blk_crypto_attr *attr, char *page) in num_keyslots_show()
47 static struct blk_crypto_attr _name##_attr = __ATTR_RO(_name)
66 static struct blk_crypto_attr __blk_crypto_mode_attrs[BLK_ENCRYPTION_MODE_MAX];
73 struct blk_crypto_attr *a = attr_to_crypto_attr(attr); in blk_crypto_mode_is_visible()
82 struct blk_crypto_attr *attr, char *page) in blk_crypto_mode_show()
105 struct blk_crypto_attr *a = attr_to_crypto_attr(attr); in blk_crypto_attr_show()
164 struct blk_crypto_attr *attr = &__blk_crypto_mode_attrs[i]; in blk_crypto_sysfs_init()