Lines Matching defs:sc
100 static bool ath9k_check_chirping(struct ath_softc *sc, u8 *data,
105 struct ath_hw *ah = sc->sc_ah;
200 ath9k_postprocess_radar_event(struct ath_softc *sc,
217 DFS_STAT_INC(sc, pri_phy_errors);
227 DFS_STAT_INC(sc, ext_phy_errors);
246 DFS_STAT_INC(sc, dc_phy_errors);
256 DFS_STAT_INC(sc, bwinfo_discards);
261 DFS_STAT_INC(sc, rssi_discards);
266 pe->width = dur_to_usecs(sc->sc_ah, dur);
269 DFS_STAT_INC(sc, pulses_detected);
274 ath9k_dfs_process_radar_pulse(struct ath_softc *sc, struct pulse_event *pe)
276 struct dfs_pattern_detector *pd = sc->dfs_detector;
277 DFS_STAT_INC(sc, pulses_processed);
282 DFS_STAT_INC(sc, radar_detected);
283 ieee80211_radar_detected(sc->hw);
289 void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
296 struct ath_hw *ah = sc->sc_ah;
299 DFS_STAT_INC(sc, pulses_total);
305 DFS_STAT_INC(sc, pulses_no_dfs);
311 DFS_STAT_INC(sc, datalen_discards);
333 if (!ath9k_postprocess_radar_event(sc, &ard, &pe))
341 pe.chirp = ath9k_check_chirping(sc, data, clen, is_ctl, is_ext);
350 pe.ts - sc->dfs_prev_pulse_ts);
351 sc->dfs_prev_pulse_ts = pe.ts;
353 ath9k_dfs_process_radar_pulse(sc, &pe);
357 ath9k_dfs_process_radar_pulse(sc, &pe);