Lines Matching refs:_prefix

161 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...)		\  argument
162 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
169 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
170 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
187 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
188 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
190 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
191 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
193 sys_##_prefix##_##_name##_show, \
194 sys_##_prefix##_##_name##_store) \
196 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
197 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
198 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
199 __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL)
201 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
202 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
203 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
213 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
215 sys_##_prefix##_##_name##_show, \
216 sys_##_prefix##_##_name##_store)
218 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
219 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
220 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
228 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
230 sys_##_prefix##_##_name##_show, \
231 sys_##_prefix##_##_name##_store)