Lines Matching refs:__name
417 #define RT2X00DEBUGFS_OPS_READ(__name, __format, __type) \ argument
418 static ssize_t rt2x00debug_read_##__name(struct file *file, \
427 unsigned int index = intf->offset_##__name; \
433 if (index >= debug->__name.word_count) \
436 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \
437 index *= debug->__name.word_size; \
439 index += debug->__name.word_base; \
441 debug->__name.read(intf->rt2x00dev, index, &value); \
452 #define RT2X00DEBUGFS_OPS_WRITE(__name, __type) \ argument
453 static ssize_t rt2x00debug_write_##__name(struct file *file, \
462 unsigned int index = intf->offset_##__name; \
468 if (index >= debug->__name.word_count) \
477 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \
478 index *= debug->__name.word_size; \
480 index += debug->__name.word_base; \
482 debug->__name.write(intf->rt2x00dev, index, value); \
488 #define RT2X00DEBUGFS_OPS(__name, __format, __type) \ argument
489 RT2X00DEBUGFS_OPS_READ(__name, __format, __type); \
490 RT2X00DEBUGFS_OPS_WRITE(__name, __type); \
492 static const struct file_operations rt2x00debug_fop_##__name = {\
494 .read = rt2x00debug_read_##__name, \
495 .write = rt2x00debug_write_##__name, \
625 #define RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(__intf, __name) \ in rt2x00debug_register() argument
627 (__intf)->__name##_off_entry = \ in rt2x00debug_register()
628 debugfs_create_u32(__stringify(__name) "_offset", \ in rt2x00debug_register()
631 &(__intf)->offset_##__name); \ in rt2x00debug_register()
632 if (IS_ERR((__intf)->__name##_off_entry) \ in rt2x00debug_register()
633 || !(__intf)->__name##_off_entry) \ in rt2x00debug_register()
636 (__intf)->__name##_val_entry = \ in rt2x00debug_register()
637 debugfs_create_file(__stringify(__name) "_value", \ in rt2x00debug_register()
640 (__intf), &rt2x00debug_fop_##__name);\ in rt2x00debug_register()
641 if (IS_ERR((__intf)->__name##_val_entry) \ in rt2x00debug_register()
642 || !(__intf)->__name##_val_entry) \ in rt2x00debug_register()