debugfs.c (52a1f158b3ff76d6501c061e3c6952801a2dc9a7) | debugfs.c (78562b2cafc61a0c08dc949eacb942ac756aae37) |
---|---|
1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2020 MediaTek Inc. */ 3 4#include "mt7921.h" 5 6static int 7mt7921_reg_set(void *data, u64 val) 8{ --- 44 unchanged lines hidden (view full) --- 53 54 return 0; 55} 56 57DEFINE_DEBUGFS_ATTRIBUTE(fops_fw_debug, mt7921_fw_debug_get, 58 mt7921_fw_debug_set, "%lld\n"); 59 60static void | 1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2020 MediaTek Inc. */ 3 4#include "mt7921.h" 5 6static int 7mt7921_reg_set(void *data, u64 val) 8{ --- 44 unchanged lines hidden (view full) --- 53 54 return 0; 55} 56 57DEFINE_DEBUGFS_ATTRIBUTE(fops_fw_debug, mt7921_fw_debug_get, 58 mt7921_fw_debug_set, "%lld\n"); 59 60static void |
61mt7921_ampdu_stat_read_phy(struct mt7921_phy *phy, | 61mt7921_ampdu_stat_read_phy(struct mt792x_phy *phy, |
62 struct seq_file *file) 63{ 64 struct mt7921_dev *dev = file->private; 65 int bound[15], range[4], i; 66 67 if (!phy) 68 return; 69 --- 19 unchanged lines hidden (view full) --- 89 90 seq_printf(file, "BA miss count: %d\n", phy->mib.ba_miss_cnt); 91} 92 93static int 94mt7921_tx_stats_show(struct seq_file *file, void *data) 95{ 96 struct mt7921_dev *dev = file->private; | 62 struct seq_file *file) 63{ 64 struct mt7921_dev *dev = file->private; 65 int bound[15], range[4], i; 66 67 if (!phy) 68 return; 69 --- 19 unchanged lines hidden (view full) --- 89 90 seq_printf(file, "BA miss count: %d\n", phy->mib.ba_miss_cnt); 91} 92 93static int 94mt7921_tx_stats_show(struct seq_file *file, void *data) 95{ 96 struct mt7921_dev *dev = file->private; |
97 struct mt7921_phy *phy = &dev->phy; | 97 struct mt792x_phy *phy = &dev->phy; |
98 struct mt76_mib_stats *mib = &phy->mib; 99 int i; 100 101 mt7921_mutex_acquire(dev); 102 103 mt7921_ampdu_stat_read_phy(phy, file); 104 105 seq_puts(file, "Tx MSDU stat:\n"); --- 355 unchanged lines hidden --- | 98 struct mt76_mib_stats *mib = &phy->mib; 99 int i; 100 101 mt7921_mutex_acquire(dev); 102 103 mt7921_ampdu_stat_read_phy(phy, file); 104 105 seq_puts(file, "Tx MSDU stat:\n"); --- 355 unchanged lines hidden --- |