• Home
  • Raw
  • Download

Lines Matching refs:_name

189 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...)		\  argument
190 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
197 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
198 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
215 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
216 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
218 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
219 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
220 __ATTR(_name, (S_IRUGO | S_IWUSR), \
221 sys_##_prefix##_##_name##_show, \
222 sys_##_prefix##_##_name##_store) \
224 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
225 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
226 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
227 __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL)
229 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
230 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
231 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
241 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
242 __ATTR(_name,(S_IRUGO | S_IWUSR), \
243 sys_##_prefix##_##_name##_show, \
244 sys_##_prefix##_##_name##_store)
246 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
247 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
248 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
256 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
257 __ATTR(_name,(S_IRUGO | S_IWUSR), \
258 sys_##_prefix##_##_name##_show, \
259 sys_##_prefix##_##_name##_store)