Lines Matching refs:ahp
38 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetMacAddress() local
40 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); in ar5212GetMacAddress()
46 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetMacAddress() local
48 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); in ar5212SetMacAddress()
55 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetBssIdMask() local
57 OS_MEMCPY(mask, ahp->ah_bssidmask, IEEE80211_ADDR_LEN); in ar5212GetBssIdMask()
63 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetBssIdMask() local
66 OS_MEMCPY(ahp->ah_bssidmask, mask, IEEE80211_ADDR_LEN); in ar5212SetBssIdMask()
68 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); in ar5212SetBssIdMask()
69 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp->ah_bssidmask + 4)); in ar5212SetBssIdMask()
219 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212WriteAssocid() local
222 OS_MEMCPY(ahp->ah_bssid, bssid, IEEE80211_ADDR_LEN); in ar5212WriteAssocid()
223 ahp->ah_assocId = assocId; in ar5212WriteAssocid()
224 OS_REG_WRITE(ah, AR_BSS_ID0, LE_READ_4(ahp->ah_bssid)); in ar5212WriteAssocid()
225 OS_REG_WRITE(ah, AR_BSS_ID1, LE_READ_2(ahp->ah_bssid+4) | in ar5212WriteAssocid()
429 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetAntennaSwitch() local
432 if (!ahp->ah_phyPowerOn || chan == AH_NULL) { in ar5212SetAntennaSwitch()
434 ahp->ah_antControl = setting; in ar5212SetAntennaSwitch()
435 ahp->ah_diversity = (setting == HAL_ANT_VARIABLE); in ar5212SetAntennaSwitch()
450 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetSifsTime() local
455 ahp->ah_sifstime = (u_int) -1; /* restore default handling */ in ar5212SetSifsTime()
460 ahp->ah_sifstime = us; in ar5212SetSifsTime()
475 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetSlotTime() local
480 ahp->ah_slottime = (u_int) -1; /* restore default handling */ in ar5212SetSlotTime()
485 ahp->ah_slottime = us; in ar5212SetSlotTime()
500 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetAckTimeout() local
505 ahp->ah_acktimeout = (u_int) -1; /* restore default handling */ in ar5212SetAckTimeout()
511 ahp->ah_acktimeout = us; in ar5212SetAckTimeout()
532 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetAckCTSRate() local
536 ahp->ah_staId1Defaults &= ~AR_STA_ID1_ACKCTS_6MB; in ar5212SetAckCTSRate()
539 ahp->ah_staId1Defaults |= AR_STA_ID1_ACKCTS_6MB; in ar5212SetAckCTSRate()
547 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetCTSTimeout() local
552 ahp->ah_ctstimeout = (u_int) -1; /* restore default handling */ in ar5212SetCTSTimeout()
558 ahp->ah_ctstimeout = us; in ar5212SetCTSTimeout()
574 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetDecompMask() local
580 ahp->ah_decompMask[keyidx] = en; in ar5212SetDecompMask()
666 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212Use32KHzclock() local
668 (ahp->ah_enable32kHzClock == USE_32KHZ || in ar5212Use32KHzclock()
669 ahp->ah_enable32kHzClock == AUTO_32KHZ); in ar5212Use32KHzclock()
797 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetCapability() local
821 return (ahp->ah_staId1Defaults & in ar5212GetCapability()
831 return (ahp->ah_miscMode & in ar5212GetCapability()
845 return ahp->ah_diversity ? HAL_OK : HAL_ENXIO; in ar5212GetCapability()
860 return ahp->ah_tpcEnabled ? HAL_OK : HAL_ENXIO; in ar5212GetCapability()
879 return (ahp->ah_staId1Defaults & in ar5212GetCapability()
888 return (ahp->ah_miscMode & AR_MISC_MODE_TX_ADD_TSF) ? in ar5212GetCapability()
893 *result = MS(ahp->ah_macTPC, AR_TPC_ACK); in ar5212GetCapability()
896 *result = MS(ahp->ah_macTPC, AR_TPC_CTS); in ar5212GetCapability()
903 return (ahp->ah_procPhyErr & HAL_ANI_ENA) ? in ar5212GetCapability()
934 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetCapability() local
941 ahp->ah_staId1Defaults |= AR_STA_ID1_CRPT_MIC_ENABLE; in ar5212SetCapability()
943 ahp->ah_staId1Defaults &= ~AR_STA_ID1_CRPT_MIC_ENABLE; in ar5212SetCapability()
950 ahp->ah_miscMode &= ~AR_MISC_MODE_MIC_NEW_LOC_ENABLE; in ar5212SetCapability()
952 ahp->ah_miscMode |= AR_MISC_MODE_MIC_NEW_LOC_ENABLE; in ar5212SetCapability()
954 OS_REG_WRITE(ah, AR_MISC_MODE, OS_REG_READ(ah, AR_MISC_MODE) | ahp->ah_miscMode); in ar5212SetCapability()
961 if (ahp->ah_phyPowerOn) { in ar5212SetCapability()
971 ahp->ah_diversity = (setting != 0); in ar5212SetCapability()
975 if (! ahp->ah_phyPowerOn) in ar5212SetCapability()
995 ahp->ah_tpcEnabled = (setting != 0); in ar5212SetCapability()
999 ahp->ah_staId1Defaults |= AR_STA_ID1_MCAST_KSRCH; in ar5212SetCapability()
1001 ahp->ah_staId1Defaults &= ~AR_STA_ID1_MCAST_KSRCH; in ar5212SetCapability()
1005 setting += ahp->ah_txPowerIndexOffset; in ar5212SetCapability()
1009 ahp->ah_macTPC &= AR_TPC_ACK; in ar5212SetCapability()
1010 ahp->ah_macTPC |= MS(setting, AR_TPC_ACK); in ar5212SetCapability()
1012 ahp->ah_macTPC &= AR_TPC_CTS; in ar5212SetCapability()
1013 ahp->ah_macTPC |= MS(setting, AR_TPC_CTS); in ar5212SetCapability()
1015 OS_REG_WRITE(ah, AR_TPC, ahp->ah_macTPC); in ar5212SetCapability()
1036 ahp->ah_miscMode |= AR_MISC_MODE_TX_ADD_TSF; in ar5212SetCapability()
1038 ahp->ah_miscMode &= ~AR_MISC_MODE_TX_ADD_TSF; in ar5212SetCapability()
1054 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetDiagState() local
1057 (void) ahp; in ar5212GetDiagState()
1069 *result = __DECONST(void *, ahp->ah_gainValues.currStep); in ar5212GetDiagState()
1074 *result = ahp->ah_pcdacTable; in ar5212GetDiagState()
1075 *resultsize = ahp->ah_pcdacTableSize; in ar5212GetDiagState()
1078 *result = &ahp->ah_ratesArray[0]; in ar5212GetDiagState()
1079 *resultsize = sizeof(ahp->ah_ratesArray); in ar5212GetDiagState()
1087 OS_MEMZERO(&ahp->ext_ani_stats, sizeof(ahp->ext_ani_stats)); in ar5212GetDiagState()
1093 OS_MEMCPY(&ahp->ext_ani_stats, astats, sizeof(HAL_ANI_STATS)); in ar5212GetDiagState()
1094 *result = &ahp->ext_ani_stats; in ar5212GetDiagState()
1095 *resultsize = sizeof(ahp->ext_ani_stats); in ar5212GetDiagState()
1416 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetMibCycleCounts() local
1425 if (ahp->ah_cycleCount == 0 || ahp->ah_cycleCount > cc) { in ar5212GetMibCycleCounts()
1435 hsample->cycle_count = cc - ahp->ah_cycleCount; in ar5212GetMibCycleCounts()
1436 hsample->chan_busy = rc - ahp->ah_ctlBusy; in ar5212GetMibCycleCounts()
1438 hsample->rx_busy = rf - ahp->ah_rxBusy; in ar5212GetMibCycleCounts()
1439 hsample->tx_busy = tf - ahp->ah_txBusy; in ar5212GetMibCycleCounts()
1446 ahp->ah_cycleCount = cc; in ar5212GetMibCycleCounts()
1447 ahp->ah_rxBusy = rf; in ar5212GetMibCycleCounts()
1448 ahp->ah_ctlBusy = rc; in ar5212GetMibCycleCounts()
1449 ahp->ah_txBusy = tf; in ar5212GetMibCycleCounts()