Lines Matching defs:common

74 	struct ath_common *common = ath9k_hw_common(sc->sc_ah);
83 ath_dbg(common, RESET,
100 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
105 ath_dbg(common, RESET, "PLL WAR, resetting the chip\n");
122 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
129 if (!test_bit(ATH_OP_BEACONS, &common->op_flags))
151 struct ath_common *common = ath9k_hw_common(ah);
156 ath_dbg(common, CALIBRATE, "Failed to activate PAPRD\n");
168 ath_dbg(common, CALIBRATE, "Activating PAPRD\n");
177 struct ath_common *common = ath9k_hw_common(ah);
196 ath_dbg(common, CALIBRATE, "PAPRD TX failed\n");
205 ath_dbg(common, CALIBRATE,
220 struct ath_common *common = ath9k_hw_common(ah);
230 ath_dbg(common, CALIBRATE, "Skipping PAPRD calibration\n");
260 ath_dbg(common, CALIBRATE,
266 ath_dbg(common, CALIBRATE,
273 ath_dbg(common, CALIBRATE,
278 ath_dbg(common, CALIBRATE,
306 struct ath_common *common = from_timer(common, t, ani.timer);
307 struct ath_softc *sc = common->priv;
341 if ((timestamp - common->ani.longcal_timer) >= long_cal_interval) {
343 common->ani.longcal_timer = timestamp;
347 if (!common->ani.caldone) {
348 if ((timestamp - common->ani.shortcal_timer) >= short_cal_interval) {
350 common->ani.shortcal_timer = timestamp;
351 common->ani.resetcal_timer = timestamp;
354 if ((timestamp - common->ani.resetcal_timer) >=
356 common->ani.caldone = ath9k_hw_reset_calvalid(ah);
357 if (common->ani.caldone)
358 common->ani.resetcal_timer = timestamp;
363 if ((timestamp - common->ani.checkani_timer) >= ah->config.ani_poll_interval) {
365 common->ani.checkani_timer = timestamp;
370 spin_lock_irqsave(&common->cc_lock, flags);
373 spin_unlock_irqrestore(&common->cc_lock, flags);
381 common->ani.caldone = 0;
386 common->ani.caldone = ret;
389 ath_dbg(common, ANI,
393 aniflag ? "ani" : "", common->ani.caldone ? "true" : "false");
405 if (!common->ani.caldone)
408 mod_timer(&common->ani.timer, jiffies + msecs_to_jiffies(cal_interval));
424 struct ath_common *common = ath9k_hw_common(ah);
427 if (common->disable_ani ||
428 !test_bit(ATH_OP_ANI_RUN, &common->op_flags) ||
432 common->ani.longcal_timer = timestamp;
433 common->ani.shortcal_timer = timestamp;
434 common->ani.checkani_timer = timestamp;
436 ath_dbg(common, ANI, "Starting ANI\n");
437 mod_timer(&common->ani.timer,
443 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
445 ath_dbg(common, ANI, "Stopping ANI\n");
446 del_timer_sync(&common->ani.timer);
452 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
468 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags))
472 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags))
476 if (!test_bit(ATH_OP_ANI_RUN, &common->op_flags)) {
477 set_bit(ATH_OP_ANI_RUN, &common->op_flags);
484 clear_bit(ATH_OP_ANI_RUN, &common->op_flags);
509 struct ath_common *common = ath9k_hw_common(ah);
512 struct ath_cycle_counters *cc = &common->cc_survey;
513 unsigned int div = common->clockrate * 1000;
520 ath_hw_cycle_counters_update(common);