Lines Matching refs:rt2x00dev
52 struct rt2x00_dev *rt2x00dev;
134 void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
137 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf;
155 void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
158 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf;
171 DEBUG(rt2x00dev, "txrx dump queue length exceeded.\n");
182 DEBUG(rt2x00dev, "Failed to copy skb for dump.\n");
191 dump_hdr->chip_rt = cpu_to_le16(rt2x00dev->chip.rt);
192 dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf);
193 dump_hdr->chip_rev = cpu_to_le16(rt2x00dev->chip.rev);
328 unsigned int lines = 1 + intf->rt2x00dev->data_queues;
343 queue_for_each(intf->rt2x00dev, queue) {
454 debug->__name.read(intf->rt2x00dev, index, &value); \
496 debug->__name.write(intf->rt2x00dev, index, value); \
531 size = sprintf(line, "0x%.8x\n", (unsigned int)intf->rt2x00dev->flags);
560 data += sprintf(data, "driver:\t%s\n", intf->rt2x00dev->ops->name);
583 data += sprintf(data, "rt chip:\t%04x\n", intf->rt2x00dev->chip.rt);
584 data += sprintf(data, "rf chip:\t%04x\n", intf->rt2x00dev->chip.rf);
585 data += sprintf(data, "revision:\t%04x\n", intf->rt2x00dev->chip.rev);
609 void rt2x00debug_register(struct rt2x00_dev *rt2x00dev)
611 const struct rt2x00debug *debug = rt2x00dev->ops->debugfs;
616 ERROR(rt2x00dev, "Failed to allocate debug handler.\n");
621 intf->rt2x00dev = rt2x00dev;
622 rt2x00dev->debugfs_intf = intf;
625 debugfs_create_dir(intf->rt2x00dev->ops->name,
626 rt2x00dev->hw->wiphy->debugfsdir);
700 if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags))
709 rt2x00debug_deregister(rt2x00dev);
710 ERROR(rt2x00dev, "Failed to register debug handler.\n");
713 void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev)
715 struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf;
745 rt2x00dev->debugfs_intf = NULL;