/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_btcoex.c | 39 struct ath_hal_5416 *ahp = AH5416(ah); in ar5416SetBTCoexInfo() local 41 ahp->ah_btModule = btinfo->bt_module; in ar5416SetBTCoexInfo() 42 ahp->ah_btCoexConfigType = btinfo->bt_coex_config; in ar5416SetBTCoexInfo() 43 ahp->ah_btActiveGpioSelect = btinfo->bt_gpio_bt_active; in ar5416SetBTCoexInfo() 44 ahp->ah_btPriorityGpioSelect = btinfo->bt_gpio_bt_priority; in ar5416SetBTCoexInfo() 45 ahp->ah_wlanActiveGpioSelect = btinfo->bt_gpio_wlan_active; in ar5416SetBTCoexInfo() 46 ahp->ah_btActivePolarity = btinfo->bt_active_polarity; in ar5416SetBTCoexInfo() 47 ahp->ah_btCoexSingleAnt = btinfo->bt_single_ant; in ar5416SetBTCoexInfo() 48 ahp->ah_btWlanIsolation = btinfo->bt_isolation; in ar5416SetBTCoexInfo() 54 struct ath_hal_5416 *ahp = AH5416(ah); in ar5416BTCoexConfig() local [all …]
|
H A D | ar5416_ani.c | 40 #define BEACON_RSSI(ahp) \ argument 41 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \ 73 struct ath_hal_5212 *ahp = AH5212(ah); in enableAniMIBCounters() local 87 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save+clear counters*/ in enableAniMIBCounters() 94 struct ath_hal_5212 *ahp = AH5212(ah); in disableAniMIBCounters() local 98 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save stats */ in disableAniMIBCounters() 134 struct ath_hal_5212 *ahp = AH5212(ah); in ar5416AniAttach() local 137 OS_MEMCPY(&ahp->ah_aniParams24, params24, sizeof(*params24)); in ar5416AniAttach() 138 setPhyErrBase(ah, &ahp->ah_aniParams24); in ar5416AniAttach() 141 OS_MEMCPY(&ahp->ah_aniParams5, params5, sizeof(*params5)); in ar5416AniAttach() [all …]
|
H A D | ar5416_misc.c | 218 struct ath_hal_5416 *ahp = AH5416(ah); in ar5416GetMibCycleCounts() local 228 if (ahp->ah_cycleCount == 0 || ahp->ah_cycleCount > cc) { in ar5416GetMibCycleCounts() 238 hsample->cycle_count = cc - ahp->ah_cycleCount; in ar5416GetMibCycleCounts() 239 hsample->chan_busy = rc - ahp->ah_ctlBusy; in ar5416GetMibCycleCounts() 240 hsample->ext_chan_busy = ec - ahp->ah_extBusy; in ar5416GetMibCycleCounts() 241 hsample->rx_busy = rf - ahp->ah_rxBusy; in ar5416GetMibCycleCounts() 242 hsample->tx_busy = tf - ahp->ah_txBusy; in ar5416GetMibCycleCounts() 249 ahp->ah_cycleCount = cc; in ar5416GetMibCycleCounts() 250 ahp->ah_rxBusy = rf; in ar5416GetMibCycleCounts() 251 ahp->ah_ctlBusy = rc; in ar5416GetMibCycleCounts() [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_attach.c | 638 struct ath_hal_9300 *ahp; in ar9300_attach() local 646 ahp = ar9300_new_state(devid, sc, st, sh, eepromdata, ah_config, status); in ar9300_attach() 647 if (ahp == AH_NULL) { in ar9300_attach() 650 ah = &ahp->ah_priv.h; in ar9300_attach() 675 ahp->ah_intr_mitigation_rx = AH_TRUE; in ar9300_attach() 679 ahp->ah_intr_mitigation_rx = AH_TRUE; in ar9300_attach() 686 ahp->ah_intr_mitigation_rx = AH_FALSE; in ar9300_attach() 694 ahp->ah_intr_mitigation_tx = AH_TRUE; in ar9300_attach() 704 ahp->ah_wa_reg_val = OS_REG_READ(ah, AR_HOSTIF_REG(ah, AR_WA)); in ar9300_attach() 706 ahp->ah_wa_reg_val |= in ar9300_attach() [all …]
|
H A D | ar9300_mci.c | 216 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_mci_send_coex_version_query() local 219 if ((ahp->ah_mci_coex_bt_version_known == AH_FALSE) && in ar9300_mci_send_coex_version_query() 220 (ahp->ah_mci_bt_state != MCI_BT_SLEEP)) { in ar9300_mci_send_coex_version_query() 231 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_mci_send_coex_version_response() local 238 ahp->ah_mci_coex_major_version_wlan; in ar9300_mci_send_coex_version_response() 240 ahp->ah_mci_coex_minor_version_wlan; in ar9300_mci_send_coex_version_response() 247 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_mci_send_coex_wlan_channels() local 248 u_int32_t *payload = &ahp->ah_mci_coex_wlan_channels[0]; in ar9300_mci_send_coex_wlan_channels() 250 if ((ahp->ah_mci_coex_wlan_channels_update == AH_TRUE) && in ar9300_mci_send_coex_wlan_channels() 251 (ahp->ah_mci_bt_state != MCI_BT_SLEEP)) in ar9300_mci_send_coex_wlan_channels() [all …]
|
H A D | ar9300_phy.c | 399 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_rate_txpower() local 404 return ahp->txpower[rate_index][num_chains-1]; in ar9300_get_rate_txpower() 408 return ahp->txpower_stbc[rate_index][num_chains-1]; in ar9300_get_rate_txpower() 417 return ahp->txpower[rate_index][num_chains-1]; in ar9300_get_rate_txpower() 425 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_adjust_reg_txpower_cdd() local 433 switch (ahp->ah_tx_chainmask) { in ar9300_adjust_reg_txpower_cdd() 436 cdd_power = ahp->upper_limit[0]; in ar9300_adjust_reg_txpower_cdd() 442 (ahp->twice_antenna_gain >= ahp->twice_antenna_reduction)? in ar9300_adjust_reg_txpower_cdd() 444 ((int16_t)AH_MIN((ahp->twice_antenna_reduction - in ar9300_adjust_reg_txpower_cdd() 445 (ahp->twice_antenna_gain + AR9300_TXBF_2TX_ARRAY_GAIN)), 0)); in ar9300_adjust_reg_txpower_cdd() [all …]
|
H A D | ar9300_misc.c | 36 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_hw_hangs() local 59 ahp->ah_hang_wars = *hangs; in ar9300_get_hw_hangs() 99 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_mac_address() local 101 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); in ar9300_get_mac_address() 107 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_set_mac_address() local 109 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); in ar9300_set_mac_address() 116 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_bss_id_mask() local 118 OS_MEMCPY(mask, ahp->ah_bssid_mask, IEEE80211_ADDR_LEN); in ar9300_get_bss_id_mask() 124 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_set_bss_id_mask() local 127 OS_MEMCPY(ahp->ah_bssid_mask, mask, IEEE80211_ADDR_LEN); in ar9300_set_bss_id_mask() [all …]
|
H A D | ar9300_ani.c | 66 #define BEACON_RSSI(ahp) \ argument 67 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \ 181 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_ani_channel_index() local 184 for (i = 0; i < ARRAY_LENGTH(ahp->ah_ani); i++) { in ar9300_get_ani_channel_index() 186 if (ahp->ah_ani[i].c.ic_freq == chan->ic_freq) { in ar9300_get_ani_channel_index() 189 if (ahp->ah_ani[i].c.ic_freq == 0) { in ar9300_get_ani_channel_index() 190 ahp->ah_ani[i].c.ic_freq = chan->ic_freq; in ar9300_get_ani_channel_index() 191 ahp->ah_ani[i].c.ic_flags = chan->ic_flags; in ar9300_get_ani_channel_index() 227 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_ani_attach() local 230 OS_MEMZERO(ahp->ah_ani, sizeof(ahp->ah_ani)); in ar9300_ani_attach() [all …]
|
H A D | ar9300_xmit.c | 42 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_update_tx_trig_level() local 55 omask = ar9300_set_interrupts(ah, ahp->ah_mask_reg &~ HAL_INT_GLOBAL, 0); in ar9300_update_tx_trig_level() 99 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_set_tx_queue_props() local 106 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], q_info); in ar9300_set_tx_queue_props() 115 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_tx_queue_props() local 123 return ath_hal_getTxQProps(ah, q_info, &ahp->ah_txq[q]); in ar9300_get_tx_queue_props() 140 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_setup_tx_queue() local 170 if (ahp->ah_txq[q].tqi_type == HAL_TX_QUEUE_INACTIVE) { in ar9300_setup_tx_queue() 188 qi = &ahp->ah_txq[q]; in ar9300_setup_tx_queue() 224 struct ath_hal_9300 *ahp = AH9300(ah); in set_tx_q_interrupts() local [all …]
|
H A D | ar9300_interrupts.c | 88 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_pending_interrupts() local 224 if (ahp->ah_intr_mitigation_rx) { in ar9300_get_pending_interrupts() 230 if (ahp->ah_intr_mitigation_tx) { in ar9300_get_pending_interrupts() 298 ahp->ah_intr_gen_timer_trigger = in ar9300_get_pending_interrupts() 300 ahp->ah_intr_gen_timer_thresh = in ar9300_get_pending_interrupts() 302 if (ahp->ah_intr_gen_timer_trigger) { in ar9300_get_pending_interrupts() 352 ahp->ah_gpio_cause = (async_cause & AR_INTR_ASYNC_CAUSE_GPIO) >> in ar9300_get_pending_interrupts() 374 int_raw, int_rx_msg, ahp->ah_mci_int_raw, in ar9300_get_pending_interrupts() 375 ahp->ah_mci_int_rx_msg); in ar9300_get_pending_interrupts() 378 if (ahp->ah_mci_int_raw || ahp->ah_mci_int_rx_msg) { in ar9300_get_pending_interrupts() [all …]
|
H A D | ar9300_reset.c | 119 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_attach_hw_platform() local 121 ahp->ah_hwp = HAL_TRUE_CHIP; in ar9300_attach_hw_platform() 222 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_channel_centers() local 249 (extoff * ((ahp->ah_ext_prot_spacing == HAL_HT_EXTPROTSPACING_20) ? in ar9300_get_channel_centers() 372 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_chain_noise_floor() local 375 u_int8_t rx_chainmask = ahp->ah_rx_chainmask | (ahp->ah_rx_chainmask << 3); in ar9300_chain_noise_floor() 590 struct ath_hal_9300 *ahp = AH9300(ah); in get_noise_floor_thresh() local 598 *nft = (int8_t)ar9300_eeprom_get(ahp, EEP_NFTHRESH_5); in get_noise_floor_thresh() 605 *nft = (int8_t)ar9300_eeprom_get(ahp, EEP_NFTHRESH_2); in get_noise_floor_thresh() 631 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_store_new_nf() local [all …]
|
H A D | ar9300_eeprom.c | 146 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_eeprom_template_install() local 150 mptr = &ahp->ah_eeprom; in ar9300_eeprom_template_install() 302 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_flash_map() 304 ahp->ah_cal_mem = OS_REMAP(ah, AR9300_EEPROM_START_ADDR, AR9300_EEPROM_MAX); in ar9300_flash_map() 306 ahp->ah_cal_mem = OS_REMAP((uintptr_t)(AH_PRIVATE(ah)->ah_st), in ar9300_flash_map() 309 if (!ahp->ah_cal_mem) { in ar9300_flash_map() 321 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_flash_read() local 323 *data = ((u_int16_t *)ahp->ah_cal_mem)[off]; in ar9300_flash_read() 330 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_flash_write() local 332 ((u_int16_t *)ahp->ah_cal_mem)[off] = data; in ar9300_flash_write() [all …]
|
H A D | ar9300_timer.c | 63 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_alloc_generic_timer() local 77 mask = ahp->ah_avail_gen_timers >> i; in ar9300_alloc_generic_timer() 80 ahp->ah_avail_gen_timers &= ~(AR_GENTMR_BIT(i)); in ar9300_alloc_generic_timer() 82 if ((tsf == HAL_GEN_TIMER_TSF2) && !ahp->ah_enable_tsf2) { in ar9300_alloc_generic_timer() 83 ahp->ah_enable_tsf2 = AH_TRUE; in ar9300_alloc_generic_timer() 94 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_start_tsf2() local 96 if (ahp->ah_enable_tsf2) { in ar9300_start_tsf2() 106 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_free_generic_timer() local 109 ahp->ah_avail_gen_timers |= AR_GENTMR_BIT(index); in ar9300_free_generic_timer() 178 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_gen_timer_interrupts() local [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_ani.c | 36 #define BEACON_RSSI(ahp) \ argument 37 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \ 69 struct ath_hal_5212 *ahp = AH5212(ah); in enableAniMIBCounters() local 83 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save+clear counters*/ in enableAniMIBCounters() 90 struct ath_hal_5212 *ahp = AH5212(ah); in disableAniMIBCounters() local 94 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save stats */ in disableAniMIBCounters() 116 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212AniGetCurrentStats() local 120 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); in ar5212AniGetCurrentStats() 121 return &ahp->ah_stats; in ar5212AniGetCurrentStats() 153 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212AniAttach() local [all …]
|
H A D | ar5212_misc.c | 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() [all …]
|
H A D | ar5212_xmit.c | 48 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212UpdateTxTrigLevel() local 52 if (ahp->ah_txTrigLev >= ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel() 58 omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL); in ar5212UpdateTxTrigLevel() 64 if (curLevel < ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel() 73 ahp->ah_txTrigLev = newLevel; in ar5212UpdateTxTrigLevel() 88 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetTxQueueProps() local 96 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5212SetTxQueueProps() 105 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetTxQueueProps() local 113 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5212GetTxQueueProps() 123 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetupTxQueue() local [all …]
|
H A D | ar5212_reset.c | 125 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212Reset() local 299 regWrites = ath_hal_ini_write(ah, &ahp->ah_ini_modes, modesIndex, 0); in ar5212Reset() 300 regWrites = write_common(ah, &ahp->ah_ini_common, bChannelChange, in ar5212Reset() 310 ahp->ah_rfHal->writeRegs(ah, modesIndex, freqIndex, regWrites); in ar5212Reset() 398 if (!ahp->ah_rfHal->setRfRegs(ah, chan, modesIndex, rfXpdGain)) { in ar5212Reset() 425 OS_REG_WRITE(ah, AR_STA_ID0, LE_READ_4(ahp->ah_macaddr)); in ar5212Reset() 426 OS_REG_WRITE(ah, AR_STA_ID1, LE_READ_2(ahp->ah_macaddr + 4) in ar5212Reset() 429 | ahp->ah_staId1Defaults in ar5212Reset() 434 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); in ar5212Reset() 435 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp->ah_bssidmask + 4)); in ar5212Reset() [all …]
|
H A D | ar5212_rfgain.c | 66 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212InitializeGainValues() local 67 GAIN_VALUES *gv = &ahp->ah_gainValues; in ar5212InitializeGainValues() 162 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212RequestRfgain() local 166 probePowerIndex = ahp->ah_ofdmTxPower + ahp->ah_txPowerIndexOffset; in ar5212RequestRfgain() 171 ahp->ah_rfgainState = HAL_RFGAIN_READ_REQUESTED; in ar5212RequestRfgain() 245 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetGainFCorrection() local 252 const GAIN_VALUES *gv = &ahp->ah_gainValues; in ar5212GetGainFCorrection() 281 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetRfgain() local 282 GAIN_VALUES *gv = &ahp->ah_gainValues; in ar5212GetRfgain() 286 if (!gv->active || !ahp->ah_phyPowerOn) in ar5212GetRfgain() [all …]
|
H A D | ar5212_interrupts.c | 58 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetPendingInterrupts() local 90 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXOK); in ar5212GetPendingInterrupts() 91 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXDESC); in ar5212GetPendingInterrupts() 93 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXERR); in ar5212GetPendingInterrupts() 94 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXEOL); in ar5212GetPendingInterrupts() 139 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetInterrupts() local 140 uint32_t omask = ahp->ah_maskReg; in ar5212SetInterrupts() 155 if (ahp->ah_txOkInterruptMask) in ar5212SetInterrupts() 157 if (ahp->ah_txErrInterruptMask) in ar5212SetInterrupts() 159 if (ahp->ah_txDescInterruptMask) in ar5212SetInterrupts() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5312_attach.c | 67 struct ath_hal_5212 *ahp = AH_NULL; in ar5312Attach() local 78 ahp = ath_hal_malloc(sizeof (struct ath_hal_5212)); in ar5312Attach() 79 if (ahp == AH_NULL) { in ar5312Attach() 85 ar5212InitState(ahp, devid, sc, st, sh, status); in ar5312Attach() 86 ah = &ahp->ah_priv.h; in ar5312Attach() 97 ahp->ah_priv.ah_eepromRead = ar5312EepromRead; in ar5312Attach() 99 ahp->ah_priv.ah_eepromWrite = ar5312EepromWrite; in ar5312Attach() 103 ahp->ah_priv.ah_gpioCfgOutput = ar5315GpioCfgOutput; in ar5312Attach() 104 ahp->ah_priv.ah_gpioCfgInput = ar5315GpioCfgInput; in ar5312Attach() 105 ahp->ah_priv.ah_gpioGet = ar5315GpioGet; in ar5312Attach() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9285_btcoex.c | 46 struct ath_hal_5416 *ahp = AH5416(ah); in ar9285BTCoexAntennaDiversity() local 53 !! (ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ALLOW), in ar9285BTCoexAntennaDiversity() 54 !! (ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ENABLE)); in ar9285BTCoexAntennaDiversity() 56 if ((ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ALLOW) || in ar9285BTCoexAntennaDiversity() 58 if ((ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ENABLE) && in ar9285BTCoexAntennaDiversity() 65 ahp->ah_btCoexMode2 &= (~(AR_BT_DISABLE_BT_ANT)); in ar9285BTCoexAntennaDiversity() 66 OS_REG_WRITE(ah, AR_BT_COEX_MODE2, ahp->ah_btCoexMode2); in ar9285BTCoexAntennaDiversity() 78 ahp->ah_btCoexMode2 |= AR_BT_DISABLE_BT_ANT; in ar9285BTCoexAntennaDiversity() 79 OS_REG_WRITE(ah, AR_BT_COEX_MODE2, ahp->ah_btCoexMode2); in ar9285BTCoexAntennaDiversity() 94 ahp->ah_btCoexMode2 |= AR_BT_DISABLE_BT_ANT; in ar9285BTCoexAntennaDiversity() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_xmit.c | 82 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetTxQueueProps() local 89 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5211SetTxQueueProps() 98 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211GetTxQueueProps() local 105 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5211GetTxQueueProps() 115 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetupTxQueue() local 128 if (ahp->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE) in ar5211SetupTxQueue() 139 qi = &ahp->ah_txq[q]; in ar5211SetupTxQueue() 171 struct ath_hal_5211 *ahp = AH5211(ah); in setTxQInterrupts() local 175 , ahp->ah_txOkInterruptMask in setTxQInterrupts() 176 , ahp->ah_txErrInterruptMask in setTxQInterrupts() [all …]
|
H A D | ar5211_misc.c | 36 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211GetMacAddress() local 38 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); in ar5211GetMacAddress() 44 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetMacAddress() local 46 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); in ar5211SetMacAddress() 315 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211WriteAssocid() local 318 OS_MEMCPY(ahp->ah_bssid, bssid, IEEE80211_ADDR_LEN); in ar5211WriteAssocid() 319 OS_REG_WRITE(ah, AR_BSS_ID0, LE_READ_4(ahp->ah_bssid)); in ar5211WriteAssocid() 320 OS_REG_WRITE(ah, AR_BSS_ID1, LE_READ_2(ahp->ah_bssid+4) | in ar5211WriteAssocid() 425 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetSifsTime() local 430 ahp->ah_sifstime = (u_int) -1; /* restore default handling */ in ar5211SetSifsTime() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_xmit.c | 38 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210SetTxQueueProps() local 45 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5210SetTxQueueProps() 54 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210GetTxQueueProps() local 61 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5210GetTxQueueProps() 71 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210SetupTxQueue() local 93 qi = &ahp->ah_txq[q]; in ar5210SetupTxQueue() 125 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210ReleaseTxQueue() local 133 qi = &ahp->ah_txq[q]; in ar5210ReleaseTxQueue() 143 ahp->ah_txOkInterruptMask &= ~(1 << q); in ar5210ReleaseTxQueue() 144 ahp->ah_txErrInterruptMask &= ~(1 << q); in ar5210ReleaseTxQueue() [all …]
|
H A D | ar5210_interrupts.c | 46 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210GetPendingInterrupts() local 62 *masked = (isr & (HAL_INT_COMMON - HAL_INT_BNR)) & ahp->ah_maskReg; in ar5210GetPendingInterrupts() 91 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210SetInterrupts() local 92 uint32_t omask = ahp->ah_maskReg; in ar5210SetInterrupts() 112 if (ahp->ah_txOkInterruptMask) in ar5210SetInterrupts() 114 if (ahp->ah_txErrInterruptMask) in ar5210SetInterrupts() 116 if (ahp->ah_txDescInterruptMask) in ar5210SetInterrupts() 118 if (ahp->ah_txEolInterruptMask) in ar5210SetInterrupts() 125 ahp->ah_maskReg = ints; in ar5210SetInterrupts()
|