• Home
  • Raw
  • Download

Lines Matching refs:sc

29 void ath9k_debug_sync_cause(struct ath_softc *sc, u32 sync_cause)  in ath9k_debug_sync_cause()  argument
32 sc->debug.stats.istats.sync_cause_all++; in ath9k_debug_sync_cause()
34 sc->debug.stats.istats.sync_rtc_irq++; in ath9k_debug_sync_cause()
36 sc->debug.stats.istats.sync_mac_irq++; in ath9k_debug_sync_cause()
38 sc->debug.stats.istats.eeprom_illegal_access++; in ath9k_debug_sync_cause()
40 sc->debug.stats.istats.apb_timeout++; in ath9k_debug_sync_cause()
42 sc->debug.stats.istats.pci_mode_conflict++; in ath9k_debug_sync_cause()
44 sc->debug.stats.istats.host1_fatal++; in ath9k_debug_sync_cause()
46 sc->debug.stats.istats.host1_perr++; in ath9k_debug_sync_cause()
48 sc->debug.stats.istats.trcv_fifo_perr++; in ath9k_debug_sync_cause()
50 sc->debug.stats.istats.radm_cpl_ep++; in ath9k_debug_sync_cause()
52 sc->debug.stats.istats.radm_cpl_dllp_abort++; in ath9k_debug_sync_cause()
54 sc->debug.stats.istats.radm_cpl_tlp_abort++; in ath9k_debug_sync_cause()
56 sc->debug.stats.istats.radm_cpl_ecrc_err++; in ath9k_debug_sync_cause()
58 sc->debug.stats.istats.radm_cpl_timeout++; in ath9k_debug_sync_cause()
60 sc->debug.stats.istats.local_timeout++; in ath9k_debug_sync_cause()
62 sc->debug.stats.istats.pm_access++; in ath9k_debug_sync_cause()
64 sc->debug.stats.istats.mac_awake++; in ath9k_debug_sync_cause()
66 sc->debug.stats.istats.mac_asleep++; in ath9k_debug_sync_cause()
68 sc->debug.stats.istats.mac_sleep_access++; in ath9k_debug_sync_cause()
89 struct ath_softc *sc = file->private_data; in read_file_debug() local
90 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in read_file_debug()
101 struct ath_softc *sc = file->private_data; in write_file_debug() local
102 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in write_file_debug()
135 struct ath_softc *sc = file->private_data; in read_file_ani() local
136 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in read_file_ani()
137 struct ath_hw *ah = sc->sc_ah; in read_file_ani()
191 struct ath_softc *sc = file->private_data; in write_file_ani() local
192 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in write_file_ani()
212 ath_stop_ani(sc); in write_file_ani()
214 ath_check_ani(sc); in write_file_ani()
234 struct ath_softc *sc = file->private_data; in read_file_bt_ant_diversity() local
235 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in read_file_bt_ant_diversity()
247 struct ath_softc *sc = file->private_data; in write_file_bt_ant_diversity() local
248 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in write_file_bt_ant_diversity()
249 struct ath9k_hw_capabilities *pCap = &sc->sc_ah->caps; in write_file_bt_ant_diversity()
266 ath9k_ps_wakeup(sc); in write_file_bt_ant_diversity()
267 ath9k_hw_set_bt_ant_diversity(sc->sc_ah, common->bt_ant_diversity); in write_file_bt_ant_diversity()
270 ath9k_ps_restore(sc); in write_file_bt_ant_diversity()
285 void ath9k_debug_stat_ant(struct ath_softc *sc, in ath9k_debug_stat_ant() argument
289 struct ath_antenna_stats *as_main = &sc->debug.stats.ant_stats[ANT_MAIN]; in ath9k_debug_stat_ant()
290 struct ath_antenna_stats *as_alt = &sc->debug.stats.ant_stats[ANT_ALT]; in ath9k_debug_stat_ant()
303 struct ath_softc *sc = file->private_data; in read_file_antenna_diversity() local
304 struct ath_hw *ah = sc->sc_ah; in read_file_antenna_diversity()
306 struct ath_antenna_stats *as_main = &sc->debug.stats.ant_stats[ANT_MAIN]; in read_file_antenna_diversity()
307 struct ath_antenna_stats *as_alt = &sc->debug.stats.ant_stats[ANT_ALT]; in read_file_antenna_diversity()
327 ath9k_ps_wakeup(sc); in read_file_antenna_diversity()
337 ath9k_ps_restore(sc); in read_file_antenna_diversity()
407 struct ath_softc *sc = hw->priv; in read_file_dma() local
408 struct ath_hw *ah = sc->sc_ah; in read_file_dma()
413 ath9k_ps_wakeup(sc); in read_file_dma()
469 ath9k_ps_restore(sc); in read_file_dma()
474 void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status) in ath_debug_stat_interrupt() argument
477 sc->debug.stats.istats.total++; in ath_debug_stat_interrupt()
478 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) { in ath_debug_stat_interrupt()
480 sc->debug.stats.istats.rxlp++; in ath_debug_stat_interrupt()
482 sc->debug.stats.istats.rxhp++; in ath_debug_stat_interrupt()
484 sc->debug.stats.istats.bb_watchdog++; in ath_debug_stat_interrupt()
487 sc->debug.stats.istats.rxok++; in ath_debug_stat_interrupt()
490 sc->debug.stats.istats.rxeol++; in ath_debug_stat_interrupt()
492 sc->debug.stats.istats.rxorn++; in ath_debug_stat_interrupt()
494 sc->debug.stats.istats.txok++; in ath_debug_stat_interrupt()
496 sc->debug.stats.istats.txurn++; in ath_debug_stat_interrupt()
498 sc->debug.stats.istats.rxphyerr++; in ath_debug_stat_interrupt()
500 sc->debug.stats.istats.rx_keycache_miss++; in ath_debug_stat_interrupt()
502 sc->debug.stats.istats.swba++; in ath_debug_stat_interrupt()
504 sc->debug.stats.istats.bmiss++; in ath_debug_stat_interrupt()
506 sc->debug.stats.istats.bnr++; in ath_debug_stat_interrupt()
508 sc->debug.stats.istats.cst++; in ath_debug_stat_interrupt()
510 sc->debug.stats.istats.gtt++; in ath_debug_stat_interrupt()
512 sc->debug.stats.istats.tim++; in ath_debug_stat_interrupt()
514 sc->debug.stats.istats.cabend++; in ath_debug_stat_interrupt()
516 sc->debug.stats.istats.dtimsync++; in ath_debug_stat_interrupt()
518 sc->debug.stats.istats.dtim++; in ath_debug_stat_interrupt()
520 sc->debug.stats.istats.tsfoor++; in ath_debug_stat_interrupt()
522 sc->debug.stats.istats.mci++; in ath_debug_stat_interrupt()
524 sc->debug.stats.istats.gen_timer++; in ath_debug_stat_interrupt()
530 struct ath_softc *sc = hw->priv; in read_file_interrupt() local
535 sc->debug.stats.istats.s); \ in read_file_interrupt()
538 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) { in read_file_interrupt()
594 struct ath_softc *sc = hw->priv; in read_file_xmit() local
623 static void print_queue(struct ath_softc *sc, struct ath_txq *txq, in print_queue() argument
626 ath_txq_lock(sc, txq); in print_queue()
633 ath_txq_unlock(sc, txq); in print_queue()
639 struct ath_softc *sc = hw->priv; in read_file_queues() local
647 txq = sc->tx.txq_map[i]; in read_file_queues()
649 print_queue(sc, txq, file); in read_file_queues()
653 print_queue(sc, sc->beacon.cabq, file); in read_file_queues()
661 struct ath_softc *sc = hw->priv; in read_file_misc() local
662 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in read_file_misc()
671 ath_opmode_to_string(sc->sc_ah->opmode)); in read_file_misc()
673 ath9k_ps_wakeup(sc); in read_file_misc()
674 rxfilter = ath9k_hw_getrxfilter(sc->sc_ah); in read_file_misc()
675 ath9k_ps_restore(sc); in read_file_misc()
710 reg = sc->sc_ah->imask; in read_file_misc()
732 ath_for_each_chanctx(sc, ctx) { in read_file_misc()
735 ath9k_calculate_iter_data(sc, ctx, &iter_data); in read_file_misc()
743 iter_data.nadhocs, iter_data.nocbs, sc->cur_chan->nvifs, in read_file_misc()
744 sc->nbcnvifs); in read_file_misc()
753 struct ath_softc *sc = hw->priv; in read_file_reset() local
776 sc->debug.stats.reset[i]); in read_file_reset()
782 void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf, in ath_debug_stat_tx() argument
789 sc->debug.stats.txstats[qnum].tx_bytes_all += bf->bf_mpdu->len; in ath_debug_stat_tx()
819 void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs) in ath_debug_stat_rx() argument
821 ath9k_cmn_debug_stat_rx(&sc->debug.stats.rxstats, rs); in ath_debug_stat_rx()
827 struct ath_softc *sc = file->private_data; in read_file_regidx() local
831 len = sprintf(buf, "0x%08x\n", sc->debug.regidx); in read_file_regidx()
838 struct ath_softc *sc = file->private_data; in write_file_regidx() local
851 sc->debug.regidx = regidx; in write_file_regidx()
866 struct ath_softc *sc = file->private_data; in read_file_regval() local
867 struct ath_hw *ah = sc->sc_ah; in read_file_regval()
872 ath9k_ps_wakeup(sc); in read_file_regval()
873 regval = REG_READ_D(ah, sc->debug.regidx); in read_file_regval()
874 ath9k_ps_restore(sc); in read_file_regval()
882 struct ath_softc *sc = file->private_data; in write_file_regval() local
883 struct ath_hw *ah = sc->sc_ah; in write_file_regval()
896 ath9k_ps_wakeup(sc); in write_file_regval()
897 REG_WRITE_D(ah, sc->debug.regidx, regval); in write_file_regval()
898 ath9k_ps_restore(sc); in write_file_regval()
914 struct ath_softc *sc = inode->i_private; in open_file_regdump() local
931 max_reg_offset = AR_SREV_9300_20_OR_LATER(sc->sc_ah) ? 0x8800 : 0xb500; in open_file_regdump()
938 ath9k_ps_wakeup(sc); in open_file_regdump()
947 "0x%06x 0x%08x\n", i << 2, REG_READ(sc->sc_ah, i << 2)); in open_file_regdump()
949 ath9k_ps_restore(sc); in open_file_regdump()
967 struct ath_softc *sc = hw->priv; in read_file_dump_nfcal() local
968 struct ath_hw *ah = sc->sc_ah; in read_file_dump_nfcal()
969 struct ath9k_nfcal_hist *h = sc->cur_chan->caldata.nfCalHist; in read_file_dump_nfcal()
1010 struct ath_softc *sc = file->private_data; in read_file_btcoex() local
1019 if (!sc->sc_ah->common.btcoex_enabled) { in read_file_btcoex()
1025 len = ath9k_dump_btcoex(sc, buf, size); in read_file_btcoex()
1045 struct ath_softc *sc = file->private_data; in read_file_ackto() local
1046 struct ath_hw *ah = sc->sc_ah; in read_file_ackto()
1069 struct ath_softc *sc = file->private_data; in read_file_wow() local
1079 sc->force_wow ? "ENABLED" : "DISABLED"); in read_file_wow()
1093 struct ath_softc *sc = file->private_data; in write_file_wow() local
1109 if (!sc->force_wow) { in write_file_wow()
1110 sc->force_wow = true; in write_file_wow()
1111 ath9k_init_wow(sc->hw); in write_file_wow()
1130 struct ath_softc *sc = file->private_data; in read_file_tpc() local
1131 struct ath_hw *ah = sc->sc_ah; in read_file_tpc()
1155 struct ath_softc *sc = file->private_data; in write_file_tpc() local
1156 struct ath_hw *ah = sc->sc_ah; in write_file_tpc()
1178 mutex_lock(&sc->mutex); in write_file_tpc()
1179 ath9k_set_txpower(sc, NULL); in write_file_tpc()
1180 mutex_unlock(&sc->mutex); in write_file_tpc()
1198 struct ath_softc *sc = file->private_data; in read_file_nf_override() local
1199 struct ath_hw *ah = sc->sc_ah; in read_file_nf_override()
1215 struct ath_softc *sc = file->private_data; in write_file_nf_override() local
1216 struct ath_hw *ah = sc->sc_ah; in write_file_nf_override()
1311 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BE)].elem; \
1312 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BK)].elem; \
1313 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VI)].elem; \
1314 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VO)].elem; \
1319 data[i++] = sc->debug.stats.rxstats.elem; \
1326 struct ath_softc *sc = hw->priv; in ath9k_get_et_stats() local
1329 data[i++] = (sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BE)].tx_pkts_all + in ath9k_get_et_stats()
1330 sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BK)].tx_pkts_all + in ath9k_get_et_stats()
1331 sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VI)].tx_pkts_all + in ath9k_get_et_stats()
1332 sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VO)].tx_pkts_all); in ath9k_get_et_stats()
1333 data[i++] = (sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BE)].tx_bytes_all + in ath9k_get_et_stats()
1334 sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BK)].tx_bytes_all + in ath9k_get_et_stats()
1335 sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VI)].tx_bytes_all + in ath9k_get_et_stats()
1336 sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VO)].tx_bytes_all); in ath9k_get_et_stats()
1372 void ath9k_deinit_debug(struct ath_softc *sc) in ath9k_deinit_debug() argument
1374 ath9k_cmn_spectral_deinit_debug(&sc->spec_priv); in ath9k_deinit_debug()
1380 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_init_debug() local
1382 sc->debug.debugfs_phy = debugfs_create_dir("ath9k", in ath9k_init_debug()
1383 sc->hw->wiphy->debugfsdir); in ath9k_init_debug()
1384 if (!sc->debug.debugfs_phy) in ath9k_init_debug()
1388 debugfs_create_file("debug", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1389 sc, &fops_debug); in ath9k_init_debug()
1392 ath9k_dfs_init_debug(sc); in ath9k_init_debug()
1393 ath9k_tx99_init_debug(sc); in ath9k_init_debug()
1394 ath9k_cmn_spectral_init_debug(&sc->spec_priv, sc->debug.debugfs_phy); in ath9k_init_debug()
1396 debugfs_create_devm_seqfile(sc->dev, "dma", sc->debug.debugfs_phy, in ath9k_init_debug()
1398 debugfs_create_devm_seqfile(sc->dev, "interrupt", sc->debug.debugfs_phy, in ath9k_init_debug()
1400 debugfs_create_devm_seqfile(sc->dev, "xmit", sc->debug.debugfs_phy, in ath9k_init_debug()
1402 debugfs_create_devm_seqfile(sc->dev, "queues", sc->debug.debugfs_phy, in ath9k_init_debug()
1404 debugfs_create_devm_seqfile(sc->dev, "misc", sc->debug.debugfs_phy, in ath9k_init_debug()
1406 debugfs_create_devm_seqfile(sc->dev, "reset", sc->debug.debugfs_phy, in ath9k_init_debug()
1409 ath9k_cmn_debug_recv(sc->debug.debugfs_phy, &sc->debug.stats.rxstats); in ath9k_init_debug()
1410 ath9k_cmn_debug_phy_err(sc->debug.debugfs_phy, &sc->debug.stats.rxstats); in ath9k_init_debug()
1412 debugfs_create_u8("rx_chainmask", S_IRUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1414 debugfs_create_u8("tx_chainmask", S_IRUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1417 sc->debug.debugfs_phy, sc, &fops_ani); in ath9k_init_debug()
1418 debugfs_create_bool("paprd", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1419 &sc->sc_ah->config.enable_paprd); in ath9k_init_debug()
1420 debugfs_create_file("regidx", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1421 sc, &fops_regidx); in ath9k_init_debug()
1422 debugfs_create_file("regval", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1423 sc, &fops_regval); in ath9k_init_debug()
1425 sc->debug.debugfs_phy, in ath9k_init_debug()
1427 debugfs_create_file("regdump", S_IRUSR, sc->debug.debugfs_phy, sc, in ath9k_init_debug()
1429 debugfs_create_devm_seqfile(sc->dev, "dump_nfcal", in ath9k_init_debug()
1430 sc->debug.debugfs_phy, in ath9k_init_debug()
1433 ath9k_cmn_debug_base_eeprom(sc->debug.debugfs_phy, sc->sc_ah); in ath9k_init_debug()
1434 ath9k_cmn_debug_modal_eeprom(sc->debug.debugfs_phy, sc->sc_ah); in ath9k_init_debug()
1437 sc->debug.debugfs_phy, &sc->sc_ah->gpio_mask); in ath9k_init_debug()
1439 sc->debug.debugfs_phy, &sc->sc_ah->gpio_val); in ath9k_init_debug()
1441 sc->debug.debugfs_phy, sc, &fops_antenna_diversity); in ath9k_init_debug()
1444 sc->debug.debugfs_phy, sc, &fops_bt_ant_diversity); in ath9k_init_debug()
1445 debugfs_create_file("btcoex", S_IRUSR, sc->debug.debugfs_phy, sc, in ath9k_init_debug()
1451 sc->debug.debugfs_phy, sc, &fops_wow); in ath9k_init_debug()
1455 debugfs_create_file("ack_to", S_IRUSR, sc->debug.debugfs_phy, in ath9k_init_debug()
1456 sc, &fops_ackto); in ath9k_init_debug()
1459 sc->debug.debugfs_phy, sc, &fops_tpc); in ath9k_init_debug()
1462 sc->debug.debugfs_phy, &sc->airtime_flags); in ath9k_init_debug()
1465 sc->debug.debugfs_phy, sc, &fops_nf_override); in ath9k_init_debug()