#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/export.h>
#include <asm/unaligned.h>
#include "ath9k.h"
#define REG_WRITE_D(_ah, _reg, _val) …
#define REG_READ_D(_ah, _reg) …
void ath9k_debug_sync_cause(struct ath_softc *sc, u32 sync_cause)
{ … }
static ssize_t ath9k_debugfs_read_buf(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static int ath9k_debugfs_release_buf(struct inode *inode, struct file *file)
{ … }
#ifdef CONFIG_ATH_DEBUG
static ssize_t read_file_debug(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_debug(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_debug = …;
#endif
#define DMA_BUF_LEN …
static ssize_t read_file_ani(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_ani(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_ani = …;
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
static ssize_t read_file_bt_ant_diversity(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_bt_ant_diversity(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_bt_ant_diversity = …;
#endif
void ath9k_debug_stat_ant(struct ath_softc *sc,
struct ath_hw_antcomb_conf *div_ant_conf,
int main_rssi_avg, int alt_rssi_avg)
{ … }
static ssize_t read_file_antenna_diversity(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_antenna_diversity = …;
static int read_file_dma(struct seq_file *file, void *data)
{ … }
void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status)
{ … }
static int read_file_interrupt(struct seq_file *file, void *data)
{ … }
static int read_file_xmit(struct seq_file *file, void *data)
{ … }
static void print_queue(struct ath_softc *sc, struct ath_txq *txq,
struct seq_file *file)
{ … }
static int read_file_queues(struct seq_file *file, void *data)
{ … }
static int read_file_misc(struct seq_file *file, void *data)
{ … }
static int read_file_reset(struct seq_file *file, void *data)
{ … }
static int open_file_reset(struct inode *inode, struct file *f)
{ … }
static ssize_t write_file_reset(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_reset = …;
void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf,
struct ath_tx_status *ts, struct ath_txq *txq,
unsigned int flags)
{ … }
void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs)
{ … }
static ssize_t read_file_regidx(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_regidx(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_regidx = …;
static ssize_t read_file_regval(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_regval(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_regval = …;
#define REGDUMP_LINE_SIZE …
static int open_file_regdump(struct inode *inode, struct file *file)
{ … }
static const struct file_operations fops_regdump = …;
static int read_file_dump_nfcal(struct seq_file *file, void *data)
{ … }
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
static ssize_t read_file_btcoex(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_btcoex = …;
#endif
#ifdef CONFIG_ATH9K_DYNACK
static ssize_t read_file_ackto(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_ackto = …;
#endif
#ifdef CONFIG_ATH9K_WOW
static ssize_t read_file_wow(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_wow(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_wow = …;
#endif
static ssize_t read_file_tpc(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_tpc(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_tpc = …;
static ssize_t read_file_nf_override(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t write_file_nf_override(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_nf_override = …;
#define AMKSTR(nm) …
static const char ath9k_gstrings_stats[][ETH_GSTRING_LEN] = …;
#define ATH9K_SSTATS_LEN …
void ath9k_get_et_strings(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
u32 sset, u8 *data)
{ … }
int ath9k_get_et_sset_count(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, int sset)
{ … }
#define AWDATA(elem) …
#define AWDATA_RX(elem) …
void ath9k_get_et_stats(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ethtool_stats *stats, u64 *data)
{ … }
void ath9k_deinit_debug(struct ath_softc *sc)
{ … }
int ath9k_init_debug(struct ath_hw *ah)
{ … }