Lines Matching refs:_prefix

207 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...)		\  argument
208 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
215 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
216 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
233 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
234 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
236 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
237 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
239 sys_##_prefix##_##_name##_show, \
240 sys_##_prefix##_##_name##_store) \
242 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
243 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
244 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
245 __ATTR(_name, 0444, sys_##_prefix##_##_name##_show, NULL)
247 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
248 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
249 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
259 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
261 sys_##_prefix##_##_name##_show, \
262 sys_##_prefix##_##_name##_store)
264 #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
265 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
266 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
278 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
280 sys_##_prefix##_##_name##_show, \
281 sys_##_prefix##_##_name##_store)
283 #define IPL_ATTR_SCP_DATA_SHOW_FN(_prefix, _ipl_block) \ argument
284 static ssize_t sys_##_prefix##_scp_data_show(struct file *filp, \
297 #define IPL_ATTR_SCP_DATA_STORE_FN(_prefix, _ipl_block_hdr, _ipl_block, _ipl_bp_len, _ipl_bp0_len)\ argument
298 static ssize_t sys_##_prefix##_scp_data_store(struct file *filp, \
325 #define DEFINE_IPL_ATTR_SCP_DATA_RO(_prefix, _ipl_block, _size) \ argument
326 IPL_ATTR_SCP_DATA_SHOW_FN(_prefix, _ipl_block) \
327 static struct bin_attribute sys_##_prefix##_scp_data_attr = \
328 __BIN_ATTR(scp_data, 0444, sys_##_prefix##_scp_data_show, \
331 #define DEFINE_IPL_ATTR_SCP_DATA_RW(_prefix, _ipl_block_hdr, _ipl_block, _ipl_bp_len, _ipl_bp0_len,… argument
332 IPL_ATTR_SCP_DATA_SHOW_FN(_prefix, _ipl_block) \
333 IPL_ATTR_SCP_DATA_STORE_FN(_prefix, _ipl_block_hdr, _ipl_block, _ipl_bp_len, _ipl_bp0_len)\
334 static struct bin_attribute sys_##_prefix##_scp_data_attr = \
335 __BIN_ATTR(scp_data, 0644, sys_##_prefix##_scp_data_show, \
336 sys_##_prefix##_scp_data_store, _size)