Lines Matching refs:_name
185 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...) \ argument
186 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
193 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
194 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
195 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
196 __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL)
198 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
199 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
200 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
210 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
211 __ATTR(_name,(S_IRUGO | S_IWUSR), \
212 sys_##_prefix##_##_name##_show, \
213 sys_##_prefix##_##_name##_store)
215 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
216 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
217 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
225 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
226 __ATTR(_name,(S_IRUGO | S_IWUSR), \
227 sys_##_prefix##_##_name##_show, \
228 sys_##_prefix##_##_name##_store)