Lines Matching refs:attr

19 	struct attribute attr;  member
21 struct blk_crypto_attr *attr, char *page);
29 static struct blk_crypto_attr *attr_to_crypto_attr(struct attribute *attr) in attr_to_crypto_attr() argument
31 return container_of(attr, struct blk_crypto_attr, attr); in attr_to_crypto_attr()
35 struct blk_crypto_attr *attr, char *page) in hw_wrapped_keys_show() argument
42 struct blk_crypto_attr *attr, char *page) in max_dun_bits_show() argument
48 struct blk_crypto_attr *attr, char *page) in num_keyslots_show() argument
54 struct blk_crypto_attr *attr, char *page) in raw_keys_show() argument
69 struct attribute *attr, int n) in blk_crypto_is_visible() argument
72 struct blk_crypto_attr *a = attr_to_crypto_attr(attr); in blk_crypto_is_visible()
85 &hw_wrapped_keys_attr.attr,
86 &max_dun_bits_attr.attr,
87 &num_keyslots_attr.attr,
88 &raw_keys_attr.attr,
105 struct attribute *attr, int n) in blk_crypto_mode_is_visible() argument
108 struct blk_crypto_attr *a = attr_to_crypto_attr(attr); in blk_crypto_mode_is_visible()
117 struct blk_crypto_attr *attr, char *page) in blk_crypto_mode_show() argument
119 int mode_num = attr - __blk_crypto_mode_attrs; in blk_crypto_mode_show()
137 struct attribute *attr, char *page) in blk_crypto_attr_show() argument
140 struct blk_crypto_attr *a = attr_to_crypto_attr(attr); in blk_crypto_attr_show()
199 struct blk_crypto_attr *attr = &__blk_crypto_mode_attrs[i]; in blk_crypto_sysfs_init() local
201 attr->attr.name = blk_crypto_modes[i].name; in blk_crypto_sysfs_init()
202 attr->attr.mode = 0444; in blk_crypto_sysfs_init()
203 attr->show = blk_crypto_mode_show; in blk_crypto_sysfs_init()
204 blk_crypto_mode_attrs[i - 1] = &attr->attr; in blk_crypto_sysfs_init()