Lines Matching refs:ah

102 	ath9k_hw_deinit(priv->ah);  in ath9k_deinit_priv()
103 kfree(priv->ah); in ath9k_deinit_priv()
104 priv->ah = NULL; in ath9k_deinit_priv()
231 ath9k_hw_regulatory(priv->ah)); in ath9k_reg_notifier()
236 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regread() local
237 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regread()
258 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_multi_regread() local
259 struct ath_common *common = ath9k_hw_common(ah); in ath9k_multi_regread()
304 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_single() local
305 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_single()
325 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_buffer() local
326 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_buffer()
348 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite() local
349 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite()
360 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_enable_regwrite_buffer() local
361 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_regwrite_buffer()
369 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_flush() local
370 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_flush()
386 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw_buffer() local
387 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_buffer()
424 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw_flush() local
425 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_flush()
456 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_enable_rmw_buffer() local
457 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_rmw_buffer()
469 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw_single() local
470 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_single()
493 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw() local
494 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw()
500 val = REG_READ(ah, reg_offset); in ath9k_reg_rmw()
503 REG_WRITE(ah, reg_offset, val); in ath9k_reg_rmw()
523 struct ath_hw *ah = (struct ath_hw *) common->ah; in ath_usb_eeprom_read() local
525 (void)REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); in ath_usb_eeprom_read()
527 if (!ath9k_hw_wait(ah, in ath_usb_eeprom_read()
534 *data = MS(REG_READ(ah, AR_EEPROM_STATUS_DATA), in ath_usb_eeprom_read()
548 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_init_queues()
554 priv->beacon.beaconq = ath9k_hw_beaconq_setup(priv->ah); in ath9k_init_queues()
592 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_init_misc()
597 priv->ah->opmode = NL80211_IFTYPE_STATION; in ath9k_init_misc()
599 priv->spec_priv.ah = priv->ah; in ath9k_init_misc()
612 struct ath_hw *ah = NULL; in ath9k_init_priv() local
616 ah = kzalloc(sizeof(struct ath_hw), GFP_KERNEL); in ath9k_init_priv()
617 if (!ah) in ath9k_init_priv()
620 ah->dev = priv->dev; in ath9k_init_priv()
621 ah->hw = priv->hw; in ath9k_init_priv()
622 ah->hw_version.devid = devid; in ath9k_init_priv()
623 ah->hw_version.usbdev = drv_info; in ath9k_init_priv()
624 ah->ah_flags |= AH_USE_EEPROM; in ath9k_init_priv()
625 ah->reg_ops.read = ath9k_regread; in ath9k_init_priv()
626 ah->reg_ops.multi_read = ath9k_multi_regread; in ath9k_init_priv()
627 ah->reg_ops.write = ath9k_regwrite; in ath9k_init_priv()
628 ah->reg_ops.enable_write_buffer = ath9k_enable_regwrite_buffer; in ath9k_init_priv()
629 ah->reg_ops.write_flush = ath9k_regwrite_flush; in ath9k_init_priv()
630 ah->reg_ops.enable_rmw_buffer = ath9k_enable_rmw_buffer; in ath9k_init_priv()
631 ah->reg_ops.rmw_flush = ath9k_reg_rmw_flush; in ath9k_init_priv()
632 ah->reg_ops.rmw = ath9k_reg_rmw; in ath9k_init_priv()
633 priv->ah = ah; in ath9k_init_priv()
635 common = ath9k_hw_common(ah); in ath9k_init_priv()
636 common->ops = &ah->reg_ops; in ath9k_init_priv()
639 common->ah = ah; in ath9k_init_priv()
667 ret = ath9k_hw_init(ah); in ath9k_init_priv()
684 ath9k_cmn_init_crypto(ah); in ath9k_init_priv()
691 ath9k_hw_deinit(ah); in ath9k_init_priv()
694 kfree(ah); in ath9k_init_priv()
695 priv->ah = NULL; in ath9k_init_priv()
720 struct ath_hw *ah = priv->ah; in ath9k_set_hw_capab() local
721 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_set_hw_capab()
767 if (priv->ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ) in ath9k_set_hw_capab()
770 if (priv->ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) in ath9k_set_hw_capab()
774 ath9k_cmn_reload_chainmask(ah); in ath9k_set_hw_capab()
833 struct ath_hw *ah; in ath9k_init_device() local
843 ah = priv->ah; in ath9k_init_device()
844 common = ath9k_hw_common(ah); in ath9k_init_device()
869 ath9k_hw_disable(priv->ah); in ath9k_init_device()
889 error = ath9k_htc_init_debug(priv->ah); in ath9k_init_device()
907 ath9k_hw_name(priv->ah, hw_name, sizeof(hw_name)); in ath9k_init_device()
982 htc_handle->drv_priv->ah->ah_flags |= AH_UNPLUGGED; in ath9k_htc_disconnect_device()
1006 ret = ath9k_init_htc_services(priv, priv->ah->hw_version.devid, in ath9k_htc_resume()
1007 priv->ah->hw_version.usbdev); in ath9k_htc_resume()