debugfs.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) debugfs.c (086ddf860650cfa3065d6698fae81335b1846cdb)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
4 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
5 */
6
7#include <linux/debugfs.h>
8

--- 13 unchanged lines hidden (view full) ---

22mt76_reg_get(void *data, u64 *val)
23{
24 struct mt7601u_dev *dev = data;
25
26 *val = mt76_rr(dev, dev->debugfs_reg);
27 return 0;
28}
29
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
4 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
5 */
6
7#include <linux/debugfs.h>
8

--- 13 unchanged lines hidden (view full) ---

22mt76_reg_get(void *data, u64 *val)
23{
24 struct mt7601u_dev *dev = data;
25
26 *val = mt76_rr(dev, dev->debugfs_reg);
27 return 0;
28}
29
30DEFINE_SIMPLE_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set, "0x%08llx\n");
30DEFINE_DEBUGFS_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set, "0x%08llx\n");
31
32static int
33mt7601u_ampdu_stat_read(struct seq_file *file, void *data)
34{
35 struct mt7601u_dev *dev = file->private;
36 int i, j;
37
38#define stat_printf(grp, off, name) \

--- 124 unchanged lines hidden ---
31
32static int
33mt7601u_ampdu_stat_read(struct seq_file *file, void *data)
34{
35 struct mt7601u_dev *dev = file->private;
36 int i, j;
37
38#define stat_printf(grp, off, name) \

--- 124 unchanged lines hidden ---