Lines Matching refs:_prefix

188 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...)		\  argument
189 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
196 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
197 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
214 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
215 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
217 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
218 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
220 sys_##_prefix##_##_name##_show, \
221 sys_##_prefix##_##_name##_store) \
223 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
224 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
225 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
226 __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL)
228 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
229 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
230 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
240 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
242 sys_##_prefix##_##_name##_show, \
243 sys_##_prefix##_##_name##_store)
245 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
246 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
247 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
255 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
257 sys_##_prefix##_##_name##_show, \
258 sys_##_prefix##_##_name##_store)