/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_keycache.c | 41 struct ath_hal_5416 *ahp = AH5416(ah); local 44 ahp->ah_keytype[entry] = keyType[HAL_CIPHER_CLR]; 59 struct ath_hal_5416 *ahp = AH5416(ah); local 62 ahp->ah_keytype[entry] = keyType[k->kv_type];
|
H A D | ar5416_ani.c | 40 #define BEACON_RSSI(ahp) \ 41 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \ 73 struct ath_hal_5212 *ahp = AH5212(ah); local 87 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save+clear counters*/ 94 struct ath_hal_5212 *ahp = AH5212(ah); local 98 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save stats */ 134 struct ath_hal_5212 *ahp = AH5212(ah); local 137 OS_MEMCPY(&ahp->ah_aniParams24, params24, sizeof(*params24)); 138 setPhyErrBase(ah, &ahp->ah_aniParams24); 141 OS_MEMCPY(&ahp 176 struct ath_hal_5212 *ahp = AH5212(ah); local 369 struct ath_hal_5212 *ahp = AH5212(ah); local 456 struct ath_hal_5212 *ahp = AH5212(ah); local 503 struct ath_hal_5212 *ahp = AH5212(ah); local 536 struct ath_hal_5212 *ahp = AH5212(ah); local 634 struct ath_hal_5212 *ahp = AH5212(ah); local 705 struct ath_hal_5212 *ahp = AH5212(ah); local 778 struct ath_hal_5212 *ahp = AH5212(ah); local 814 struct ath_hal_5212 *ahp = AH5212(ah); local 852 struct ath_hal_5212 *ahp = AH5212(ah); local 863 struct ath_hal_5212 *ahp = AH5212(ah); local [all...] |
H A D | ar5416_interrupts.c | 93 struct ath_hal_5212 *ahp = AH5212(ah); local 127 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXOK); 128 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXDESC); 130 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXERR); 131 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXEOL); 190 struct ath_hal_5212 *ahp = AH5212(ah); local 191 uint32_t omask = ahp->ah_maskReg; 225 if (ahp->ah_txErrInterruptMask) 227 if (ahp->ah_txEolInterruptMask) 232 if (ahp [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_interrupts.c | 46 struct ath_hal_5210 *ahp = AH5210(ah); local 62 *masked = (isr & (HAL_INT_COMMON - HAL_INT_BNR)) & ahp->ah_maskReg; 91 struct ath_hal_5210 *ahp = AH5210(ah); local 92 uint32_t omask = ahp->ah_maskReg; 112 if (ahp->ah_txOkInterruptMask) 114 if (ahp->ah_txErrInterruptMask) 116 if (ahp->ah_txDescInterruptMask) 118 if (ahp->ah_txEolInterruptMask) 125 ahp->ah_maskReg = ints;
|
H A D | ar5210_xmit.c | 38 struct ath_hal_5210 *ahp = AH5210(ah); local 45 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); 54 struct ath_hal_5210 *ahp = AH5210(ah); local 61 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); 71 struct ath_hal_5210 *ahp = AH5210(ah); local 93 qi = &ahp->ah_txq[q]; 125 struct ath_hal_5210 *ahp = AH5210(ah); local 133 qi = &ahp->ah_txq[q]; 143 ahp->ah_txOkInterruptMask &= ~(1 << q); 144 ahp 156 struct ath_hal_5210 *ahp = AH5210(ah); local 259 struct ath_hal_5210 *ahp = AH5210(ah); local 284 struct ath_hal_5210 *ahp = AH5210(ah); local 369 struct ath_hal_5210 *ahp = AH5210(ah); local 402 struct ath_hal_5210 *ahp = AH5210(ah); local 430 struct ath_hal_5210 *ahp = AH5210(ah); local [all...] |
H A D | ar5210_misc.c | 36 struct ath_hal_5210 *ahp = AH5210(ah); local 38 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); 44 struct ath_hal_5210 *ahp = AH5210(ah); local 46 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); 314 struct ath_hal_5210 *ahp = AH5210(ah); local 317 OS_MEMCPY(ahp->ah_bssid, bssid, IEEE80211_ADDR_LEN); 318 OS_REG_WRITE(ah, AR_BSS_ID0, LE_READ_4(ahp->ah_bssid)); 319 OS_REG_WRITE(ah, AR_BSS_ID1, LE_READ_2(ahp->ah_bssid+4) | 421 struct ath_hal_5210 *ahp = AH5210(ah); local 426 ahp 447 struct ath_hal_5210 *ahp = AH5210(ah); local 472 struct ath_hal_5210 *ahp = AH5210(ah); local 504 struct ath_hal_5210 *ahp = AH5210(ah); local 519 struct ath_hal_5210 *ahp = AH5210(ah); local [all...] |
H A D | ar5210_attach.c | 178 struct ath_hal_5210 *ahp; local 190 ahp = ath_hal_malloc(sizeof (struct ath_hal_5210)); 191 if (ahp == AH_NULL) { 197 ah = &ahp->ah_priv.h; 199 OS_MEMCPY(&ahp->ah_priv, &ar5210hal, sizeof(struct ath_hal_private)); 211 ahp->ah_powerMode = HAL_PM_UNDEFINED; 212 ahp->ah_staId1Defaults = 0; 213 ahp->ah_rssiThr = INIT_RSSI_THR; 214 ahp->ah_sifstime = (u_int) -1; 215 ahp [all...] |
H A D | ar5210_power.c | 96 struct ath_hal_5210 *ahp = AH5210(ah); local 108 modes[ahp->ah_powerMode], modes[mode], 125 ahp->ah_powerMode = mode;
|
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5312_attach.c | 67 struct ath_hal_5212 *ahp = AH_NULL; local 78 ahp = ath_hal_malloc(sizeof (struct ath_hal_5212)); 79 if (ahp == AH_NULL) { 85 ar5212InitState(ahp, devid, sc, st, sh, status); 86 ah = &ahp->ah_priv.h; 97 ahp->ah_priv.ah_eepromRead = ar5312EepromRead; 99 ahp->ah_priv.ah_eepromWrite = ar5312EepromWrite; 103 ahp->ah_priv.ah_gpioCfgOutput = ar5315GpioCfgOutput; 104 ahp->ah_priv.ah_gpioCfgInput = ar5315GpioCfgInput; 105 ahp [all...] |
H A D | ar5312_power.c | 74 struct ath_hal_5212 *ahp = AH5212(ah); local 86 modes[ahp->ah_powerMode], modes[mode], 103 ahp->ah_powerMode = mode;
|
H A D | ar5312_reset.c | 95 struct ath_hal_5212 *ahp = AH5212(ah); local 134 HALASSERT(ahp->ah_eeversion >= AR_EEPROM_VER3); 227 regWrites = ath_hal_ini_write(ah, &ahp->ah_ini_modes, modesIndex, 0); 228 regWrites = write_common(ah, &ahp->ah_ini_common, bChannelChange, 230 ahp->ah_rfHal->writeRegs(ah, modesIndex, freqIndex, regWrites); 318 if (!ahp->ah_rfHal->setRfRegs(ah, chan, modesIndex, rfXpdGain)) { 345 OS_REG_WRITE(ah, AR_STA_ID0, LE_READ_4(ahp->ah_macaddr)); 346 OS_REG_WRITE(ah, AR_STA_ID1, LE_READ_2(ahp->ah_macaddr + 4) 349 | ahp->ah_staId1Defaults 354 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_ani.c | 36 #define BEACON_RSSI(ahp) \ 37 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \ 69 struct ath_hal_5212 *ahp = AH5212(ah); local 83 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save+clear counters*/ 90 struct ath_hal_5212 *ahp = AH5212(ah); local 94 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save stats */ 116 struct ath_hal_5212 *ahp = AH5212(ah); local 120 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); 121 return &ahp->ah_stats; 153 struct ath_hal_5212 *ahp local 184 struct ath_hal_5212 *ahp = AH5212(ah); local 209 struct ath_hal_5212 *ahp = AH5212(ah); local 223 struct ath_hal_5212 *ahp = AH5212(ah); local 391 struct ath_hal_5212 *ahp = AH5212(ah); local 501 struct ath_hal_5212 *ahp = AH5212(ah); local 560 struct ath_hal_5212 *ahp = AH5212(ah); local 589 struct ath_hal_5212 *ahp = AH5212(ah); local 685 struct ath_hal_5212 *ahp = AH5212(ah); local 754 struct ath_hal_5212 *ahp = AH5212(ah); local 782 struct ath_hal_5212 *ahp = AH5212(ah); local 867 struct ath_hal_5212 *ahp = AH5212(ah); local 903 struct ath_hal_5212 *ahp = AH5212(ah); local 943 struct ath_hal_5212 *ahp = AH5212(ah); local 954 struct ath_hal_5212 *ahp = AH5212(ah); local [all...] |
H A D | ar5212_interrupts.c | 59 struct ath_hal_5212 *ahp = AH5212(ah); local 91 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXOK); 92 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXDESC); 94 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXERR); 95 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXEOL); 140 struct ath_hal_5212 *ahp = AH5212(ah); local 141 uint32_t omask = ahp->ah_maskReg; 156 if (ahp->ah_txOkInterruptMask) 158 if (ahp->ah_txErrInterruptMask) 160 if (ahp [all...] |
H A D | ar5212_misc.c | 38 struct ath_hal_5212 *ahp = AH5212(ah); local 40 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); 46 struct ath_hal_5212 *ahp = AH5212(ah); local 48 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); 55 struct ath_hal_5212 *ahp = AH5212(ah); local 57 OS_MEMCPY(mask, ahp->ah_bssidmask, IEEE80211_ADDR_LEN); 63 struct ath_hal_5212 *ahp = AH5212(ah); local 66 OS_MEMCPY(ahp->ah_bssidmask, mask, IEEE80211_ADDR_LEN); 68 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); 69 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp 219 struct ath_hal_5212 *ahp = AH5212(ah); local 428 struct ath_hal_5212 *ahp = AH5212(ah); local 449 struct ath_hal_5212 *ahp = AH5212(ah); local 474 struct ath_hal_5212 *ahp = AH5212(ah); local 499 struct ath_hal_5212 *ahp = AH5212(ah); local 531 struct ath_hal_5212 *ahp = AH5212(ah); local 546 struct ath_hal_5212 *ahp = AH5212(ah); local 573 struct ath_hal_5212 *ahp = AH5212(ah); local 665 struct ath_hal_5212 *ahp = AH5212(ah); local 796 struct ath_hal_5212 *ahp = AH5212(ah); local 929 struct ath_hal_5212 *ahp = AH5212(ah); local 1031 struct ath_hal_5212 *ahp = AH5212(ah); local [all...] |
H A D | ar5212_rfgain.c | 66 struct ath_hal_5212 *ahp = AH5212(ah); local 67 GAIN_VALUES *gv = &ahp->ah_gainValues; 162 struct ath_hal_5212 *ahp = AH5212(ah); local 166 probePowerIndex = ahp->ah_ofdmTxPower + ahp->ah_txPowerIndexOffset; 171 ahp->ah_rfgainState = HAL_RFGAIN_READ_REQUESTED; 245 struct ath_hal_5212 *ahp = AH5212(ah); local 252 const GAIN_VALUES *gv = &ahp->ah_gainValues; 281 struct ath_hal_5212 *ahp = AH5212(ah); local 282 GAIN_VALUES *gv = &ahp [all...] |
H A D | ar5212_xmit.c | 47 struct ath_hal_5212 *ahp = AH5212(ah); local 51 if (ahp->ah_txTrigLev >= ahp->ah_maxTxTrigLev) 57 omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL); 63 if (curLevel < ahp->ah_maxTxTrigLev) 72 ahp->ah_txTrigLev = newLevel; 87 struct ath_hal_5212 *ahp = AH5212(ah); local 95 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); 104 struct ath_hal_5212 *ahp = AH5212(ah); local 113 return ath_hal_getTxQProps(ah, qInfo, &ahp 123 struct ath_hal_5212 *ahp = AH5212(ah); local 206 struct ath_hal_5212 *ahp = AH5212(ah); local 232 struct ath_hal_5212 *ahp = AH5212(ah); local 269 struct ath_hal_5212 *ahp = AH5212(ah); local 680 struct ath_hal_5212 *ahp = AH5212(ah); local 917 struct ath_hal_5212 *ahp = AH5212(ah); local [all...] |
H A D | ar5212_reset.c | 113 struct ath_hal_5212 *ahp = AH5212(ah); local 283 regWrites = ath_hal_ini_write(ah, &ahp->ah_ini_modes, modesIndex, 0); 284 regWrites = write_common(ah, &ahp->ah_ini_common, bChannelChange, 294 ahp->ah_rfHal->writeRegs(ah, modesIndex, freqIndex, regWrites); 382 if (!ahp->ah_rfHal->setRfRegs(ah, chan, modesIndex, rfXpdGain)) { 409 OS_REG_WRITE(ah, AR_STA_ID0, LE_READ_4(ahp->ah_macaddr)); 410 OS_REG_WRITE(ah, AR_STA_ID1, LE_READ_2(ahp->ah_macaddr + 4) 413 | ahp->ah_staId1Defaults 418 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); 419 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp 697 struct ath_hal_5212 *ahp = AH5212(ah); local 960 struct ath_hal_5212 *ahp = AH5212(ah); local 1194 struct ath_hal_5212 *ahp = AH5212(ah); local 1244 struct ath_hal_5212 *ahp = AH5212(ah); local 1334 struct ath_hal_5212 *ahp = AH5212(ah); local 1366 struct ath_hal_5212 *ahp = AH5212(ah); local 1470 struct ath_hal_5212 *ahp = AH5212(ah); local 1864 struct ath_hal_5212 *ahp = AH5212(ah); local 1989 struct ath_hal_5212 *ahp = AH5212(ah); local 2205 struct ath_hal_5212 *ahp = AH5212(ah); local 2271 struct ath_hal_5212 *ahp = AH5212(ah); local [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_interrupts.c | 108 struct ath_hal_5211 *ahp = AH5211(ah); local 109 uint32_t omask = ahp->ah_maskReg; 129 if (ahp->ah_txOkInterruptMask) 131 if (ahp->ah_txErrInterruptMask) 133 if (ahp->ah_txDescInterruptMask) 135 if (ahp->ah_txEolInterruptMask) 151 ahp->ah_maskReg = ints;
|
H A D | ar5211_xmit.c | 82 struct ath_hal_5211 *ahp = AH5211(ah); local 89 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); 98 struct ath_hal_5211 *ahp = AH5211(ah); local 105 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); 115 struct ath_hal_5211 *ahp = AH5211(ah); local 128 if (ahp->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE) 139 qi = &ahp->ah_txq[q]; 171 struct ath_hal_5211 *ahp = AH5211(ah); local 175 , ahp->ah_txOkInterruptMask 176 , ahp 201 struct ath_hal_5211 *ahp = AH5211(ah); local 235 struct ath_hal_5211 *ahp = AH5211(ah); local [all...] |
H A D | ar5211_misc.c | 36 struct ath_hal_5211 *ahp = AH5211(ah); local 38 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); 44 struct ath_hal_5211 *ahp = AH5211(ah); local 46 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); 315 struct ath_hal_5211 *ahp = AH5211(ah); local 318 OS_MEMCPY(ahp->ah_bssid, bssid, IEEE80211_ADDR_LEN); 319 OS_REG_WRITE(ah, AR_BSS_ID0, LE_READ_4(ahp->ah_bssid)); 320 OS_REG_WRITE(ah, AR_BSS_ID1, LE_READ_2(ahp->ah_bssid+4) | 425 struct ath_hal_5211 *ahp = AH5211(ah); local 430 ahp 450 struct ath_hal_5211 *ahp = AH5211(ah); local 475 struct ath_hal_5211 *ahp = AH5211(ah); local 507 struct ath_hal_5211 *ahp = AH5211(ah); local 522 struct ath_hal_5211 *ahp = AH5211(ah); local 670 struct ath_hal_5211 *ahp = AH5211(ah); local [all...] |
H A D | ar5211_power.c | 98 struct ath_hal_5211 *ahp = AH5211(ah); local 110 modes[ahp->ah_powerMode], modes[mode], 127 ahp->ah_powerMode = mode;
|
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar9001/ |
H A D | ar9130_attach.c | 75 struct ath_hal_5212 *ahp; local 93 ahp = &ahp5416->ah_5212; 94 ah = &ahp->ah_priv.h; 156 HAL_INI_INIT(&ahp->ah_ini_modes, ar5416Modes_9100, 6); 157 HAL_INI_INIT(&ahp->ah_ini_common, ar5416Common_9100, 2); 229 ecode = ath_hal_eepromGet(ah, AR_EEP_MACADDR, ahp->ah_macaddr); 249 if (ahp->ah_miscMode != 0) 250 OS_REG_WRITE(ah, AR_MISC_MODE, ahp->ah_miscMode); 266 if (ahp) 267 ar5416Detach((struct ath_hal *) ahp); [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9280.c | 221 struct ath_hal_5212 *ahp = AH5212(ah); 229 powerArray = ahp->ah_modePowerArray5112; 234 powerArray = ahp->ah_modePowerArray5112; 238 powerArray = ahp->ah_modePowerArray5112; 343 struct ath_hal_5212 *ahp = AH5212(ah); local 345 HALASSERT(ahp->ah_rfHal != AH_NULL); 346 ath_hal_free(ahp->ah_rfHal); 347 ahp->ah_rfHal = AH_NULL; 353 struct ath_hal_5212 *ahp = AH5212(ah); local 358 HALASSERT(ahp [all...] |
H A D | ar9287.c | 227 struct ath_hal_5212 *ahp = AH5212(ah); 235 powerArray = ahp->ah_modePowerArray5112; 240 powerArray = ahp->ah_modePowerArray5112; 244 powerArray = ahp->ah_modePowerArray5112; 349 struct ath_hal_5212 *ahp = AH5212(ah); local 351 HALASSERT(ahp->ah_rfHal != AH_NULL); 352 ath_hal_free(ahp->ah_rfHal); 353 ahp->ah_rfHal = AH_NULL; 359 struct ath_hal_5212 *ahp = AH5212(ah); local 364 HALASSERT(ahp [all...] |
/freebsd-9.3-release/tools/tools/ath/athrd/ |
H A D | athrd.c | 170 struct ath_hal_private *ahp = AH_PRIVATE(ah); local 171 HAL_CAPABILITIES *pCap = &ahp->ah_caps; 1014 struct ath_hal_private ahp; local 1035 memset(&ahp, 0, sizeof(ahp)); 1036 ahp.ah_getChannelEdges = getChannelEdges; 1037 ahp.ah_getWirelessModes = getWirelessModes; 1038 ahp.ah_eepromRead = eepromRead; 1039 ahp.ah_getChipPowerLimits = getChipPowerLimits; 1040 ahp [all...] |