Lines Matching refs:_prefix
190 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...) \ argument
191 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
198 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
199 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
216 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
217 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
219 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
220 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
222 sys_##_prefix##_##_name##_show, \
223 sys_##_prefix##_##_name##_store) \
225 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
226 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
227 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
228 __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL)
230 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
231 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
232 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
242 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
244 sys_##_prefix##_##_name##_show, \
245 sys_##_prefix##_##_name##_store)
247 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
248 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
249 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
257 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
259 sys_##_prefix##_##_name##_show, \
260 sys_##_prefix##_##_name##_store)