Lines Matching refs:ah
98 ath9k_hw_deinit(priv->ah); in ath9k_deinit_priv()
99 kfree(priv->ah); in ath9k_deinit_priv()
100 priv->ah = NULL; in ath9k_deinit_priv()
227 ath9k_hw_regulatory(priv->ah)); in ath9k_reg_notifier()
232 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regread() local
233 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regread()
254 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_multi_regread() local
255 struct ath_common *common = ath9k_hw_common(ah); in ath9k_multi_regread()
300 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_single() local
301 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_single()
321 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_buffer() local
322 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_buffer()
344 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite() local
345 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite()
356 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_enable_regwrite_buffer() local
357 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_regwrite_buffer()
365 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_flush() local
366 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_flush()
382 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw_buffer() local
383 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_buffer()
420 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw_flush() local
421 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_flush()
452 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_enable_rmw_buffer() local
453 struct ath_common *common = ath9k_hw_common(ah); in ath9k_enable_rmw_buffer()
465 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw_single() local
466 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw_single()
489 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw() local
490 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw()
496 val = REG_READ(ah, reg_offset); in ath9k_reg_rmw()
499 REG_WRITE(ah, reg_offset, val); in ath9k_reg_rmw()
519 struct ath_hw *ah = (struct ath_hw *) common->ah; in ath_usb_eeprom_read() local
521 (void)REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); in ath_usb_eeprom_read()
523 if (!ath9k_hw_wait(ah, in ath_usb_eeprom_read()
530 *data = MS(REG_READ(ah, AR_EEPROM_STATUS_DATA), in ath_usb_eeprom_read()
544 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_init_queues()
550 priv->beacon.beaconq = ath9k_hw_beaconq_setup(priv->ah); in ath9k_init_queues()
588 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_init_misc()
593 priv->ah->opmode = NL80211_IFTYPE_STATION; in ath9k_init_misc()
595 priv->spec_priv.ah = priv->ah; in ath9k_init_misc()
608 struct ath_hw *ah = NULL; in ath9k_init_priv() local
612 ah = kzalloc(sizeof(struct ath_hw), GFP_KERNEL); in ath9k_init_priv()
613 if (!ah) in ath9k_init_priv()
616 ah->dev = priv->dev; in ath9k_init_priv()
617 ah->hw = priv->hw; in ath9k_init_priv()
618 ah->hw_version.devid = devid; in ath9k_init_priv()
619 ah->hw_version.usbdev = drv_info; in ath9k_init_priv()
620 ah->ah_flags |= AH_USE_EEPROM; in ath9k_init_priv()
621 ah->reg_ops.read = ath9k_regread; in ath9k_init_priv()
622 ah->reg_ops.multi_read = ath9k_multi_regread; in ath9k_init_priv()
623 ah->reg_ops.write = ath9k_regwrite; in ath9k_init_priv()
624 ah->reg_ops.enable_write_buffer = ath9k_enable_regwrite_buffer; in ath9k_init_priv()
625 ah->reg_ops.write_flush = ath9k_regwrite_flush; in ath9k_init_priv()
626 ah->reg_ops.enable_rmw_buffer = ath9k_enable_rmw_buffer; in ath9k_init_priv()
627 ah->reg_ops.rmw_flush = ath9k_reg_rmw_flush; in ath9k_init_priv()
628 ah->reg_ops.rmw = ath9k_reg_rmw; in ath9k_init_priv()
629 priv->ah = ah; in ath9k_init_priv()
631 common = ath9k_hw_common(ah); in ath9k_init_priv()
632 common->ops = &ah->reg_ops; in ath9k_init_priv()
635 common->ah = ah; in ath9k_init_priv()
663 ret = ath9k_hw_init(ah); in ath9k_init_priv()
680 ath9k_cmn_init_crypto(ah); in ath9k_init_priv()
687 ath9k_hw_deinit(ah); in ath9k_init_priv()
690 kfree(ah); in ath9k_init_priv()
691 priv->ah = NULL; in ath9k_init_priv()
716 struct ath_hw *ah = priv->ah; in ath9k_set_hw_capab() local
717 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_set_hw_capab()
761 if (priv->ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ) in ath9k_set_hw_capab()
764 if (priv->ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) in ath9k_set_hw_capab()
768 ath9k_cmn_reload_chainmask(ah); in ath9k_set_hw_capab()
827 struct ath_hw *ah; in ath9k_init_device() local
837 ah = priv->ah; in ath9k_init_device()
838 common = ath9k_hw_common(ah); in ath9k_init_device()
863 ath9k_hw_disable(priv->ah); in ath9k_init_device()
883 error = ath9k_htc_init_debug(priv->ah); in ath9k_init_device()
901 ath9k_hw_name(priv->ah, hw_name, sizeof(hw_name)); in ath9k_init_device()
976 htc_handle->drv_priv->ah->ah_flags |= AH_UNPLUGGED; in ath9k_htc_disconnect_device()
1000 ret = ath9k_init_htc_services(priv, priv->ah->hw_version.devid, in ath9k_htc_resume()
1001 priv->ah->hw_version.usbdev); in ath9k_htc_resume()