Lines Matching full:common
84 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ps_wakeup() local
101 spin_lock(&common->cc_lock); in ath9k_ps_wakeup()
102 ath_hw_cycle_counters_update(common); in ath9k_ps_wakeup()
103 memset(&common->cc_survey, 0, sizeof(common->cc_survey)); in ath9k_ps_wakeup()
104 spin_unlock(&common->cc_lock); in ath9k_ps_wakeup()
113 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ps_restore() local
132 spin_lock(&common->cc_lock); in ath9k_ps_restore()
133 ath_hw_cycle_counters_update(common); in ath9k_ps_restore()
134 spin_unlock(&common->cc_lock); in ath9k_ps_restore()
142 void ath_start_ani(struct ath_common *common) in ath_start_ani() argument
144 struct ath_hw *ah = common->ah; in ath_start_ani()
146 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_start_ani()
154 common->ani.longcal_timer = timestamp; in ath_start_ani()
155 common->ani.shortcal_timer = timestamp; in ath_start_ani()
156 common->ani.checkani_timer = timestamp; in ath_start_ani()
158 mod_timer(&common->ani.timer, in ath_start_ani()
183 struct ath_common *common = ath9k_hw_common(ah); in ath_update_survey_stats() local
186 struct ath_cycle_counters *cc = &common->cc_survey; in ath_update_survey_stats()
187 unsigned int div = common->clockrate * 1000; in ath_update_survey_stats()
194 ath_hw_cycle_counters_update(common); in ath_update_survey_stats()
237 struct ath_common *common = ath9k_hw_common(ah); in ath_prepare_reset() local
243 del_timer_sync(&common->ani.timer); in ath_prepare_reset()
267 struct ath_common *common = ath9k_hw_common(ah); in ath_complete_reset() local
270 ath_err(common, "Unable to restart recv logic\n"); in ath_complete_reset()
285 if (!common->disable_ani) in ath_complete_reset()
286 ath_start_ani(common); in ath_complete_reset()
314 struct ath_common *common = ath9k_hw_common(ah); in ath_reset_internal() local
342 ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n", in ath_reset_internal()
349 ath_err(common, in ath_reset_internal()
412 struct ath_common *common = ath9k_hw_common(ah); in ath_paprd_send_frame() local
431 ath_dbg(common, CALIBRATE, "PAPRD TX failed\n"); in ath_paprd_send_frame()
440 ath_dbg(common, CALIBRATE, in ath_paprd_send_frame()
455 struct ath_common *common = ath9k_hw_common(ah); in ath_paprd_calibrate() local
489 ath_dbg(common, CALIBRATE, in ath_paprd_calibrate()
497 ath_dbg(common, CALIBRATE, in ath_paprd_calibrate()
503 ath_dbg(common, CALIBRATE, in ath_paprd_calibrate()
509 ath_dbg(common, CALIBRATE, in ath_paprd_calibrate()
539 struct ath_common *common = ath9k_hw_common(ah); in ath_ani_calibrate() local
562 if ((timestamp - common->ani.longcal_timer) >= long_cal_interval) { in ath_ani_calibrate()
564 common->ani.longcal_timer = timestamp; in ath_ani_calibrate()
568 if (!common->ani.caldone) { in ath_ani_calibrate()
569 if ((timestamp - common->ani.shortcal_timer) >= short_cal_interval) { in ath_ani_calibrate()
571 common->ani.shortcal_timer = timestamp; in ath_ani_calibrate()
572 common->ani.resetcal_timer = timestamp; in ath_ani_calibrate()
575 if ((timestamp - common->ani.resetcal_timer) >= in ath_ani_calibrate()
577 common->ani.caldone = ath9k_hw_reset_calvalid(ah); in ath_ani_calibrate()
578 if (common->ani.caldone) in ath_ani_calibrate()
579 common->ani.resetcal_timer = timestamp; in ath_ani_calibrate()
585 && (timestamp - common->ani.checkani_timer) >= in ath_ani_calibrate()
588 common->ani.checkani_timer = timestamp; in ath_ani_calibrate()
593 spin_lock_irqsave(&common->cc_lock, flags); in ath_ani_calibrate()
596 spin_unlock_irqrestore(&common->cc_lock, flags); in ath_ani_calibrate()
601 common->ani.caldone = in ath_ani_calibrate()
606 ath_dbg(common, ANI, in ath_ani_calibrate()
610 aniflag ? "ani" : "", common->ani.caldone ? "true" : "false"); in ath_ani_calibrate()
625 if (!common->ani.caldone) in ath_ani_calibrate()
628 mod_timer(&common->ani.timer, jiffies + msecs_to_jiffies(cal_interval)); in ath_ani_calibrate()
678 struct ath_common *common = ath9k_hw_common(ah); in ath9k_tasklet() local
718 ath_dbg(common, PS, "TSFOOR - Sync with next Beacon\n"); in ath9k_tasklet()
778 struct ath_common *common = ath9k_hw_common(ah); in ath_isr() local
829 spin_lock(&common->cc_lock); in ath_isr()
830 ath_hw_cycle_counters_update(common); in ath_isr()
832 spin_unlock(&common->cc_lock); in ath_isr()
860 spin_lock(&common->cc_lock); in ath_isr()
862 spin_unlock(&common->cc_lock); in ath_isr()
926 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_check() local
934 spin_lock_irqsave(&common->cc_lock, flags); in ath_hw_check()
936 spin_unlock_irqrestore(&common->cc_lock, flags); in ath_hw_check()
938 ath_dbg(common, RESET, "Possible baseband hang, busy=%d (try %d)\n", in ath_hw_check()
956 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_pll_rx_hang_check() local
962 ath_dbg(common, RESET, "Possible RX hang, resetting\n"); in ath_hw_pll_rx_hang_check()
997 struct ath_common *common = ath9k_hw_common(ah); in ath9k_start() local
1002 ath_dbg(common, CONFIG, in ath9k_start()
1031 ath_err(common, in ath9k_start()
1095 if (ah->caps.pcie_lcr_extsync_en && common->bus_ops->extn_synch_en) in ath9k_start()
1096 common->bus_ops->extn_synch_en(common); in ath9k_start()
1109 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_tx() local
1121 ath_dbg(common, PS, in ath9k_tx()
1144 ath_dbg(common, PS, in ath9k_tx()
1148 ath_dbg(common, PS, "Wake up to complete TX\n"); in ath9k_tx()
1162 ath_dbg(common, XMIT, "transmitting packet, skb: %p\n", skb); in ath9k_tx()
1165 ath_dbg(common, XMIT, "TX failed\n"); in ath9k_tx()
1178 struct ath_common *common = ath9k_hw_common(ah); in ath9k_stop() local
1186 ath_dbg(common, ANY, "Device not present\n"); in ath9k_stop()
1253 ath_dbg(common, CONFIG, "Driver halt\n"); in ath9k_stop()
1318 struct ath_common *common = ath9k_hw_common(ah); in ath9k_calculate_iter_data() local
1325 iter_data->hw_macaddr = common->macaddr; in ath9k_calculate_iter_data()
1342 struct ath_common *common = ath9k_hw_common(ah); in ath9k_calculate_summary_state() local
1348 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN); in ath9k_calculate_summary_state()
1349 ath_hw_setbssidmask(common); in ath9k_calculate_summary_state()
1388 if (!common->disable_ani) { in ath9k_calculate_summary_state()
1390 ath_start_ani(common); in ath9k_calculate_summary_state()
1395 del_timer_sync(&common->ani.timer); in ath9k_calculate_summary_state()
1429 struct ath_common *common = ath9k_hw_common(ah); in ath9k_add_interface() local
1443 ath_err(common, "Interface type %d not yet supported\n", in ath9k_add_interface()
1451 ath_err(common, "Not enough beacon buffers when adding" in ath9k_add_interface()
1462 ath_err(common, "Cannot create ADHOC interface when other" in ath9k_add_interface()
1468 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); in ath9k_add_interface()
1485 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_change_interface() local
1488 ath_dbg(common, CONFIG, "Change Interface\n"); in ath9k_change_interface()
1495 ath_err(common, "When using ADHOC, it must be the only" in ath9k_change_interface()
1504 ath_err(common, "No beacon slot available\n"); in ath9k_change_interface()
1529 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_remove_interface() local
1531 ath_dbg(common, CONFIG, "Detach Interface\n"); in ath9k_remove_interface()
1586 struct ath_common *common = ath9k_hw_common(ah); in ath9k_config() local
1622 ath_dbg(common, CONFIG, "Monitor mode is enabled\n"); in ath9k_config()
1625 ath_dbg(common, CONFIG, "Monitor mode is disabled\n"); in ath9k_config()
1644 ath_dbg(common, CONFIG, "Set channel: %d MHz type: %d\n", in ath9k_config()
1648 spin_lock_irqsave(&common->cc_lock, flags); in ath9k_config()
1650 spin_unlock_irqrestore(&common->cc_lock, flags); in ath9k_config()
1683 ath_err(common, "Unable to set channel\n"); in ath9k_config()
1698 ath_dbg(common, CONFIG, "Set power: %d\n", conf->power_level); in ath9k_config()
1747 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_sta_add() local
1757 an->ps_key = ath_key_config(common, vif, sta, &ps_key); in ath9k_sta_add()
1766 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_del_ps_key() local
1773 ath_key_delete(common, &ps_key); in ath9k_del_ps_key()
1816 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_conf_tx() local
1836 ath_dbg(common, CONFIG, in ath9k_conf_tx()
1843 ath_err(common, "TXQ Update failed\n"); in ath9k_conf_tx()
1862 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_set_key() local
1885 ath_dbg(common, CONFIG, "Set HW Key\n"); in ath9k_set_key()
1892 ret = ath_key_config(common, vif, sta, key); in ath9k_set_key()
1906 ath_key_delete(common, key); in ath9k_set_key()
1920 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_bss_iter() local
1934 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_bss_iter()
1935 common->curaid = bss_conf->aid; in ath9k_bss_iter()
1937 ath_dbg(common, CONFIG, "Bss Info ASSOC %d, bssid: %pM\n", in ath9k_bss_iter()
1938 bss_conf->aid, common->curbssid); in ath9k_bss_iter()
1950 if (!common->disable_ani) { in ath9k_bss_iter()
1952 ath_start_ani(common); in ath9k_bss_iter()
1960 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_config_bss() local
1969 ath_dbg(common, CONFIG, "Bss Info DISASSOC %d, bssid %pM\n", in ath9k_config_bss()
1970 common->curaid, common->curbssid); in ath9k_config_bss()
1973 memset(common->curbssid, 0, ETH_ALEN); in ath9k_config_bss()
1974 common->curaid = 0; in ath9k_config_bss()
1988 del_timer_sync(&common->ani.timer); in ath9k_config_bss()
2000 struct ath_common *common = ath9k_hw_common(ah); in ath9k_bss_info_changed() local
2011 ath_dbg(common, CONFIG, "BSSID: %pM aid: 0x%x\n", in ath9k_bss_info_changed()
2012 common->curbssid, common->curaid); in ath9k_bss_info_changed()
2017 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_bss_info_changed()
2018 common->curaid = bss_conf->aid; in ath9k_bss_info_changed()
2024 if (!common->disable_ani) { in ath9k_bss_info_changed()
2026 ath_start_ani(common); in ath9k_bss_info_changed()
2031 del_timer_sync(&common->ani.timer); in ath9k_bss_info_changed()
2089 ath_dbg(common, CONFIG, "BSS Changed PREAMBLE %d\n", in ath9k_bss_info_changed()
2098 ath_dbg(common, CONFIG, "BSS Changed CTS PROT %d\n", in ath9k_bss_info_changed()
2203 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_get_survey() local
2209 spin_lock_irqsave(&common->cc_lock, flags); in ath9k_get_survey()
2223 spin_unlock_irqrestore(&common->cc_lock, flags); in ath9k_get_survey()
2231 spin_unlock_irqrestore(&common->cc_lock, flags); in ath9k_get_survey()
2255 struct ath_common *common = ath9k_hw_common(ah); in ath9k_flush() local
2264 ath_dbg(common, ANY, "Device has been unplugged!\n"); in ath9k_flush()
2270 ath_dbg(common, ANY, "Device not present\n"); in ath9k_flush()