Lines Matching refs:_prefix
208 #define IPL_ATTR_SHOW_FN(_prefix, _name, _format, args...) \ argument
209 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
216 #define IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk) \ argument
217 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
234 #define DEFINE_IPL_CCW_ATTR_RW(_prefix, _name, _ipl_blk) \ argument
235 IPL_ATTR_SHOW_FN(_prefix, _name, "0.%x.%04x\n", \
237 IPL_ATTR_CCW_STORE_FN(_prefix, _name, _ipl_blk); \
238 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
240 sys_##_prefix##_##_name##_show, \
241 sys_##_prefix##_##_name##_store) \
243 #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ argument
244 IPL_ATTR_SHOW_FN(_prefix, _name, _format, _value) \
245 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
246 __ATTR(_name, 0444, sys_##_prefix##_##_name##_show, NULL)
248 #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ argument
249 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
250 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
260 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
262 sys_##_prefix##_##_name##_show, \
263 sys_##_prefix##_##_name##_store)
265 #define DEFINE_IPL_ATTR_BOOTPROG_RW(_prefix, _name, _fmt_out, _fmt_in, _hdr, _value) \ argument
266 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, (unsigned long long) _value) \
267 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 DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ argument
284 IPL_ATTR_SHOW_FN(_prefix, _name, _fmt_out, _value) \
285 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
297 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
299 sys_##_prefix##_##_name##_show, \
300 sys_##_prefix##_##_name##_store)
302 #define IPL_ATTR_SCP_DATA_SHOW_FN(_prefix, _ipl_block) \ argument
303 static ssize_t sys_##_prefix##_scp_data_show(struct file *filp, \
316 #define IPL_ATTR_SCP_DATA_STORE_FN(_prefix, _ipl_block_hdr, _ipl_block, _ipl_bp_len, _ipl_bp0_len)\ argument
317 static ssize_t sys_##_prefix##_scp_data_store(struct file *filp, \
344 #define DEFINE_IPL_ATTR_SCP_DATA_RO(_prefix, _ipl_block, _size) \ argument
345 IPL_ATTR_SCP_DATA_SHOW_FN(_prefix, _ipl_block) \
346 static const struct bin_attribute sys_##_prefix##_scp_data_attr = \
347 __BIN_ATTR(scp_data, 0444, sys_##_prefix##_scp_data_show, \
350 #define DEFINE_IPL_ATTR_SCP_DATA_RW(_prefix, _ipl_block_hdr, _ipl_block, _ipl_bp_len, _ipl_bp0_len,… argument
351 IPL_ATTR_SCP_DATA_SHOW_FN(_prefix, _ipl_block) \
352 IPL_ATTR_SCP_DATA_STORE_FN(_prefix, _ipl_block_hdr, _ipl_block, _ipl_bp_len, _ipl_bp0_len)\
353 static const struct bin_attribute sys_##_prefix##_scp_data_attr = \
354 __BIN_ATTR(scp_data, 0644, sys_##_prefix##_scp_data_show, \
355 sys_##_prefix##_scp_data_store, _size)