Lines Matching refs:__name

409 #define RT2X00DEBUGFS_OPS_READ(__name, __format, __type)	\  argument
410 static ssize_t rt2x00debug_read_##__name(struct file *file, \
419 unsigned int index = intf->offset_##__name; \
425 if (index >= debug->__name.word_count) \
428 index += (debug->__name.word_base / \
429 debug->__name.word_size); \
431 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \
432 index *= debug->__name.word_size; \
434 value = debug->__name.read(intf->rt2x00dev, index); \
441 #define RT2X00DEBUGFS_OPS_WRITE(__name, __type) \ argument
442 static ssize_t rt2x00debug_write_##__name(struct file *file, \
451 unsigned int index = intf->offset_##__name; \
457 if (index >= debug->__name.word_count) \
470 index += (debug->__name.word_base / \
471 debug->__name.word_size); \
473 if (debug->__name.flags & RT2X00DEBUGFS_OFFSET) \
474 index *= debug->__name.word_size; \
476 debug->__name.write(intf->rt2x00dev, index, value); \
482 #define RT2X00DEBUGFS_OPS(__name, __format, __type) \ argument
483 RT2X00DEBUGFS_OPS_READ(__name, __format, __type); \
484 RT2X00DEBUGFS_OPS_WRITE(__name, __type); \
486 static const struct file_operations rt2x00debug_fop_##__name = {\
488 .read = rt2x00debug_read_##__name, \
489 .write = rt2x00debug_write_##__name, \
614 #define RT2X00DEBUGFS_SPRINTF_REGISTER(__name) \ in rt2x00debug_create_file_chipset() argument
616 if (debug->__name.read) \ in rt2x00debug_create_file_chipset()
617 data += sprintf(data, __stringify(__name) \ in rt2x00debug_create_file_chipset()
619 debug->__name.word_base, \ in rt2x00debug_create_file_chipset()
620 debug->__name.word_count, \ in rt2x00debug_create_file_chipset()
621 debug->__name.word_size); \ in rt2x00debug_create_file_chipset()
667 #define RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(__intf, __name) \ in rt2x00debug_register() argument
669 if (debug->__name.read) { \ in rt2x00debug_register()
670 debugfs_create_u32(__stringify(__name) "_offset", 0600, \ in rt2x00debug_register()
672 &(__intf)->offset_##__name); \ in rt2x00debug_register()
674 debugfs_create_file(__stringify(__name) "_value", 0600, \ in rt2x00debug_register()
676 &rt2x00debug_fop_##__name); \ in rt2x00debug_register()