Lines Matching +full:rx +full:- +full:sched +full:- +full:sp
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
116 slottime = ath_hal_getslottime(sc->sc_ah); in ath_sysctl_slottime()
120 if (error || !req->newptr) in ath_sysctl_slottime()
123 error = !ath_hal_setslottime(sc->sc_ah, slottime) ? EINVAL : 0; in ath_sysctl_slottime()
142 acktimeout = ath_hal_getacktimeout(sc->sc_ah); in ath_sysctl_acktimeout()
146 if (error || !req->newptr) in ath_sysctl_acktimeout()
149 error = !ath_hal_setacktimeout(sc->sc_ah, acktimeout) ? EINVAL : 0; in ath_sysctl_acktimeout()
168 ctstimeout = ath_hal_getctstimeout(sc->sc_ah); in ath_sysctl_ctstimeout()
172 if (error || !req->newptr) in ath_sysctl_ctstimeout()
175 error = !ath_hal_setctstimeout(sc->sc_ah, ctstimeout) ? EINVAL : 0; in ath_sysctl_ctstimeout()
189 int softled = sc->sc_softled; in ath_sysctl_softled()
193 if (error || !req->newptr) in ath_sysctl_softled()
196 if (softled != sc->sc_softled) { in ath_sysctl_softled()
201 sc->sc_softled = softled; in ath_sysctl_softled()
210 int ledpin = sc->sc_ledpin; in ath_sysctl_ledpin()
214 if (error || !req->newptr) in ath_sysctl_ledpin()
216 if (ledpin != sc->sc_ledpin) { in ath_sysctl_ledpin()
217 sc->sc_ledpin = ledpin; in ath_sysctl_ledpin()
218 if (sc->sc_softled) { in ath_sysctl_ledpin()
229 int hardled = sc->sc_hardled; in ath_sysctl_hardled()
233 if (error || !req->newptr) in ath_sysctl_hardled()
236 if (hardled != sc->sc_hardled) { in ath_sysctl_hardled()
241 sc->sc_hardled = hardled; in ath_sysctl_hardled()
257 txantenna = ath_hal_getantennaswitch(sc->sc_ah); in ath_sysctl_txantenna()
260 if (!error && req->newptr) { in ath_sysctl_txantenna()
266 ath_hal_setantennaswitch(sc->sc_ah, txantenna); in ath_sysctl_txantenna()
272 sc->sc_txantenna = txantenna; in ath_sysctl_txantenna()
292 defantenna = ath_hal_getdefantenna(sc->sc_ah); in ath_sysctl_rxantenna()
296 if (!error && req->newptr) in ath_sysctl_rxantenna()
297 ath_hal_setdefantenna(sc->sc_ah, defantenna); in ath_sysctl_rxantenna()
317 diversity = ath_hal_getdiversity(sc->sc_ah); in ath_sysctl_diversity()
320 if (error || !req->newptr) in ath_sysctl_diversity()
322 if (!ath_hal_setdiversity(sc->sc_ah, diversity)) { in ath_sysctl_diversity()
326 sc->sc_diversity = diversity; in ath_sysctl_diversity()
348 if (!ath_hal_getdiag(sc->sc_ah, &diag)) { in ath_sysctl_diag()
354 if (error || !req->newptr) in ath_sysctl_diag()
356 error = !ath_hal_setdiag(sc->sc_ah, diag) ? EINVAL : 0; in ath_sysctl_diag()
377 (void) ath_hal_gettpscale(sc->sc_ah, &scale); in ath_sysctl_tpscale()
379 if (error || !req->newptr) in ath_sysctl_tpscale()
382 error = !ath_hal_settpscale(sc->sc_ah, scale) ? EINVAL : in ath_sysctl_tpscale()
383 (sc->sc_running) ? ath_reset(sc, ATH_RESET_NOLOSS, in ath_sysctl_tpscale()
405 tpc = ath_hal_gettpc(sc->sc_ah); in ath_sysctl_tpc()
408 if (error || !req->newptr) in ath_sysctl_tpc()
410 error = !ath_hal_settpc(sc->sc_ah, tpc) ? EINVAL : 0; in ath_sysctl_tpc()
424 struct ath_hal *ah = sc->sc_ah; in ath_sysctl_rfkill()
435 if (error || !req->newptr) in ath_sysctl_rfkill()
445 error = sc->sc_running ? ath_reset(sc, ATH_RESET_FULL, in ath_sysctl_rfkill()
465 if (error || !req->newptr) in ath_sysctl_txagg()
471 printf("no tx bufs (empty list): %d\n", sc->sc_stats.ast_tx_getnobuf); in ath_sysctl_txagg()
472 printf("no tx bufs (was busy): %d\n", sc->sc_stats.ast_tx_getbusybuf); in ath_sysctl_txagg()
475 sc->sc_aggr_stats.aggr_single_pkt); in ath_sysctl_txagg()
477 sc->sc_aggr_stats.aggr_baw_closed_single_pkt); in ath_sysctl_txagg()
478 printf("aggr non-baw packet: %d\n", in ath_sysctl_txagg()
479 sc->sc_aggr_stats.aggr_nonbaw_pkt); in ath_sysctl_txagg()
481 sc->sc_aggr_stats.aggr_aggr_pkt); in ath_sysctl_txagg()
483 sc->sc_aggr_stats.aggr_low_hwq_single_pkt); in ath_sysctl_txagg()
485 sc->sc_aggr_stats.aggr_rts_aggr_limited); in ath_sysctl_txagg()
486 printf("aggr sched, no work: %d\n", in ath_sysctl_txagg()
487 sc->sc_aggr_stats.aggr_sched_nopkt); in ath_sysctl_txagg()
489 printf("%2d: %10d ", i, sc->sc_aggr_stats.aggr_pkts[i]); in ath_sysctl_txagg()
500 sc->sc_txq[i].axq_depth, in ath_sysctl_txagg()
501 sc->sc_txq[i].axq_aggr_depth, in ath_sysctl_txagg()
502 sc->sc_txq[i].axq_fifo_depth, in ath_sysctl_txagg()
503 sc->sc_txq[i].axq_holdingbf); in ath_sysctl_txagg()
509 TAILQ_FOREACH(bf, &sc->sc_txbuf, bf_list) { in ath_sysctl_txagg()
510 if (bf->bf_flags & ATH_BUF_BUSY) { in ath_sysctl_txagg()
518 t, i, sc->sc_txbuf_cnt); in ath_sysctl_txagg()
522 TAILQ_FOREACH(bf, &sc->sc_txbuf_mgmt, bf_list) { in ath_sysctl_txagg()
523 if (bf->bf_flags & ATH_BUF_BUSY) { in ath_sysctl_txagg()
537 sc->sc_rxedma[i].m_fifo_depth, in ath_sysctl_txagg()
538 sc->sc_rxedma[i].m_fifolen, in ath_sysctl_txagg()
539 sc->sc_rxedma[i].m_fifo_head, in ath_sysctl_txagg()
540 sc->sc_rxedma[i].m_fifo_tail, in ath_sysctl_txagg()
541 sc->sc_rxedma[i].m_rxpending, in ath_sysctl_txagg()
542 sc->sc_rxedma[i].m_holdbf); in ath_sysctl_txagg()
545 TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) { in ath_sysctl_txagg()
548 printf("Total RX buffers in free list: %d buffers\n", in ath_sysctl_txagg()
566 (void) ath_hal_getrfsilent(sc->sc_ah, &rfsilent); in ath_sysctl_rfsilent()
568 if (error || !req->newptr) in ath_sysctl_rfsilent()
570 if (!ath_hal_setrfsilent(sc->sc_ah, rfsilent)) { in ath_sysctl_rfsilent()
582 sc->sc_rfsilentpin = rfsilent & 0x3c; in ath_sysctl_rfsilent()
583 sc->sc_rfsilentpol = (rfsilent & 0x2) != 0; in ath_sysctl_rfsilent()
605 (void) ath_hal_gettpack(sc->sc_ah, &tpack); in ath_sysctl_tpack()
607 if (error || !req->newptr) in ath_sysctl_tpack()
609 error = !ath_hal_settpack(sc->sc_ah, tpack) ? EINVAL : 0; in ath_sysctl_tpack()
630 (void) ath_hal_gettpcts(sc->sc_ah, &tpcts); in ath_sysctl_tpcts()
632 if (error || !req->newptr) in ath_sysctl_tpcts()
635 error = !ath_hal_settpcts(sc->sc_ah, tpcts) ? EINVAL : 0; in ath_sysctl_tpcts()
655 intmit = ath_hal_getintmit(sc->sc_ah); in ath_sysctl_intmit()
657 if (error || !req->newptr) in ath_sysctl_intmit()
661 error = ath_hal_setintmit(sc->sc_ah, intmit); in ath_sysctl_intmit()
668 * Reset the hardware here - disabling ANI in the HAL in ath_sysctl_intmit()
672 if (sc->sc_running) in ath_sysctl_intmit()
692 setcca = sc->sc_setcca; in ath_sysctl_setcca()
694 if (error || !req->newptr) in ath_sysctl_setcca()
696 sc->sc_setcca = (setcca != 0); in ath_sysctl_setcca()
709 if (error || !req->newptr) in ath_sysctl_forcebstuck()
714 taskqueue_enqueue(sc->sc_tq, &sc->sc_bstucktask); in ath_sysctl_forcebstuck()
726 uint32_t *sp; in ath_sysctl_hangcheck() local
728 struct ath_hal *ah = sc->sc_ah; in ath_sysctl_hangcheck()
731 if (error || !req->newptr) in ath_sysctl_hangcheck()
743 (void *) &sp, &rsize)) { in ath_sysctl_hangcheck()
748 device_printf(sc->sc_dev, "%s: sp=0x%08x\n", __func__, *sp); in ath_sysctl_hangcheck()
767 enable = (sc->sc_alq.sc_alq_isactive); in ath_sysctl_alq_log()
770 if (error || !req->newptr) in ath_sysctl_alq_log()
773 error = if_ath_alq_start(&sc->sc_alq); in ath_sysctl_alq_log()
775 error = if_ath_alq_stop(&sc->sc_alq); in ath_sysctl_alq_log()
785 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in ath_sysctl_alq_attach()
786 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in ath_sysctl_alq_attach()
795 CTLFLAG_RW, sc->sc_alq.sc_alq_filename, 0, "ALQ filename"); in ath_sysctl_alq_attach()
802 "debugmask", CTLFLAG_RW, &sc->sc_alq.sc_alq_debug, 0, in ath_sysctl_alq_attach()
806 "numlost", CTLFLAG_RW, &sc->sc_alq.sc_alq_numlost, 0, in ath_sysctl_alq_attach()
814 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in ath_sysctlattach()
815 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in ath_sysctlattach()
816 struct ath_hal *ah = sc->sc_ah; in ath_sysctlattach()
819 "countrycode", CTLFLAG_RD, &sc->sc_eecc, 0, in ath_sysctlattach()
822 "regdomain", CTLFLAG_RD, &sc->sc_eerd, 0, in ath_sysctlattach()
826 "debug", CTLFLAG_RW, &sc->sc_debug, in ath_sysctlattach()
831 "ktrdebug", CTLFLAG_RW, &sc->sc_ktrdebug, in ath_sysctlattach()
851 "ledon", CTLFLAG_RW, &sc->sc_ledon, 0, in ath_sysctlattach()
854 "ledidle", CTLFLAG_RW, &sc->sc_ledidle, 0, in ath_sysctlattach()
860 /* XXX Laziness - configure pins, then flip hardled off/on */ in ath_sysctlattach()
862 "led_net_pin", CTLFLAG_RW, &sc->sc_led_net_pin, 0, in ath_sysctlattach()
863 "MAC Network LED pin, or -1 to disable"); in ath_sysctlattach()
865 "led_pwr_pin", CTLFLAG_RW, &sc->sc_led_pwr_pin, 0, in ath_sysctlattach()
866 "MAC Power LED pin, or -1 to disable"); in ath_sysctlattach()
873 ath_sysctl_rxantenna, "I", "default/rx antenna"); in ath_sysctlattach()
878 sc->sc_txintrperiod = ATH_TXINTR_PERIOD; in ath_sysctlattach()
880 "txintrperiod", CTLFLAG_RW, &sc->sc_txintrperiod, 0, in ath_sysctlattach()
891 ath_sysctl_tpc, "I", "enable/disable per-packet TPC"); in ath_sysctlattach()
925 sc->sc_monpass = HAL_RXERR_DECRYPT | HAL_RXERR_MIC; in ath_sysctlattach()
927 "monpass", CTLFLAG_RW, &sc->sc_monpass, 0, in ath_sysctlattach()
931 "hwq_limit_nonaggr", CTLFLAG_RW, &sc->sc_hwq_limit_nonaggr, 0, in ath_sysctlattach()
932 "Hardware non-AMPDU queue depth before software-queuing TX frames"); in ath_sysctlattach()
934 "hwq_limit_aggr", CTLFLAG_RW, &sc->sc_hwq_limit_aggr, 0, in ath_sysctlattach()
935 "Hardware AMPDU queue depth before software-queuing TX frames"); in ath_sysctlattach()
937 "tid_hwq_lo", CTLFLAG_RW, &sc->sc_tid_hwq_lo, 0, in ath_sysctlattach()
940 "tid_hwq_hi", CTLFLAG_RW, &sc->sc_tid_hwq_hi, 0, in ath_sysctlattach()
945 "aggr_limit", CTLFLAG_RW, &sc->sc_aggr_limit, 0, in ath_sysctlattach()
946 "Maximum A-MPDU size, or 0 for 'default'"); in ath_sysctlattach()
948 "rts_aggr_limit", CTLFLAG_RW, &sc->sc_rts_aggr_limit, 0, in ath_sysctlattach()
949 "Maximum A-MPDU size for RTS-protected frames, or '0' " in ath_sysctlattach()
952 "delim_min_pad", CTLFLAG_RW, &sc->sc_delim_min_pad, 0, in ath_sysctlattach()
953 "Enforce a minimum number of delimiters per A-MPDU " in ath_sysctlattach()
954 " sub-frame"); in ath_sysctlattach()
957 "txq_data_minfree", CTLFLAG_RW, &sc->sc_txq_data_minfree, in ath_sysctlattach()
962 &sc->sc_txq_mcastq_maxdepth, 0, in ath_sysctlattach()
966 &sc->sc_txq_node_maxdepth, 0, in ath_sysctlattach()
972 &sc->sc_cabq_enable, 0, in ath_sysctlattach()
978 sc->sc_tdmadbaprep = 2; in ath_sysctlattach()
980 "dbaprep", CTLFLAG_RW, &sc->sc_tdmadbaprep, 0, in ath_sysctlattach()
982 sc->sc_tdmaswbaprep = 10; in ath_sysctlattach()
984 "swbaprep", CTLFLAG_RW, &sc->sc_tdmaswbaprep, 0, in ath_sysctlattach()
987 "guardtime", CTLFLAG_RW, &sc->sc_tdmaguard, 0, in ath_sysctlattach()
990 "superframe", CTLFLAG_RD, &sc->sc_tdmabintval, 0, in ath_sysctlattach()
1011 if (error || !req->newptr) in ath_sysctl_clearstats()
1015 memset(&sc->sc_stats, 0, sizeof(sc->sc_stats)); in ath_sysctl_clearstats()
1016 memset(&sc->sc_aggr_stats, 0, sizeof(sc->sc_aggr_stats)); in ath_sysctl_clearstats()
1017 memset(&sc->sc_intr_stats, 0, sizeof(sc->sc_intr_stats)); in ath_sysctl_clearstats()
1026 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in ath_sysctl_stats_attach_rxphyerr()
1027 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in ath_sysctl_stats_attach_rxphyerr()
1033 CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, "Per-code RX PHY Errors"); in ath_sysctl_stats_attach_rxphyerr()
1037 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD, &sc->sc_stats.ast_rx_phy[i], 0, ""); in ath_sysctl_stats_attach_rxphyerr()
1045 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in ath_sysctl_stats_attach_intr()
1046 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in ath_sysctl_stats_attach_intr()
1057 &sc->sc_intr_stats.sync_intr[i], 0, ""); in ath_sysctl_stats_attach_intr()
1064 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in ath_sysctl_stats_attach()
1065 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in ath_sysctl_stats_attach()
1081 &sc->sc_stats.ast_watchdog, 0, "device reset by watchdog"); in ath_sysctl_stats_attach()
1083 &sc->sc_stats.ast_hardware, 0, "fatal hardware error interrupts"); in ath_sysctl_stats_attach()
1085 &sc->sc_stats.ast_bmiss, 0, "beacon miss interrupts"); in ath_sysctl_stats_attach()
1087 &sc->sc_stats.ast_bmiss_phantom, 0, "beacon miss interrupts"); in ath_sysctl_stats_attach()
1089 &sc->sc_stats.ast_bstuck, 0, "beacon stuck interrupts"); in ath_sysctl_stats_attach()
1091 &sc->sc_stats.ast_rxorn, 0, "rx overrun interrupts"); in ath_sysctl_stats_attach()
1093 &sc->sc_stats.ast_rxeol, 0, "rx eol interrupts"); in ath_sysctl_stats_attach()
1095 &sc->sc_stats.ast_txurn, 0, "tx underrun interrupts"); in ath_sysctl_stats_attach()
1097 &sc->sc_stats.ast_mib, 0, "mib interrupts"); in ath_sysctl_stats_attach()
1099 &sc->sc_stats.ast_intrcoal, 0, "interrupts coalesced"); in ath_sysctl_stats_attach()
1101 &sc->sc_stats.ast_tx_packets, 0, "packet sent on the interface"); in ath_sysctl_stats_attach()
1103 &sc->sc_stats.ast_tx_mgmt, 0, "management frames transmitted"); in ath_sysctl_stats_attach()
1105 &sc->sc_stats.ast_tx_discard, 0, "frames discarded prior to assoc"); in ath_sysctl_stats_attach()
1107 &sc->sc_stats.ast_tx_qstop, 0, "output stopped 'cuz no buffer"); in ath_sysctl_stats_attach()
1109 &sc->sc_stats.ast_tx_encap, 0, "tx encapsulation failed"); in ath_sysctl_stats_attach()
1111 &sc->sc_stats.ast_tx_nonode, 0, "tx failed 'cuz no node"); in ath_sysctl_stats_attach()
1113 &sc->sc_stats.ast_tx_nombuf, 0, "tx failed 'cuz no mbuf"); in ath_sysctl_stats_attach()
1115 &sc->sc_stats.ast_tx_nomcl, 0, "tx failed 'cuz no cluster"); in ath_sysctl_stats_attach()
1117 &sc->sc_stats.ast_tx_linear, 0, "tx linearized to cluster"); in ath_sysctl_stats_attach()
1119 &sc->sc_stats.ast_tx_nodata, 0, "tx discarded empty frame"); in ath_sysctl_stats_attach()
1121 &sc->sc_stats.ast_tx_busdma, 0, "tx failed for dma resrcs"); in ath_sysctl_stats_attach()
1123 &sc->sc_stats.ast_tx_xretries, 0, "tx failed 'cuz too many retries"); in ath_sysctl_stats_attach()
1125 &sc->sc_stats.ast_tx_fifoerr, 0, "tx failed 'cuz FIFO underrun"); in ath_sysctl_stats_attach()
1127 &sc->sc_stats.ast_tx_filtered, 0, "tx failed 'cuz xmit filtered"); in ath_sysctl_stats_attach()
1129 &sc->sc_stats.ast_tx_shortretry, 0, "tx on-chip retries (short)"); in ath_sysctl_stats_attach()
1131 &sc->sc_stats.ast_tx_longretry, 0, "tx on-chip retries (long)"); in ath_sysctl_stats_attach()
1133 &sc->sc_stats.ast_tx_badrate, 0, "tx failed 'cuz bogus xmit rate"); in ath_sysctl_stats_attach()
1135 &sc->sc_stats.ast_tx_noack, 0, "tx frames with no ack marked"); in ath_sysctl_stats_attach()
1137 &sc->sc_stats.ast_tx_rts, 0, "tx frames with rts enabled"); in ath_sysctl_stats_attach()
1139 &sc->sc_stats.ast_tx_cts, 0, "tx frames with cts enabled"); in ath_sysctl_stats_attach()
1141 &sc->sc_stats.ast_tx_shortpre, 0, "tx frames with short preamble"); in ath_sysctl_stats_attach()
1143 &sc->sc_stats.ast_tx_altrate, 0, "tx frames with alternate rate"); in ath_sysctl_stats_attach()
1145 &sc->sc_stats.ast_tx_protect, 0, "tx frames with protection"); in ath_sysctl_stats_attach()
1147 &sc->sc_stats.ast_tx_ctsburst, 0, "tx frames with cts and bursting"); in ath_sysctl_stats_attach()
1149 &sc->sc_stats.ast_tx_ctsext, 0, "tx frames with cts extension"); in ath_sysctl_stats_attach()
1151 &sc->sc_stats.ast_rx_nombuf, 0, "rx setup failed 'cuz no mbuf"); in ath_sysctl_stats_attach()
1153 &sc->sc_stats.ast_rx_busdma, 0, "rx setup failed for dma resrcs"); in ath_sysctl_stats_attach()
1155 &sc->sc_stats.ast_rx_orn, 0, "rx failed 'cuz of desc overrun"); in ath_sysctl_stats_attach()
1157 &sc->sc_stats.ast_rx_crcerr, 0, "rx failed 'cuz of bad CRC"); in ath_sysctl_stats_attach()
1159 &sc->sc_stats.ast_rx_fifoerr, 0, "rx failed 'cuz of FIFO overrun"); in ath_sysctl_stats_attach()
1161 &sc->sc_stats.ast_rx_badcrypt, 0, "rx failed 'cuz decryption"); in ath_sysctl_stats_attach()
1163 &sc->sc_stats.ast_rx_badmic, 0, "rx failed 'cuz MIC failure"); in ath_sysctl_stats_attach()
1165 &sc->sc_stats.ast_rx_phyerr, 0, "rx failed 'cuz of PHY err"); in ath_sysctl_stats_attach()
1167 &sc->sc_stats.ast_rx_tooshort, 0, "rx discarded 'cuz frame too short"); in ath_sysctl_stats_attach()
1169 &sc->sc_stats.ast_rx_toobig, 0, "rx discarded 'cuz frame too large"); in ath_sysctl_stats_attach()
1171 &sc->sc_stats.ast_rx_packets, 0, "packet recv on the interface"); in ath_sysctl_stats_attach()
1173 &sc->sc_stats.ast_rx_mgt, 0, "management frames received"); in ath_sysctl_stats_attach()
1175 &sc->sc_stats.ast_rx_ctl, 0, "rx discarded 'cuz ctl frame"); in ath_sysctl_stats_attach()
1177 &sc->sc_stats.ast_be_xmit, 0, "beacons transmitted"); in ath_sysctl_stats_attach()
1179 &sc->sc_stats.ast_be_nombuf, 0, "beacon setup failed 'cuz no mbuf"); in ath_sysctl_stats_attach()
1181 &sc->sc_stats.ast_per_cal, 0, "periodic calibration calls"); in ath_sysctl_stats_attach()
1183 &sc->sc_stats.ast_per_calfail, 0, "periodic calibration failed"); in ath_sysctl_stats_attach()
1185 &sc->sc_stats.ast_per_rfgain, 0, "periodic calibration rfgain reset"); in ath_sysctl_stats_attach()
1187 &sc->sc_stats.ast_rate_calls, 0, "rate control checks"); in ath_sysctl_stats_attach()
1189 &sc->sc_stats.ast_rate_raise, 0, "rate control raised xmit rate"); in ath_sysctl_stats_attach()
1191 &sc->sc_stats.ast_rate_drop, 0, "rate control dropped xmit rate"); in ath_sysctl_stats_attach()
1193 &sc->sc_stats.ast_ant_defswitch, 0, "rx/default antenna switches"); in ath_sysctl_stats_attach()
1195 &sc->sc_stats.ast_ant_txswitch, 0, "tx antenna switches"); in ath_sysctl_stats_attach()
1197 &sc->sc_stats.ast_cabq_xmit, 0, "cabq frames transmitted"); in ath_sysctl_stats_attach()
1199 &sc->sc_stats.ast_cabq_busy, 0, "cabq found busy"); in ath_sysctl_stats_attach()
1201 &sc->sc_stats.ast_tx_raw, 0, "tx frames through raw api"); in ath_sysctl_stats_attach()
1203 &sc->sc_stats.ast_ff_txok, 0, "fast frames tx'd successfully"); in ath_sysctl_stats_attach()
1205 &sc->sc_stats.ast_ff_txerr, 0, "fast frames tx'd w/ error"); in ath_sysctl_stats_attach()
1207 &sc->sc_stats.ast_ff_rx, 0, "fast frames rx'd"); in ath_sysctl_stats_attach()
1209 &sc->sc_stats.ast_ff_flush, 0, "fast frames flushed from staging q"); in ath_sysctl_stats_attach()
1211 &sc->sc_stats.ast_tx_qfull, 0, "tx dropped 'cuz of queue limit"); in ath_sysctl_stats_attach()
1213 &sc->sc_stats.ast_tx_nobuf, 0, "tx dropped 'cuz no ath buffer"); in ath_sysctl_stats_attach()
1215 &sc->sc_stats.ast_tdma_update, 0, "TDMA slot timing updates"); in ath_sysctl_stats_attach()
1217 &sc->sc_stats.ast_tdma_timers, 0, "TDMA slot update set beacon timers"); in ath_sysctl_stats_attach()
1219 &sc->sc_stats.ast_tdma_tsf, 0, "TDMA slot update set TSF"); in ath_sysctl_stats_attach()
1221 &sc->sc_stats.ast_tdma_ack, 0, "TDMA tx failed 'cuz ACK required"); in ath_sysctl_stats_attach()
1223 &sc->sc_stats.ast_tx_raw_fail, 0, "raw tx failed 'cuz h/w down"); in ath_sysctl_stats_attach()
1225 &sc->sc_stats.ast_tx_nofrag, 0, "tx dropped 'cuz no ath frag buffer"); in ath_sysctl_stats_attach()
1227 &sc->sc_stats.ast_be_missed, 0, "number of -missed- beacons"); in ath_sysctl_stats_attach()
1229 &sc->sc_stats.ast_ani_cal, 0, "number of ANI polls"); in ath_sysctl_stats_attach()
1231 &sc->sc_stats.ast_rx_agg, 0, "number of aggregate frames received"); in ath_sysctl_stats_attach()
1234 &sc->sc_stats.ast_rx_halfgi, 0, "number of frames received with half-GI"); in ath_sysctl_stats_attach()
1236 &sc->sc_stats.ast_rx_2040, 0, "number of HT/40 frames received"); in ath_sysctl_stats_attach()
1238 &sc->sc_stats.ast_rx_pre_crc_err, 0, "number of delimiter-CRC errors detected"); in ath_sysctl_stats_attach()
1240 &sc->sc_stats.ast_rx_post_crc_err, 0, "number of post-delimiter CRC errors detected"); in ath_sysctl_stats_attach()
1242 &sc->sc_stats.ast_rx_decrypt_busy_err, 0, "number of frames received w/ busy decrypt engine"); in ath_sysctl_stats_attach()
1244 &sc->sc_stats.ast_rx_hi_rx_chain, 0, ""); in ath_sysctl_stats_attach()
1246 &sc->sc_stats.ast_tx_htprotect, 0, "HT tx frames with protection"); in ath_sysctl_stats_attach()
1248 &sc->sc_stats.ast_rx_hitqueueend, 0, "RX hit queue end"); in ath_sysctl_stats_attach()
1250 &sc->sc_stats.ast_tx_timeout, 0, "TX Global Timeout"); in ath_sysctl_stats_attach()
1252 &sc->sc_stats.ast_tx_cst, 0, "TX Carrier Sense Timeout"); in ath_sysctl_stats_attach()
1254 &sc->sc_stats.ast_tx_xtxop, 0, "TX exceeded TXOP"); in ath_sysctl_stats_attach()
1256 &sc->sc_stats.ast_tx_timerexpired, 0, "TX exceeded TX_TIMER register"); in ath_sysctl_stats_attach()
1258 &sc->sc_stats.ast_tx_desccfgerr, 0, "TX Descriptor Cfg Error"); in ath_sysctl_stats_attach()
1260 &sc->sc_stats.ast_tx_swretries, 0, "TX software retry count"); in ath_sysctl_stats_attach()
1262 &sc->sc_stats.ast_tx_swretrymax, 0, "TX software retry max reached"); in ath_sysctl_stats_attach()
1265 &sc->sc_stats.ast_tx_data_underrun, 0, ""); in ath_sysctl_stats_attach()
1267 &sc->sc_stats.ast_tx_delim_underrun, 0, ""); in ath_sysctl_stats_attach()
1269 &sc->sc_stats.ast_tx_aggr_failall, 0, in ath_sysctl_stats_attach()
1272 &sc->sc_stats.ast_tx_aggr_ok, 0, in ath_sysctl_stats_attach()
1275 &sc->sc_stats.ast_tx_aggr_fail, 0, in ath_sysctl_stats_attach()
1279 &sc->sc_stats.ast_rx_intr, 0, "RX interrupts"); in ath_sysctl_stats_attach()
1281 &sc->sc_stats.ast_tx_intr, 0, "TX interrupts"); in ath_sysctl_stats_attach()
1283 CTLFLAG_RD, &sc->sc_stats.ast_tx_mcastq_overflow, 0, in ath_sysctl_stats_attach()
1286 &sc->sc_stats.ast_rx_keymiss, 0, ""); in ath_sysctl_stats_attach()
1288 &sc->sc_stats.ast_tx_swfiltered, 0, ""); in ath_sysctl_stats_attach()
1290 CTLFLAG_RD, &sc->sc_stats.ast_tx_nodeq_overflow, 0, in ath_sysctl_stats_attach()
1293 CTLFLAG_RD, &sc->sc_stats.ast_rx_stbc, 0, in ath_sysctl_stats_attach()
1296 CTLFLAG_RD, &sc->sc_stats.ast_tx_stbc, 0, in ath_sysctl_stats_attach()
1299 CTLFLAG_RD, &sc->sc_stats.ast_tx_ldpc, 0, in ath_sysctl_stats_attach()
1303 CTLFLAG_RD, &sc->sc_stats.ast_tsfoor, 0, in ath_sysctl_stats_attach()
1306 /* Attach the RX phy error array */ in ath_sysctl_stats_attach()
1320 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev); in ath_sysctl_hal_attach()
1321 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); in ath_sysctl_hal_attach()
1328 sc->sc_ah->ah_config.ah_debug = 0; in ath_sysctl_hal_attach()
1330 &sc->sc_ah->ah_config.ah_debug, 0, "Atheros HAL debugging printfs"); in ath_sysctl_hal_attach()
1332 sc->sc_ah->ah_config.ah_ar5416_biasadj = 0; in ath_sysctl_hal_attach()
1334 &sc->sc_ah->ah_config.ah_ar5416_biasadj, 0, in ath_sysctl_hal_attach()
1337 sc->sc_ah->ah_config.ah_dma_beacon_response_time = 2; in ath_sysctl_hal_attach()
1339 &sc->sc_ah->ah_config.ah_dma_beacon_response_time, 0, in ath_sysctl_hal_attach()
1342 sc->sc_ah->ah_config.ah_sw_beacon_response_time = 10; in ath_sysctl_hal_attach()
1344 &sc->sc_ah->ah_config.ah_sw_beacon_response_time, 0, in ath_sysctl_hal_attach()
1347 sc->sc_ah->ah_config.ah_additional_swba_backoff = 0; in ath_sysctl_hal_attach()
1349 &sc->sc_ah->ah_config.ah_additional_swba_backoff, 0, in ath_sysctl_hal_attach()
1352 sc->sc_ah->ah_config.ah_force_full_reset = 0; in ath_sysctl_hal_attach()
1354 &sc->sc_ah->ah_config.ah_force_full_reset, 0, in ath_sysctl_hal_attach()
1361 &sc->sc_ah->ah_config.ah_serialise_reg_war, 0, in ath_sysctl_hal_attach()