Lines Matching refs:common
60 static void ath9k_htc_op_ps_wakeup(struct ath_common *common) in ath9k_htc_op_ps_wakeup() argument
62 ath9k_htc_ps_wakeup((struct ath9k_htc_priv *) common->priv); in ath9k_htc_op_ps_wakeup()
65 static void ath9k_htc_op_ps_restore(struct ath_common *common) in ath9k_htc_op_ps_restore() argument
67 ath9k_htc_ps_restore((struct ath9k_htc_priv *) common->priv); in ath9k_htc_op_ps_restore()
233 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regread() local
234 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regread()
243 ath_dbg(common, WMI, "REGISTER READ FAILED: (0x%04x, %d)\n", in ath9k_regread()
255 struct ath_common *common = ath9k_hw_common(ah); in ath9k_multi_regread() local
256 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_multi_regread()
270 ath_dbg(common, WMI, in ath9k_multi_regread()
279 static void ath9k_regwrite_multi(struct ath_common *common) in ath9k_regwrite_multi() argument
281 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regwrite_multi()
291 ath_dbg(common, WMI, in ath9k_regwrite_multi()
301 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_single() local
302 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regwrite_single()
314 ath_dbg(common, WMI, "REGISTER WRITE FAILED:(0x%04x, %d)\n", in ath9k_regwrite_single()
322 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_buffer() local
323 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regwrite_buffer()
337 ath9k_regwrite_multi(common); in ath9k_regwrite_buffer()
345 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite() local
346 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regwrite()
357 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_regwrite_buffer() local
358 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_enable_regwrite_buffer()
366 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_flush() local
367 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regwrite_flush()
374 ath9k_regwrite_multi(common); in ath9k_regwrite_flush()
383 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_buffer() local
384 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_reg_rmw_buffer()
408 ath_dbg(common, WMI, in ath9k_reg_rmw_buffer()
421 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_flush() local
422 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_reg_rmw_flush()
440 ath_dbg(common, WMI, in ath9k_reg_rmw_flush()
453 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_rmw_buffer() local
454 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_enable_rmw_buffer()
466 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_single() local
467 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_reg_rmw_single()
481 ath_dbg(common, WMI, "REGISTER RMW FAILED:(0x%04x, %d)\n", in ath9k_reg_rmw_single()
490 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw() local
491 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_reg_rmw()
512 static void ath_usb_read_cachesize(struct ath_common *common, int *csz) in ath_usb_read_cachesize() argument
517 static bool ath_usb_eeprom_read(struct ath_common *common, u32 off, u16 *data) in ath_usb_eeprom_read() argument
519 struct ath_hw *ah = (struct ath_hw *) common->ah; in ath_usb_eeprom_read()
544 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_init_queues() local
552 ath_err(common, "Unable to setup BEACON xmit queue\n"); in ath9k_init_queues()
558 ath_err(common, "Unable to setup CAB xmit queue\n"); in ath9k_init_queues()
563 ath_err(common, "Unable to setup xmit queue for BE traffic\n"); in ath9k_init_queues()
568 ath_err(common, "Unable to setup xmit queue for BK traffic\n"); in ath9k_init_queues()
572 ath_err(common, "Unable to setup xmit queue for VI traffic\n"); in ath9k_init_queues()
576 ath_err(common, "Unable to setup xmit queue for VO traffic\n"); in ath9k_init_queues()
588 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_init_misc() local
590 memcpy(common->bssidmask, ath_bcast_mac, ETH_ALEN); in ath9k_init_misc()
592 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_init_misc()
609 struct ath_common *common; in ath9k_init_priv() local
631 common = ath9k_hw_common(ah); in ath9k_init_priv()
632 common->ops = &ah->reg_ops; in ath9k_init_priv()
633 common->ps_ops = &ath9k_htc_ps_ops; in ath9k_init_priv()
634 common->bus_ops = &ath9k_usb_bus_ops; in ath9k_init_priv()
635 common->ah = ah; in ath9k_init_priv()
636 common->hw = priv->hw; in ath9k_init_priv()
637 common->priv = priv; in ath9k_init_priv()
638 common->debug_mask = ath9k_debug; in ath9k_init_priv()
639 common->btcoex_enabled = ath9k_htc_btcoex_enable == 1; in ath9k_init_priv()
640 set_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_init_priv()
660 ath_read_cachesize(common, &csz); in ath9k_init_priv()
661 common->cachelsz = csz << 2; /* convert to bytes */ in ath9k_init_priv()
665 ath_err(common, in ath9k_init_priv()
679 ath9k_cmn_init_channels_rates(common); in ath9k_init_priv()
717 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_set_hw_capab() local
763 &common->sbands[IEEE80211_BAND_2GHZ]; in ath9k_set_hw_capab()
766 &common->sbands[IEEE80211_BAND_5GHZ]; in ath9k_set_hw_capab()
776 SET_IEEE80211_PERM_ADDR(hw, common->macaddr); in ath9k_set_hw_capab()
826 struct ath_common *common; in ath9k_init_device() local
838 common = ath9k_hw_common(ah); in ath9k_init_device()
846 error = ath_regd_init(&common->regulatory, priv->hw->wiphy, in ath9k_init_device()
851 reg = &common->regulatory; in ath9k_init_device()
885 ath_err(common, "Unable to create debugfs files\n"); in ath9k_init_device()
889 ath_dbg(common, CONFIG, in ath9k_init_device()