debugfs.c (c605d0ce025358d50209468ede7b15a3d2656c1a) | debugfs.c (c74df1c067f2af0a3758a5ab02806f501473797c) |
---|---|
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{ --- 53 unchanged lines hidden (view full) --- 62 struct seq_file *file) 63{ 64 struct mt792x_dev *dev = file->private; 65 int bound[15], range[4], i; 66 67 if (!phy) 68 return; 69 | 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{ --- 53 unchanged lines hidden (view full) --- 62 struct seq_file *file) 63{ 64 struct mt792x_dev *dev = file->private; 65 int bound[15], range[4], i; 66 67 if (!phy) 68 return; 69 |
70 mt7921_mac_update_mib_stats(phy); | 70 mt792x_mac_update_mib_stats(phy); |
71 72 /* Tx ampdu stat */ 73 for (i = 0; i < ARRAY_SIZE(range); i++) 74 range[i] = mt76_rr(dev, MT_MIB_ARNG(0, i)); 75 76 for (i = 0; i < ARRAY_SIZE(bound); i++) 77 bound[i] = MT_MIB_ARNCR_RANGE(range[i / 4], i % 4) + 1; 78 --- 382 unchanged lines hidden --- | 71 72 /* Tx ampdu stat */ 73 for (i = 0; i < ARRAY_SIZE(range); i++) 74 range[i] = mt76_rr(dev, MT_MIB_ARNG(0, i)); 75 76 for (i = 0; i < ARRAY_SIZE(bound); i++) 77 bound[i] = MT_MIB_ARNCR_RANGE(range[i / 4], i % 4) + 1; 78 --- 382 unchanged lines hidden --- |