Lines Matching refs:ahp

40 	struct ath_hal_5212 *ahp = AH5212(ah);  in ar5212GetMacAddress()  local
42 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); in ar5212GetMacAddress()
48 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetMacAddress() local
50 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); in ar5212SetMacAddress()
57 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetBssIdMask() local
59 OS_MEMCPY(mask, ahp->ah_bssidmask, IEEE80211_ADDR_LEN); in ar5212GetBssIdMask()
65 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetBssIdMask() local
68 OS_MEMCPY(ahp->ah_bssidmask, mask, IEEE80211_ADDR_LEN); in ar5212SetBssIdMask()
70 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); in ar5212SetBssIdMask()
71 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp->ah_bssidmask + 4)); in ar5212SetBssIdMask()
221 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212WriteAssocid() local
224 OS_MEMCPY(ahp->ah_bssid, bssid, IEEE80211_ADDR_LEN); in ar5212WriteAssocid()
225 ahp->ah_assocId = assocId; in ar5212WriteAssocid()
226 OS_REG_WRITE(ah, AR_BSS_ID0, LE_READ_4(ahp->ah_bssid)); in ar5212WriteAssocid()
227 OS_REG_WRITE(ah, AR_BSS_ID1, LE_READ_2(ahp->ah_bssid+4) | in ar5212WriteAssocid()
431 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetAntennaSwitch() local
434 if (!ahp->ah_phyPowerOn || chan == AH_NULL) { in ar5212SetAntennaSwitch()
436 ahp->ah_antControl = setting; in ar5212SetAntennaSwitch()
437 ahp->ah_diversity = (setting == HAL_ANT_VARIABLE); in ar5212SetAntennaSwitch()
452 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetSifsTime() local
457 ahp->ah_sifstime = (u_int) -1; /* restore default handling */ in ar5212SetSifsTime()
462 ahp->ah_sifstime = us; in ar5212SetSifsTime()
477 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetSlotTime() local
482 ahp->ah_slottime = (u_int) -1; /* restore default handling */ in ar5212SetSlotTime()
487 ahp->ah_slottime = us; in ar5212SetSlotTime()
502 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetAckTimeout() local
507 ahp->ah_acktimeout = (u_int) -1; /* restore default handling */ in ar5212SetAckTimeout()
513 ahp->ah_acktimeout = us; in ar5212SetAckTimeout()
534 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetAckCTSRate() local
538 ahp->ah_staId1Defaults &= ~AR_STA_ID1_ACKCTS_6MB; in ar5212SetAckCTSRate()
541 ahp->ah_staId1Defaults |= AR_STA_ID1_ACKCTS_6MB; in ar5212SetAckCTSRate()
549 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetCTSTimeout() local
554 ahp->ah_ctstimeout = (u_int) -1; /* restore default handling */ in ar5212SetCTSTimeout()
560 ahp->ah_ctstimeout = us; in ar5212SetCTSTimeout()
576 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetDecompMask() local
582 ahp->ah_decompMask[keyidx] = en; in ar5212SetDecompMask()
668 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212Use32KHzclock() local
670 (ahp->ah_enable32kHzClock == USE_32KHZ || in ar5212Use32KHzclock()
671 ahp->ah_enable32kHzClock == AUTO_32KHZ); in ar5212Use32KHzclock()
799 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetCapability() local
823 return (ahp->ah_staId1Defaults & in ar5212GetCapability()
833 return (ahp->ah_miscMode & in ar5212GetCapability()
847 return ahp->ah_diversity ? HAL_OK : HAL_ENXIO; in ar5212GetCapability()
862 return ahp->ah_tpcEnabled ? HAL_OK : HAL_ENXIO; in ar5212GetCapability()
881 return (ahp->ah_staId1Defaults & in ar5212GetCapability()
890 return (ahp->ah_miscMode & AR_MISC_MODE_TX_ADD_TSF) ? in ar5212GetCapability()
895 *result = MS(ahp->ah_macTPC, AR_TPC_ACK); in ar5212GetCapability()
898 *result = MS(ahp->ah_macTPC, AR_TPC_CTS); in ar5212GetCapability()
905 return (ahp->ah_procPhyErr & HAL_ANI_ENA) ? in ar5212GetCapability()
936 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetCapability() local
943 ahp->ah_staId1Defaults |= AR_STA_ID1_CRPT_MIC_ENABLE; in ar5212SetCapability()
945 ahp->ah_staId1Defaults &= ~AR_STA_ID1_CRPT_MIC_ENABLE; in ar5212SetCapability()
952 ahp->ah_miscMode &= ~AR_MISC_MODE_MIC_NEW_LOC_ENABLE; in ar5212SetCapability()
954 ahp->ah_miscMode |= AR_MISC_MODE_MIC_NEW_LOC_ENABLE; in ar5212SetCapability()
956 OS_REG_WRITE(ah, AR_MISC_MODE, OS_REG_READ(ah, AR_MISC_MODE) | ahp->ah_miscMode); in ar5212SetCapability()
963 if (ahp->ah_phyPowerOn) { in ar5212SetCapability()
973 ahp->ah_diversity = (setting != 0); in ar5212SetCapability()
977 if (! ahp->ah_phyPowerOn) in ar5212SetCapability()
997 ahp->ah_tpcEnabled = (setting != 0); in ar5212SetCapability()
1001 ahp->ah_staId1Defaults |= AR_STA_ID1_MCAST_KSRCH; in ar5212SetCapability()
1003 ahp->ah_staId1Defaults &= ~AR_STA_ID1_MCAST_KSRCH; in ar5212SetCapability()
1007 setting += ahp->ah_txPowerIndexOffset; in ar5212SetCapability()
1011 ahp->ah_macTPC &= AR_TPC_ACK; in ar5212SetCapability()
1012 ahp->ah_macTPC |= MS(setting, AR_TPC_ACK); in ar5212SetCapability()
1014 ahp->ah_macTPC &= AR_TPC_CTS; in ar5212SetCapability()
1015 ahp->ah_macTPC |= MS(setting, AR_TPC_CTS); in ar5212SetCapability()
1017 OS_REG_WRITE(ah, AR_TPC, ahp->ah_macTPC); in ar5212SetCapability()
1038 ahp->ah_miscMode |= AR_MISC_MODE_TX_ADD_TSF; in ar5212SetCapability()
1040 ahp->ah_miscMode &= ~AR_MISC_MODE_TX_ADD_TSF; in ar5212SetCapability()
1056 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetDiagState() local
1059 (void) ahp; in ar5212GetDiagState()
1071 *result = __DECONST(void *, ahp->ah_gainValues.currStep); in ar5212GetDiagState()
1076 *result = ahp->ah_pcdacTable; in ar5212GetDiagState()
1077 *resultsize = ahp->ah_pcdacTableSize; in ar5212GetDiagState()
1080 *result = &ahp->ah_ratesArray[0]; in ar5212GetDiagState()
1081 *resultsize = sizeof(ahp->ah_ratesArray); in ar5212GetDiagState()
1089 OS_MEMZERO(&ahp->ext_ani_stats, sizeof(ahp->ext_ani_stats)); in ar5212GetDiagState()
1095 OS_MEMCPY(&ahp->ext_ani_stats, astats, sizeof(HAL_ANI_STATS)); in ar5212GetDiagState()
1096 *result = &ahp->ext_ani_stats; in ar5212GetDiagState()
1097 *resultsize = sizeof(ahp->ext_ani_stats); in ar5212GetDiagState()
1418 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetMibCycleCounts() local
1427 if (ahp->ah_cycleCount == 0 || ahp->ah_cycleCount > cc) { in ar5212GetMibCycleCounts()
1437 hsample->cycle_count = cc - ahp->ah_cycleCount; in ar5212GetMibCycleCounts()
1438 hsample->chan_busy = rc - ahp->ah_ctlBusy; in ar5212GetMibCycleCounts()
1440 hsample->rx_busy = rf - ahp->ah_rxBusy; in ar5212GetMibCycleCounts()
1441 hsample->tx_busy = tf - ahp->ah_txBusy; in ar5212GetMibCycleCounts()
1448 ahp->ah_cycleCount = cc; in ar5212GetMibCycleCounts()
1449 ahp->ah_rxBusy = rf; in ar5212GetMibCycleCounts()
1450 ahp->ah_ctlBusy = rc; in ar5212GetMibCycleCounts()
1451 ahp->ah_txBusy = tf; in ar5212GetMibCycleCounts()