Home
last modified time | relevance | path

Searched refs:ahp (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd-12-stable/sys/dev/ath/ath_hal/ar5416/
Dar5416_btcoex.c41 struct ath_hal_5416 *ahp = AH5416(ah); in ar5416SetBTCoexInfo() local
43 ahp->ah_btModule = btinfo->bt_module; in ar5416SetBTCoexInfo()
44 ahp->ah_btCoexConfigType = btinfo->bt_coex_config; in ar5416SetBTCoexInfo()
45 ahp->ah_btActiveGpioSelect = btinfo->bt_gpio_bt_active; in ar5416SetBTCoexInfo()
46 ahp->ah_btPriorityGpioSelect = btinfo->bt_gpio_bt_priority; in ar5416SetBTCoexInfo()
47 ahp->ah_wlanActiveGpioSelect = btinfo->bt_gpio_wlan_active; in ar5416SetBTCoexInfo()
48 ahp->ah_btActivePolarity = btinfo->bt_active_polarity; in ar5416SetBTCoexInfo()
49 ahp->ah_btCoexSingleAnt = btinfo->bt_single_ant; in ar5416SetBTCoexInfo()
50 ahp->ah_btWlanIsolation = btinfo->bt_isolation; in ar5416SetBTCoexInfo()
56 struct ath_hal_5416 *ahp = AH5416(ah); in ar5416BTCoexConfig() local
[all …]
Dar5416_ani.c42 #define BEACON_RSSI(ahp) \ argument
43 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \
75 struct ath_hal_5212 *ahp = AH5212(ah); in enableAniMIBCounters() local
89 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save+clear counters*/ in enableAniMIBCounters()
96 struct ath_hal_5212 *ahp = AH5212(ah); in disableAniMIBCounters() local
100 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save stats */ in disableAniMIBCounters()
136 struct ath_hal_5212 *ahp = AH5212(ah); in ar5416AniAttach() local
139 OS_MEMCPY(&ahp->ah_aniParams24, params24, sizeof(*params24)); in ar5416AniAttach()
140 setPhyErrBase(ah, &ahp->ah_aniParams24); in ar5416AniAttach()
143 OS_MEMCPY(&ahp->ah_aniParams5, params5, sizeof(*params5)); in ar5416AniAttach()
[all …]
Dar5416_misc.c220 struct ath_hal_5416 *ahp = AH5416(ah); in ar5416GetMibCycleCounts() local
230 if (ahp->ah_cycleCount == 0 || ahp->ah_cycleCount > cc) { in ar5416GetMibCycleCounts()
240 hsample->cycle_count = cc - ahp->ah_cycleCount; in ar5416GetMibCycleCounts()
241 hsample->chan_busy = rc - ahp->ah_ctlBusy; in ar5416GetMibCycleCounts()
242 hsample->ext_chan_busy = ec - ahp->ah_extBusy; in ar5416GetMibCycleCounts()
243 hsample->rx_busy = rf - ahp->ah_rxBusy; in ar5416GetMibCycleCounts()
244 hsample->tx_busy = tf - ahp->ah_txBusy; in ar5416GetMibCycleCounts()
251 ahp->ah_cycleCount = cc; in ar5416GetMibCycleCounts()
252 ahp->ah_rxBusy = rf; in ar5416GetMibCycleCounts()
253 ahp->ah_ctlBusy = rc; in ar5416GetMibCycleCounts()
[all …]
/freebsd-12-stable/sys/contrib/dev/ath/ath_hal/ar9300/
Dar9300_attach.c638 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 …]
Dar9300_mci.c216 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 …]
Dar9300_phy.c399 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 …]
Dar9300_misc.c36 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 …]
Dar9300_ani.c66 #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 …]
Dar9300_xmit.c42 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 …]
Dar9300_interrupts.c88 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 …]
Dar9300_reset.c119 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 …]
Dar9300_eeprom.c146 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 …]
Dar9300_timer.c63 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-12-stable/sys/dev/ath/ath_hal/ar5212/
Dar5212_ani.c38 #define BEACON_RSSI(ahp) \ argument
39 HAL_EP_RND(ahp->ah_stats.ast_nodestats.ns_avgbrssi, \
71 struct ath_hal_5212 *ahp = AH5212(ah); in enableAniMIBCounters() local
85 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save+clear counters*/ in enableAniMIBCounters()
92 struct ath_hal_5212 *ahp = AH5212(ah); in disableAniMIBCounters() local
96 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); /* save stats */ in disableAniMIBCounters()
118 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212AniGetCurrentStats() local
122 ar5212UpdateMibCounters(ah, &ahp->ah_mibStats); in ar5212AniGetCurrentStats()
123 return &ahp->ah_stats; in ar5212AniGetCurrentStats()
155 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212AniAttach() local
[all …]
Dar5212_misc.c40 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()
[all …]
Dar5212_xmit.c50 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212UpdateTxTrigLevel() local
54 if (ahp->ah_txTrigLev >= ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel()
60 omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL); in ar5212UpdateTxTrigLevel()
66 if (curLevel < ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel()
75 ahp->ah_txTrigLev = newLevel; in ar5212UpdateTxTrigLevel()
90 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetTxQueueProps() local
98 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5212SetTxQueueProps()
107 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetTxQueueProps() local
115 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5212GetTxQueueProps()
125 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetupTxQueue() local
[all …]
Dar5212_reset.c127 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212Reset() local
301 regWrites = ath_hal_ini_write(ah, &ahp->ah_ini_modes, modesIndex, 0); in ar5212Reset()
302 regWrites = write_common(ah, &ahp->ah_ini_common, bChannelChange, in ar5212Reset()
312 ahp->ah_rfHal->writeRegs(ah, modesIndex, freqIndex, regWrites); in ar5212Reset()
400 if (!ahp->ah_rfHal->setRfRegs(ah, chan, modesIndex, rfXpdGain)) { in ar5212Reset()
427 OS_REG_WRITE(ah, AR_STA_ID0, LE_READ_4(ahp->ah_macaddr)); in ar5212Reset()
428 OS_REG_WRITE(ah, AR_STA_ID1, LE_READ_2(ahp->ah_macaddr + 4) in ar5212Reset()
431 | ahp->ah_staId1Defaults in ar5212Reset()
436 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); in ar5212Reset()
437 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp->ah_bssidmask + 4)); in ar5212Reset()
[all …]
Dar5212_rfgain.c68 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212InitializeGainValues() local
69 GAIN_VALUES *gv = &ahp->ah_gainValues; in ar5212InitializeGainValues()
164 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212RequestRfgain() local
168 probePowerIndex = ahp->ah_ofdmTxPower + ahp->ah_txPowerIndexOffset; in ar5212RequestRfgain()
173 ahp->ah_rfgainState = HAL_RFGAIN_READ_REQUESTED; in ar5212RequestRfgain()
247 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetGainFCorrection() local
254 const GAIN_VALUES *gv = &ahp->ah_gainValues; in ar5212GetGainFCorrection()
283 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetRfgain() local
284 GAIN_VALUES *gv = &ahp->ah_gainValues; in ar5212GetRfgain()
288 if (!gv->active || !ahp->ah_phyPowerOn) in ar5212GetRfgain()
[all …]
Dar5212_interrupts.c60 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212GetPendingInterrupts() local
92 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXOK); in ar5212GetPendingInterrupts()
93 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXDESC); in ar5212GetPendingInterrupts()
95 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXERR); in ar5212GetPendingInterrupts()
96 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXEOL); in ar5212GetPendingInterrupts()
141 struct ath_hal_5212 *ahp = AH5212(ah); in ar5212SetInterrupts() local
142 uint32_t omask = ahp->ah_maskReg; in ar5212SetInterrupts()
157 if (ahp->ah_txOkInterruptMask) in ar5212SetInterrupts()
159 if (ahp->ah_txErrInterruptMask) in ar5212SetInterrupts()
161 if (ahp->ah_txDescInterruptMask) in ar5212SetInterrupts()
[all …]
/freebsd-12-stable/sys/dev/ath/ath_hal/ar5312/
Dar5312_attach.c69 struct ath_hal_5212 *ahp = AH_NULL; in ar5312Attach() local
80 ahp = ath_hal_malloc(sizeof (struct ath_hal_5212)); in ar5312Attach()
81 if (ahp == AH_NULL) { in ar5312Attach()
87 ar5212InitState(ahp, devid, sc, st, sh, status); in ar5312Attach()
88 ah = &ahp->ah_priv.h; in ar5312Attach()
99 ahp->ah_priv.ah_eepromRead = ar5312EepromRead; in ar5312Attach()
101 ahp->ah_priv.ah_eepromWrite = ar5312EepromWrite; in ar5312Attach()
105 ahp->ah_priv.ah_gpioCfgOutput = ar5315GpioCfgOutput; in ar5312Attach()
106 ahp->ah_priv.ah_gpioCfgInput = ar5315GpioCfgInput; in ar5312Attach()
107 ahp->ah_priv.ah_gpioGet = ar5315GpioGet; in ar5312Attach()
[all …]
Dar5312_reset.c99 struct ath_hal_5212 *ahp = AH5212(ah); in ar5312Reset() local
138 HALASSERT(ahp->ah_eeversion >= AR_EEPROM_VER3); in ar5312Reset()
231 regWrites = ath_hal_ini_write(ah, &ahp->ah_ini_modes, modesIndex, 0); in ar5312Reset()
232 regWrites = write_common(ah, &ahp->ah_ini_common, bChannelChange, in ar5312Reset()
234 ahp->ah_rfHal->writeRegs(ah, modesIndex, freqIndex, regWrites); in ar5312Reset()
322 if (!ahp->ah_rfHal->setRfRegs(ah, chan, modesIndex, rfXpdGain)) { in ar5312Reset()
349 OS_REG_WRITE(ah, AR_STA_ID0, LE_READ_4(ahp->ah_macaddr)); in ar5312Reset()
350 OS_REG_WRITE(ah, AR_STA_ID1, LE_READ_2(ahp->ah_macaddr + 4) in ar5312Reset()
353 | ahp->ah_staId1Defaults in ar5312Reset()
358 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssidmask)); in ar5312Reset()
[all …]
/freebsd-12-stable/sys/dev/ath/ath_hal/ar9002/
Dar9285_btcoex.c48 struct ath_hal_5416 *ahp = AH5416(ah); in ar9285BTCoexAntennaDiversity() local
55 !! (ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ALLOW), in ar9285BTCoexAntennaDiversity()
56 !! (ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ENABLE)); in ar9285BTCoexAntennaDiversity()
58 if ((ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ALLOW) || in ar9285BTCoexAntennaDiversity()
60 if ((ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ENABLE) && in ar9285BTCoexAntennaDiversity()
67 ahp->ah_btCoexMode2 &= (~(AR_BT_DISABLE_BT_ANT)); in ar9285BTCoexAntennaDiversity()
68 OS_REG_WRITE(ah, AR_BT_COEX_MODE2, ahp->ah_btCoexMode2); in ar9285BTCoexAntennaDiversity()
80 ahp->ah_btCoexMode2 |= AR_BT_DISABLE_BT_ANT; in ar9285BTCoexAntennaDiversity()
81 OS_REG_WRITE(ah, AR_BT_COEX_MODE2, ahp->ah_btCoexMode2); in ar9285BTCoexAntennaDiversity()
96 ahp->ah_btCoexMode2 |= AR_BT_DISABLE_BT_ANT; in ar9285BTCoexAntennaDiversity()
[all …]
/freebsd-12-stable/sys/dev/ath/ath_hal/ar5211/
Dar5211_xmit.c84 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetTxQueueProps() local
91 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5211SetTxQueueProps()
100 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211GetTxQueueProps() local
107 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5211GetTxQueueProps()
117 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetupTxQueue() local
130 if (ahp->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE) in ar5211SetupTxQueue()
141 qi = &ahp->ah_txq[q]; in ar5211SetupTxQueue()
173 struct ath_hal_5211 *ahp = AH5211(ah); in setTxQInterrupts() local
177 , ahp->ah_txOkInterruptMask in setTxQInterrupts()
178 , ahp->ah_txErrInterruptMask in setTxQInterrupts()
[all …]
Dar5211_misc.c38 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211GetMacAddress() local
40 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); in ar5211GetMacAddress()
46 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetMacAddress() local
48 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); in ar5211SetMacAddress()
317 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211WriteAssocid() local
320 OS_MEMCPY(ahp->ah_bssid, bssid, IEEE80211_ADDR_LEN); in ar5211WriteAssocid()
321 OS_REG_WRITE(ah, AR_BSS_ID0, LE_READ_4(ahp->ah_bssid)); in ar5211WriteAssocid()
322 OS_REG_WRITE(ah, AR_BSS_ID1, LE_READ_2(ahp->ah_bssid+4) | in ar5211WriteAssocid()
427 struct ath_hal_5211 *ahp = AH5211(ah); in ar5211SetSifsTime() local
432 ahp->ah_sifstime = (u_int) -1; /* restore default handling */ in ar5211SetSifsTime()
[all …]
/freebsd-12-stable/sys/dev/ath/ath_hal/ar5210/
Dar5210_xmit.c40 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210SetTxQueueProps() local
47 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); in ar5210SetTxQueueProps()
56 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210GetTxQueueProps() local
63 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); in ar5210GetTxQueueProps()
73 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210SetupTxQueue() local
95 qi = &ahp->ah_txq[q]; in ar5210SetupTxQueue()
127 struct ath_hal_5210 *ahp = AH5210(ah); in ar5210ReleaseTxQueue() local
135 qi = &ahp->ah_txq[q]; in ar5210ReleaseTxQueue()
145 ahp->ah_txOkInterruptMask &= ~(1 << q); in ar5210ReleaseTxQueue()
146 ahp->ah_txErrInterruptMask &= ~(1 << q); in ar5210ReleaseTxQueue()
[all …]

1234