Lines Matching refs:_prefix
193 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...) \ argument
194 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
201 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
202 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
219 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
220 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
222 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
223 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
225 sys_##_prefix##_##_name##_show, \
226 sys_##_prefix##_##_name##_store) \
228 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
229 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
230 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
231 __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL)
233 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
234 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
235 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
245 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
247 sys_##_prefix##_##_name##_show, \
248 sys_##_prefix##_##_name##_store)
250 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
251 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
252 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
260 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
262 sys_##_prefix##_##_name##_show, \
263 sys_##_prefix##_##_name##_store)