• Home
  • Raw
  • Download

Lines Matching refs:intf

143 	struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf;  in rt2x00debug_update_crypto()  local
155 intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS); in rt2x00debug_update_crypto()
156 intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV); in rt2x00debug_update_crypto()
157 intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC); in rt2x00debug_update_crypto()
158 intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY); in rt2x00debug_update_crypto()
164 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; in rt2x00debug_dump_frame() local
171 if (likely(!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags))) in rt2x00debug_dump_frame()
176 if (skb_queue_len(&intf->frame_dump_skbqueue) > 20) { in rt2x00debug_dump_frame()
211 skb_queue_tail(&intf->frame_dump_skbqueue, skbcopy); in rt2x00debug_dump_frame()
212 wake_up_interruptible(&intf->frame_dump_waitqueue); in rt2x00debug_dump_frame()
217 if (!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags)) in rt2x00debug_dump_frame()
218 skb_queue_purge(&intf->frame_dump_skbqueue); in rt2x00debug_dump_frame()
224 struct rt2x00debug_intf *intf = inode->i_private; in rt2x00debug_file_open() local
228 if (!try_module_get(intf->debug->owner)) in rt2x00debug_file_open()
236 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_file_release() local
238 module_put(intf->debug->owner); in rt2x00debug_file_release()
245 struct rt2x00debug_intf *intf = inode->i_private; in rt2x00debug_open_queue_dump() local
252 if (test_and_set_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags)) { in rt2x00debug_open_queue_dump()
262 struct rt2x00debug_intf *intf = inode->i_private; in rt2x00debug_release_queue_dump() local
264 skb_queue_purge(&intf->frame_dump_skbqueue); in rt2x00debug_release_queue_dump()
266 clear_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags); in rt2x00debug_release_queue_dump()
276 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_read_queue_dump() local
285 wait_event_interruptible(intf->frame_dump_waitqueue, in rt2x00debug_read_queue_dump()
287 skb_dequeue(&intf->frame_dump_skbqueue))); in rt2x00debug_read_queue_dump()
308 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_poll_queue_dump() local
310 poll_wait(file, &intf->frame_dump_waitqueue, wait); in rt2x00debug_poll_queue_dump()
312 if (!skb_queue_empty(&intf->frame_dump_skbqueue)) in rt2x00debug_poll_queue_dump()
332 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_read_queue_stats() local
335 unsigned int lines = 1 + intf->rt2x00dev->data_queues; in rt2x00debug_read_queue_stats()
350 queue_for_each(intf->rt2x00dev, queue) { in rt2x00debug_read_queue_stats()
391 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_read_crypto_stats() local
410 intf->crypto_stats[i].success, in rt2x00debug_read_crypto_stats()
411 intf->crypto_stats[i].icv_error, in rt2x00debug_read_crypto_stats()
412 intf->crypto_stats[i].mic_error, in rt2x00debug_read_crypto_stats()
413 intf->crypto_stats[i].key_error); in rt2x00debug_read_crypto_stats()
445 struct rt2x00debug_intf *intf = file->private_data; \
446 const struct rt2x00debug *debug = intf->debug; \
449 unsigned int index = intf->offset_##__name; \
464 debug->__name.read(intf->rt2x00dev, index, &value); \
481 struct rt2x00debug_intf *intf = file->private_data; \
482 const struct rt2x00debug *debug = intf->debug; \
485 unsigned int index = intf->offset_##__name; \
509 debug->__name.write(intf->rt2x00dev, index, value); \
539 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_read_dev_flags() local
546 size = sprintf(line, "0x%.8x\n", (unsigned int)intf->rt2x00dev->flags); in rt2x00debug_read_dev_flags()
568 struct rt2x00debug_intf *intf = file->private_data; in rt2x00debug_read_cap_flags() local
575 size = sprintf(line, "0x%.8x\n", (unsigned int)intf->rt2x00dev->cap_flags); in rt2x00debug_read_cap_flags()
594 *intf, in rt2x00debug_create_file_driver()
605 data += sprintf(data, "driver:\t%s\n", intf->rt2x00dev->ops->name); in rt2x00debug_create_file_driver()
609 return debugfs_create_blob(name, S_IRUSR, intf->driver_folder, blob); in rt2x00debug_create_file_driver()
614 *intf, in rt2x00debug_create_file_chipset()
619 const struct rt2x00debug *debug = intf->debug; in rt2x00debug_create_file_chipset()
627 data += sprintf(data, "rt chip:\t%04x\n", intf->rt2x00dev->chip.rt); in rt2x00debug_create_file_chipset()
628 data += sprintf(data, "rf chip:\t%04x\n", intf->rt2x00dev->chip.rf); in rt2x00debug_create_file_chipset()
629 data += sprintf(data, "revision:\t%04x\n", intf->rt2x00dev->chip.rev); in rt2x00debug_create_file_chipset()
650 return debugfs_create_blob(name, S_IRUSR, intf->driver_folder, blob); in rt2x00debug_create_file_chipset()
656 struct rt2x00debug_intf *intf; in rt2x00debug_register() local
658 intf = kzalloc(sizeof(struct rt2x00debug_intf), GFP_KERNEL); in rt2x00debug_register()
659 if (!intf) { in rt2x00debug_register()
664 intf->debug = debug; in rt2x00debug_register()
665 intf->rt2x00dev = rt2x00dev; in rt2x00debug_register()
666 rt2x00dev->debugfs_intf = intf; in rt2x00debug_register()
668 intf->driver_folder = in rt2x00debug_register()
669 debugfs_create_dir(intf->rt2x00dev->ops->name, in rt2x00debug_register()
671 if (IS_ERR(intf->driver_folder) || !intf->driver_folder) in rt2x00debug_register()
674 intf->driver_entry = in rt2x00debug_register()
675 rt2x00debug_create_file_driver("driver", intf, &intf->driver_blob); in rt2x00debug_register()
676 if (IS_ERR(intf->driver_entry) || !intf->driver_entry) in rt2x00debug_register()
679 intf->chipset_entry = in rt2x00debug_register()
681 intf, &intf->chipset_blob); in rt2x00debug_register()
682 if (IS_ERR(intf->chipset_entry) || !intf->chipset_entry) in rt2x00debug_register()
685 intf->dev_flags = debugfs_create_file("dev_flags", S_IRUSR, in rt2x00debug_register()
686 intf->driver_folder, intf, in rt2x00debug_register()
688 if (IS_ERR(intf->dev_flags) || !intf->dev_flags) in rt2x00debug_register()
691 intf->cap_flags = debugfs_create_file("cap_flags", S_IRUSR, in rt2x00debug_register()
692 intf->driver_folder, intf, in rt2x00debug_register()
694 if (IS_ERR(intf->cap_flags) || !intf->cap_flags) in rt2x00debug_register()
697 intf->register_folder = in rt2x00debug_register()
698 debugfs_create_dir("register", intf->driver_folder); in rt2x00debug_register()
699 if (IS_ERR(intf->register_folder) || !intf->register_folder) in rt2x00debug_register()
725 RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(intf, csr); in rt2x00debug_register()
726 RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(intf, eeprom); in rt2x00debug_register()
727 RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(intf, bbp); in rt2x00debug_register()
728 RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(intf, rf); in rt2x00debug_register()
729 RT2X00DEBUGFS_CREATE_REGISTER_ENTRY(intf, rfcsr); in rt2x00debug_register()
733 intf->queue_folder = in rt2x00debug_register()
734 debugfs_create_dir("queue", intf->driver_folder); in rt2x00debug_register()
735 if (IS_ERR(intf->queue_folder) || !intf->queue_folder) in rt2x00debug_register()
738 intf->queue_frame_dump_entry = in rt2x00debug_register()
739 debugfs_create_file("dump", S_IRUSR, intf->queue_folder, in rt2x00debug_register()
740 intf, &rt2x00debug_fop_queue_dump); in rt2x00debug_register()
741 if (IS_ERR(intf->queue_frame_dump_entry) in rt2x00debug_register()
742 || !intf->queue_frame_dump_entry) in rt2x00debug_register()
745 skb_queue_head_init(&intf->frame_dump_skbqueue); in rt2x00debug_register()
746 init_waitqueue_head(&intf->frame_dump_waitqueue); in rt2x00debug_register()
748 intf->queue_stats_entry = in rt2x00debug_register()
749 debugfs_create_file("queue", S_IRUSR, intf->queue_folder, in rt2x00debug_register()
750 intf, &rt2x00debug_fop_queue_stats); in rt2x00debug_register()
754 intf->crypto_stats_entry = in rt2x00debug_register()
755 debugfs_create_file("crypto", S_IRUGO, intf->queue_folder, in rt2x00debug_register()
756 intf, &rt2x00debug_fop_crypto_stats); in rt2x00debug_register()
768 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf; in rt2x00debug_deregister() local
770 if (unlikely(!intf)) in rt2x00debug_deregister()
773 skb_queue_purge(&intf->frame_dump_skbqueue); in rt2x00debug_deregister()
776 debugfs_remove(intf->crypto_stats_entry); in rt2x00debug_deregister()
778 debugfs_remove(intf->queue_stats_entry); in rt2x00debug_deregister()
779 debugfs_remove(intf->queue_frame_dump_entry); in rt2x00debug_deregister()
780 debugfs_remove(intf->queue_folder); in rt2x00debug_deregister()
781 debugfs_remove(intf->rfcsr_val_entry); in rt2x00debug_deregister()
782 debugfs_remove(intf->rfcsr_off_entry); in rt2x00debug_deregister()
783 debugfs_remove(intf->rf_val_entry); in rt2x00debug_deregister()
784 debugfs_remove(intf->rf_off_entry); in rt2x00debug_deregister()
785 debugfs_remove(intf->bbp_val_entry); in rt2x00debug_deregister()
786 debugfs_remove(intf->bbp_off_entry); in rt2x00debug_deregister()
787 debugfs_remove(intf->eeprom_val_entry); in rt2x00debug_deregister()
788 debugfs_remove(intf->eeprom_off_entry); in rt2x00debug_deregister()
789 debugfs_remove(intf->csr_val_entry); in rt2x00debug_deregister()
790 debugfs_remove(intf->csr_off_entry); in rt2x00debug_deregister()
791 debugfs_remove(intf->register_folder); in rt2x00debug_deregister()
792 debugfs_remove(intf->dev_flags); in rt2x00debug_deregister()
793 debugfs_remove(intf->cap_flags); in rt2x00debug_deregister()
794 debugfs_remove(intf->chipset_entry); in rt2x00debug_deregister()
795 debugfs_remove(intf->driver_entry); in rt2x00debug_deregister()
796 debugfs_remove(intf->driver_folder); in rt2x00debug_deregister()
797 kfree(intf->chipset_blob.data); in rt2x00debug_deregister()
798 kfree(intf->driver_blob.data); in rt2x00debug_deregister()
799 kfree(intf); in rt2x00debug_deregister()