Searched refs:ah (Results 76 - 100 of 313) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_misc.c21 #include "ah.h"
40 ar5416GetWirelessModes(struct ath_hal *ah) argument
43 struct ath_hal_private *ahpriv = AH_PRIVATE(ah);
46 mode = ar5212GetWirelessModes(ah);
66 ar5416SetLedState(struct ath_hal *ah, HAL_LED_STATE state) argument
79 if (AR_SREV_HOWL(ah))
85 OS_REG_RMW_FIELD(ah, AR_MAC_LED,
99 OS_REG_RMW_FIELD(ah, AR_MAC_LED, AR_MAC_LED_MODE,
107 ar5416GetTsf64(struct ath_hal *ah) argument
112 low1 = OS_REG_READ(ah, AR_TSF_L3
144 ar5416SetTsf64(struct ath_hal *ah, uint64_t tsf64) argument
169 ar5416ResetTsf(struct ath_hal *ah) argument
184 ar5416GetCurRssi(struct ath_hal *ah) argument
192 ar5416SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings) argument
199 ar5416SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en) argument
206 ar5416SetCoverageClass(struct ath_hal *ah, uint8_t coverageclass, int now) argument
216 ar5416GetMibCycleCounts(struct ath_hal *ah, HAL_SURVEY_SAMPLE *hsample) argument
263 ar5416SetChainMasks(struct ath_hal *ah, uint32_t tx_chainmask, uint32_t rx_chainmask) argument
280 ar5416Get11nExtBusy(struct ath_hal *ah) argument
355 ar5416Set11nMac2040(struct ath_hal *ah, HAL_HT_MACMODE mode) argument
375 ar5416Get11nRxClear(struct ath_hal *ah) argument
401 ar5416Set11nRxClear(struct ath_hal *ah, HAL_HT_RXCLEAR rxclear) argument
421 ar5416SetQuiet(struct ath_hal *ah, uint32_t period, uint32_t duration, uint32_t nextStart, HAL_QUIET_FLAG flag) argument
447 ar5416GetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t *result) argument
483 ar5416SetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, u_int32_t capability, u_int32_t setting, HAL_STATUS *status) argument
530 ar5416GetDiagState(struct ath_hal *ah, int request, const void *args, uint32_t argsize, void **result, uint32_t *resultsize) argument
562 ar5416SetRifsDelay(struct ath_hal *ah, const struct ieee80211_channel *chan, HAL_BOOL enable) argument
615 ar5416CompareDbgHang(struct ath_hal *ah, const mac_dbg_regs_t *regs, const hal_mac_hang_check_t *check) argument
657 ar5416DetectMacHang(struct ath_hal *ah) argument
705 ar5416DetectBBHang(struct ath_hal *ah) argument
[all...]
H A Dar5416_cal_iq.c21 #include "ah.h"
38 ar5416IQCalCollect(struct ath_hal *ah) argument
40 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;
48 OS_REG_READ(ah, AR_PHY_CAL_MEAS_0(i));
50 OS_REG_READ(ah, AR_PHY_CAL_MEAS_1(i));
52 OS_REG_READ(ah, AR_PHY_CAL_MEAS_2(i));
53 HALDEBUG(ah, HAL_DEBUG_PERCAL,
64 ar5416IQCalibration(struct ath_hal *ah, uint8_t numChains) argument
66 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;
76 HALDEBUG(ah, HAL_DEBUG_PERCA
[all...]
H A Dar5416_cal_adcdc.c21 #include "ah.h"
36 ar5416AdcDcCalCollect(struct ath_hal *ah) argument
38 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;
43 OS_REG_READ(ah, AR_PHY_CAL_MEAS_0(i));
45 OS_REG_READ(ah, AR_PHY_CAL_MEAS_1(i));
47 OS_REG_READ(ah, AR_PHY_CAL_MEAS_2(i));
49 OS_REG_READ(ah, AR_PHY_CAL_MEAS_3(i));
51 HALDEBUG(ah, HAL_DEBUG_PERCAL,
62 ar5416AdcDcCalibration(struct ath_hal *ah, uint8_t numChains) argument
64 struct ar5416PerCal *cal = &AH5416(ah)
[all...]
H A Dar5416_cal_adcgain.c21 #include "ah.h"
39 ar5416AdcGainCalCollect(struct ath_hal *ah) argument
41 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;
49 OS_REG_READ(ah, AR_PHY_CAL_MEAS_0(i));
51 OS_REG_READ(ah, AR_PHY_CAL_MEAS_1(i));
53 OS_REG_READ(ah, AR_PHY_CAL_MEAS_2(i));
55 OS_REG_READ(ah, AR_PHY_CAL_MEAS_3(i));
57 HALDEBUG(ah, HAL_DEBUG_PERCAL,
69 ar5416AdcGainCalibration(struct ath_hal *ah, uint8_t numChains) argument
71 struct ar5416PerCal *cal = &AH5416(ah)
[all...]
H A Dar5416_spectral.c20 #include "ah.h"
44 static void ar5416DisableRadar(struct ath_hal *ah);
45 static void ar5416PrepSpectralScan(struct ath_hal *ah);
48 ar5416DisableRadar(struct ath_hal *ah) argument
53 val = OS_REG_READ(ah, AR_PHY_RADAR_0);
64 OS_REG_WRITE(ah, AR_PHY_RADAR_0, val);
67 val = OS_REG_READ(ah, AR_PHY_RADAR_EXT);
68 OS_REG_WRITE(ah, AR_PHY_RADAR_EXT, val & ~AR_PHY_RADAR_EXT_ENA);
70 val = OS_REG_READ(ah, AR_RX_FILTER);
72 OS_REG_WRITE(ah, AR_RX_FILTE
76 ar5416PrepSpectralScan(struct ath_hal *ah) argument
84 ar5416ConfigureSpectralScan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss) argument
151 ar5416GetSpectralParams(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss) argument
171 ar5416IsSpectralActive(struct ath_hal *ah) argument
180 ar5416IsSpectralEnabled(struct ath_hal *ah) argument
189 ar5416StartSpectralScan(struct ath_hal *ah) argument
206 ar5416StopSpectralScan(struct ath_hal *ah) argument
221 ar5416GetSpectralConfig(struct ath_hal *ah) argument
230 ar5416RestoreSpectralConfig(struct ath_hal *ah, uint32_t restoreval) argument
[all...]
H A Dar5416.h101 HAL_BOOL (*ah_setPowerCalTable) (struct ath_hal *ah,
107 void (*ah_initPLL) (struct ath_hal *ah,
111 void (*ah_btCoexSetDiversity)(struct ath_hal *ah);
168 #define IS_5416_PCI(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCI)
169 #define IS_5416_PCIE(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCIE)
171 #define IS_PCIE(ah) (IS_5416_PCIE(ah))
177 extern uint32_t ar5416GetRadioRev(struct ath_hal *ah);
[all...]
H A Dar5416_beacon.c21 #include "ah.h"
35 ar5416GetNextTBTT(struct ath_hal *ah) argument
37 return OS_REG_READ(ah, AR_NEXT_TBTT);
46 ar5416SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) argument
49 struct ath_hal_5212 *ahp = AH5212(ah);
51 OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bt->bt_nexttbtt));
52 OS_REG_WRITE(ah, AR_NEXT_DBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextdba));
53 OS_REG_WRITE(ah, AR_NEXT_SWBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextswba));
54 OS_REG_WRITE(ah, AR_NEXT_NDP, TU_TO_USEC(bt->bt_nextatim));
58 OS_REG_WRITE(ah, AR5416_BEACON_PERIO
82 ar5416BeaconInit(struct ath_hal *ah, uint32_t next_beacon, uint32_t beacon_period) argument
131 ar5416ResetStaBeaconTimers(struct ath_hal *ah) argument
151 ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument
[all...]
H A Dar2133.c21 #include "ah.h"
45 #define AR2133(ah) ((struct ar2133State *) AH5212(ah)->ah_rfHal)
53 ar2133WriteRegs(struct ath_hal *ah, u_int modesIndex, u_int freqIndex, argument
56 (void) ath_hal_ini_write(ah, &AH5416(ah)->ah_ini_bb_rfgain,
88 ar2133ForceBias(struct ath_hal *ah, uint16_t synth_freq) argument
93 struct ar2133State *priv = AR2133(ah);
109 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: Force rf_pwd_icsyndiv to %1d on %4d\n",
116 ath_hal_ini_bank_write(ah,
125 ar2133SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
233 ar2133GetRfBank(struct ath_hal *ah, int bank) argument
257 ar2133SetRfRegs(struct ath_hal *ah, const struct ieee80211_channel *chan, uint16_t modesIndex, uint16_t *rfXpdGain) argument
328 ar2133SetPowerTable(struct ath_hal *ah, int16_t *pPowerMin, int16_t *pPowerMax, const struct ieee80211_channel *chan, uint16_t *rfXpdGain) argument
363 ar2133GetChannelMaxMinPower(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *maxPow, int16_t *minPow) argument
436 ar2133GetNoiseFloor(struct ath_hal *ah, int16_t nfarray[]) argument
505 ar2133GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c) argument
514 ar2133RfDetach(struct ath_hal *ah) argument
528 ar2133RfAttach(struct ath_hal *ah, HAL_STATUS *status) argument
582 ar2133Probe(struct ath_hal *ah) argument
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5312/
H A Dar5312_gpio.c23 #include "ah.h"
38 ar5312GpioCfgOutput(struct ath_hal *ah, uint32_t gpio, HAL_GPIO_MUX_TYPE type) argument
40 uint32_t gpioOffset = (AR5312_GPIO_BASE - ((uint32_t) ah->ah_sh));
44 OS_REG_WRITE(ah, gpioOffset+AR5312_GPIOCR,
45 (OS_REG_READ(ah, gpioOffset+AR5312_GPIOCR) &~ AR_GPIOCR_CR_A(gpio))
55 ar5312GpioCfgInput(struct ath_hal *ah, uint32_t gpio) argument
57 uint32_t gpioOffset = (AR5312_GPIO_BASE - ((uint32_t) ah->ah_sh));
61 OS_REG_WRITE(ah, gpioOffset+AR5312_GPIOCR,
62 (OS_REG_READ(ah, gpioOffset+AR5312_GPIOCR) &~ AR_GPIOCR_CR_A(gpio))
72 ar5312GpioSet(struct ath_hal *ah, uint32_ argument
91 ar5312GpioGet(struct ath_hal *ah, uint32_t gpio) argument
108 ar5312GpioSetIntr(struct ath_hal *ah, u_int gpio, uint32_t ilevel) argument
[all...]
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_xmit.c19 #include "ah.h"
40 ar9300_update_tx_trig_level(struct ath_hal *ah, HAL_BOOL b_inc_trig_level) argument
42 struct ath_hal_9300 *ahp = AH9300(ah);
46 if (AH9300(ah)->ah_tx_trig_level >= MAX_TX_FIFO_THRESHOLD &&
55 omask = ar9300_set_interrupts(ah, ahp->ah_mask_reg &~ HAL_INT_GLOBAL, 0);
57 txcfg = OS_REG_READ(ah, AR_TXCFG);
71 OS_REG_WRITE(ah,
76 ar9300_set_interrupts(ah, omask, 0);
78 AH9300(ah)->ah_tx_trig_level = new_level;
87 ar9300_get_tx_trig_level(struct ath_hal *ah) argument
97 ar9300_set_tx_queue_props(struct ath_hal *ah, int q, const HAL_TXQ_INFO *q_info) argument
113 ar9300_get_tx_queue_props(struct ath_hal *ah, int q, HAL_TXQ_INFO *q_info) argument
137 ar9300_setup_tx_queue(struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *q_info) argument
222 set_tx_q_interrupts(struct ath_hal *ah, HAL_TX_QUEUE_INFO *qi) argument
248 ar9300_release_tx_queue(struct ath_hal *ah, u_int q) argument
283 ar9300_reset_tx_queue(struct ath_hal *ah, u_int q) argument
536 ar9300_get_tx_dp(struct ath_hal *ah, u_int q) argument
546 ar9300_set_tx_dp(struct ath_hal *ah, u_int q, u_int32_t txdp) argument
561 ar9300_start_tx_dma(struct ath_hal *ah, u_int q) argument
571 ar9300_num_tx_pending(struct ath_hal *ah, u_int q) argument
607 ar9300_stop_tx_dma(struct ath_hal *ah, u_int q, u_int timeout) argument
727 ar9300_stop_tx_dma_indv_que(struct ath_hal *ah, u_int q, u_int timeout) argument
834 ar9300_abort_tx_dma(struct ath_hal *ah) argument
956 ar9300_get_tx_intr_queue(struct ath_hal *ah, u_int32_t *txqs) argument
968 ar9300_reset_tx_status_ring(struct ath_hal *ah) argument
985 ar9300_setup_tx_status_ring(struct ath_hal *ah, void *ts_start, u_int32_t ts_paddr_start, u_int16_t size) argument
[all...]
H A Dar9300_keycache.c19 #include "ah.h"
33 #define IS_MIC_ENABLED(ah) \
34 (AH9300(ah)->ah_sta_id1_defaults & AR_STA_ID1_CRPT_MIC_ENABLE)
53 ar9300_get_key_cache_size(struct ath_hal *ah) argument
55 return AH_PRIVATE(ah)->ah_caps.halKeyCacheSize;
62 ar9300_is_key_cache_entry_valid(struct ath_hal *ah, u_int16_t entry) argument
64 if (entry < AH_PRIVATE(ah)->ah_caps.halKeyCacheSize) {
65 u_int32_t val = OS_REG_READ(ah, AR_KEYTABLE_MAC1(entry));
77 ar9300_reset_key_cache_entry(struct ath_hal *ah, u_int16_t entry) argument
80 struct ath_hal_9300 *ahp = AH9300(ah);
139 ar9300_set_key_cache_entry_mac( struct ath_hal *ah, u_int16_t entry, const u_int8_t *mac) argument
189 ar9300_set_key_cache_entry(struct ath_hal *ah, u_int16_t entry, const HAL_KEYVAL *k, const u_int8_t *mac, int xor_key) argument
414 ar9300_enable_keysearch_always(struct ath_hal *ah, int enable) argument
429 ar9300_dump_keycache(struct ath_hal *ah, int n, u_int32_t *entry) argument
446 ar9300_check_key_cache_entry(struct ath_hal *ah, u_int16_t entry, const HAL_KEYVAL *k, int xorKey) argument
[all...]
H A Dar9300_radio.c19 #include "ah.h"
82 ar9300_set_channel(struct ath_hal *ah, struct ieee80211_channel *chan) argument
86 u_int8_t clk_25mhz = AH9300(ah)->clk_25mhz;
90 HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan);
98 OS_MARK(ah, AH_MARK_SETCHANNEL, ichan->channel);
101 ar9300_get_channel_centers(ah, chan, &centers);
107 if (AR_SREV_HORNET(ah)) {
110 ieee80211_mhz2ieee(ah, chan->ic_freq, chan->ic_flags);
132 i = ath_hal_mhz2ieee_2ghz(ah, freq);
139 } else if (AR_SREV_POSEIDON(ah) || AR_SREV_APHRODIT
259 ar9300_get_chip_power_limits(struct ath_hal *ah, struct ieee80211_channel *chan) argument
270 ar9300_rf_attach(struct ath_hal *ah, HAL_STATUS *status) argument
[all...]
H A Dar9300.h141 HAL_BOOL (*get_chip_power_lim)(struct ath_hal *ah,
206 #define DO_ANI(ah) \
207 ((AH9300(ah)->ah_proc_phy_err & HAL_PROCESS_ANI))
907 #define IS_9300_EMU(ah) \
908 (AH_PRIVATE(ah)->ah_devid == AR9300_DEVID_EMU_PCIE)
932 OS_REG_WRITE(ah, INI_RA((iniarray), (r), 0), INI_RA((iniarray), r, (column)));\
949 #define ar9300FeatureNotSupported(feature, ah, func) \
950 ath_hal_printf(ah, # feature \
954 #define ar9300FeatureNotSupported(feature, ah, func) \
955 ath_hal_printf(ah, # featur
[all...]
/freebsd-11-stable/sys/dev/ath/
H A Dah_osdep.c49 #include <dev/ath/ath_hal/ah.h>
60 #define BUSTAG(ah) \
61 ((bus_space_tag_t) ((struct ar531x_config *)((ah)->ah_st))->tag)
63 #define BUSTAG(ah) ((ah)->ah_st)
89 extern void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...);
118 ath_hal_vprintf(struct ath_hal *ah, const char* fmt, va_list ap) argument
124 ath_hal_printf(struct ath_hal *ah, const char* fmt, ...) argument
128 ath_hal_vprintf(ah, fmt, ap);
146 ath_hal_reg_whilst_asleep(struct ath_hal *ah, uint32_ argument
159 DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) argument
244 ath_hal_alq_get(struct ath_hal *ah) argument
268 ath_hal_reg_write(struct ath_hal *ah, u_int32_t reg, u_int32_t val) argument
302 ath_hal_reg_read(struct ath_hal *ah, u_int32_t reg) argument
338 OS_MARK(struct ath_hal *ah, u_int id, u_int32_t v) argument
366 ath_hal_reg_write(struct ath_hal *ah, u_int32_t reg, u_int32_t val) argument
389 ath_hal_reg_read(struct ath_hal *ah, u_int32_t reg) argument
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar9002/
H A Dar9280_olc.c29 #include "ah.h"
42 ar9280olcInit(struct ath_hal *ah) argument
47 if (! ath_hal_eepromGetFlag(ah, AR_EEP_OL_PWRCTRL))
50 HALDEBUG(ah, HAL_DEBUG_RESET, "%s: Setting up TX gain tables.\n", __func__);
53 AH9280(ah)->originalGain[i] = MS(OS_REG_READ(ah,
56 AH9280(ah)->PDADCdelta = 0;
60 ar9280olcGetTxGainIndex(struct ath_hal *ah, argument
70 ar5416GetChannelCenters(ah, chan, &centers);
87 while (pcdac > AH9280(ah)
100 ar9280olcGetPDADCs(struct ath_hal *ah, uint32_t initTxGain, int txPower, uint8_t *pPDADCValues) argument
129 ar9280olcTemperatureCompensation(struct ath_hal *ah) argument
174 ar9280ChangeGainBoundarySettings(struct ath_hal *ah, uint16_t *gb, uint16_t numXpdGain, uint16_t pdGainOverlap_t2, int8_t pwr_table_offset, int16_t *diff) argument
212 ar9280AdjustPDADCValues(struct ath_hal *ah, int8_t pwr_table_offset, int16_t diff, uint8_t *pdadcValues) argument
243 ar9280SetGainBoundariesOpenLoop(struct ath_hal *ah, int i, uint16_t pdGainOverlap_t2, uint16_t gainBoundaries[]) argument
282 ar9280SetPowerCalTable(struct ath_hal *ah, struct ar5416eeprom *pEepData, const struct ieee80211_channel *chan, int16_t *pTxPowerIndexOffset) argument
[all...]
H A Dar9285_diversity.c30 #include "ah.h"
62 ar9285SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings) argument
65 const HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom;
70 HALDEBUG(ah, HAL_DEBUG_DIVERSITY, "%s: not supported\n",
76 AH5212(ah)->ah_antControl = settings;
77 AH5212(ah)->ah_diversity = (settings == HAL_ANT_VARIABLE);
86 regVal = OS_REG_READ(ah, AR_PHY_MULTICHAIN_GAIN_CTL);
94 HALDEBUG(ah, HAL_DEBUG_DIVERSITY, "%s: HAL_ANT_VARIABLE\n",
103 HALDEBUG(ah, HAL_DEBUG_DIVERSITY, "%s: HAL_ANT_FIXED_A\n",
112 HALDEBUG(ah, HAL_DEBUG_DIVERSIT
[all...]
H A Dar9280_attach.c21 #include "ah.h"
64 static void ar9280ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore,
66 static void ar9280DisablePCIE(struct ath_hal *ah);
67 static HAL_BOOL ar9280FillCapabilityInfo(struct ath_hal *ah);
68 static void ar9280WriteIni(struct ath_hal *ah,
72 ar9280AniSetup(struct ath_hal *ah) argument
98 AH5416(ah)->ah_ani_function &= ~(1 << HAL_ANI_NOISE_IMMUNITY_LEVEL);
101 ar5416AniAttach(ah, &aniparams, &aniparams, AH_TRUE);
105 ar9280InitPLL(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
109 if (AR_SREV_MERLIN_20(ah)
156 struct ath_hal *ah; local
426 ar9280ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore, HAL_BOOL power_off) argument
488 ar9280DisablePCIE(struct ath_hal *ah) argument
493 ar9280WriteIni(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
573 ar9280SpurMitigate(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
876 ar9280FillCapabilityInfo(struct ath_hal *ah) argument
928 ar9280SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings) argument
[all...]
H A Dar9287.c24 #include "ah.h"
39 #define AR9287(ah) ((struct ar9287State *) AH5212(ah)->ah_rfHal)
43 int16_t ar9287GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c);
46 ar9287WriteRegs(struct ath_hal *ah, u_int modesIndex, u_int freqIndex, argument
49 (void) ath_hal_ini_write(ah, &AH5416(ah)->ah_ini_bb_rfgain,
73 ar9287SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
80 OS_MARK(ah, AH_MARK_SETCHANNEL, chan->ic_freq);
82 ar5416GetChannelCenters(ah, cha
162 ar9287GetRfBank(struct ath_hal *ah, int bank) argument
174 ar9287SetRfRegs(struct ath_hal *ah, const struct ieee80211_channel *chan, uint16_t modesIndex, uint16_t *rfXpdGain) argument
187 ar9287SetPowerTable(struct ath_hal *ah, int16_t *pPowerMin, int16_t *pPowerMax, const struct ieee80211_channel *chan, uint16_t *rfXpdGain) argument
222 ar9287GetChannelMaxMinPower(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *maxPow, int16_t *minPow) argument
295 ar9287GetNoiseFloor(struct ath_hal *ah, int16_t nfarray[]) argument
338 ar9287GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c) argument
347 ar9287RfDetach(struct ath_hal *ah) argument
357 ar9287RfAttach(struct ath_hal *ah, HAL_STATUS *status) argument
395 ar9287RfProbe(struct ath_hal *ah) argument
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_ah.c31 struct mlx5_ib_ah *ah,
36 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16);
37 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label |
40 ah->av.hop_limit = ah_attr->grh.hop_limit;
41 ah->av.tclass = ah_attr->grh.traffic_class;
44 ah->av.stat_rate_sl = (ah_attr->static_rate << 4);
47 memcpy(ah->av.rmac, ah_attr->dmac, sizeof(ah_attr->dmac));
48 ah->av.udp_sport =
52 ah->av.stat_rate_sl |= (ah_attr->sl & 0x7) << 1;
54 ah
30 create_ib_ah(struct mlx5_ib_dev *dev, struct mlx5_ib_ah *ah, struct ib_ah_attr *ah_attr, enum rdma_link_layer ll) argument
66 struct mlx5_ib_ah *ah; local
105 struct mlx5_ib_ah *ah = to_mah(ibah); local
126 mlx5_ib_destroy_ah(struct ib_ah *ah) argument
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_reset.c21 #include "ah.h"
46 HAL_BOOL ar5212SetTransmitPower(struct ath_hal *ah,
72 write_common(struct ath_hal *ah, const HAL_INI_ARRAY *ia, argument
87 OS_REG_WRITE(ah, reg, V(r, 1));
117 ar5212Reset(struct ath_hal *ah, HAL_OPMODE opmode, argument
125 struct ath_hal_5212 *ahp = AH5212(ah);
141 HALASSERT(ah->ah_magic == AR5212_MAGIC);
142 ee = AH_PRIVATE(ah)->ah_eeprom;
144 OS_MARK(ah, AH_MARK_RESET, bChannelChange);
147 if (!ar5212SetPowerMode(ah, HAL_PM_AWAK
712 ar5212SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
729 ar5212ChannelChange(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
802 ar5212SetOperatingMode(struct ath_hal *ah, int opmode) argument
833 ar5212PhyDisable(struct ath_hal *ah) argument
842 ar5212Disable(struct ath_hal *ah) argument
861 ar5212ChipReset(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
972 ar5212PerCalibrationN(struct ath_hal *ah, struct ieee80211_channel *chan, u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone) argument
1102 ar5212PerCalibration(struct ath_hal *ah, struct ieee80211_channel *chan, HAL_BOOL *isIQdone) argument
1109 ar5212ResetCalValid(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1131 ar5212MacStop(struct ath_hal *ah) argument
1198 ar5212SetResetReg(struct ath_hal *ah, uint32_t resetMask) argument
1301 ar5212GetNoiseFloor(struct ath_hal *ah) argument
1310 getNoiseFloorThresh(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *nft) argument
1341 ar5212InitNfCalHistBuffer(struct ath_hal *ah) argument
1391 ar5212GetNf(struct ath_hal *ah, struct ieee80211_channel *chan) argument
1481 ar5212SetCompRegs(struct ath_hal *ah) argument
1510 ar5212SetAntennaSwitchInternal(struct ath_hal *ah, HAL_ANT_SETTING settings, const struct ieee80211_channel *chan) argument
1597 ar5212IsSpurChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1612 ar5212SetBoardValues(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1750 ar5212SetSpurMitigation(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1930 ar5212SetDeltaSlope(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1988 ar5212SetTxPowerLimit(struct ath_hal *ah, uint32_t limit) argument
2005 ar5212SetTransmitPower(struct ath_hal *ah, const struct ieee80211_channel *chan, uint16_t *rfXpdGain) argument
2134 ar5212SetRateTable(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t tpcScaleReduction, int16_t powerLimit, HAL_BOOL commit, int16_t *pMinPower, int16_t *pMaxPower) argument
2352 ar5212GetChipPowerLimits(struct ath_hal *ah, struct ieee80211_channel *chan) argument
2417 ar5212CorrectGainDelta(struct ath_hal *ah, int twiceOfdmCckDelta) argument
2568 ar5212GetTargetPowers(struct ath_hal *ah, const struct ieee80211_channel *chan, const TRGT_POWER_INFO *powInfo, uint16_t numChannels, TRGT_POWER_INFO *pNewPower) argument
2717 ar5212SetRateDurationTable(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
2770 ar5212SetIFSTiming(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
[all...]
H A Dar5212_beacon.c21 #include "ah.h"
32 ar5212GetNextTBTT(struct ath_hal *ah) argument
35 return TU_TO_TSF(OS_REG_READ(ah, AR_TIMER0));
45 ar5212SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) argument
47 struct ath_hal_5212 *ahp = AH5212(ah);
57 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt & 0xffff);
58 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba & 0x7ffff);
59 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba & 0x1ffffff);
61 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim & 0xffff);
75 OS_REG_WRITE(ah, AR_BEACO
88 ar5212BeaconInit(struct ath_hal *ah, uint32_t next_beacon, uint32_t beacon_period) argument
127 ar5212ResetStaBeaconTimers(struct ath_hal *ah) argument
146 ar5212SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) argument
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_keycache.c21 #include "ah.h"
38 ar5211GetKeyCacheSize(struct ath_hal *ah) argument
47 ar5211IsKeyCacheEntryValid(struct ath_hal *ah, uint16_t entry) argument
50 uint32_t val = OS_REG_READ(ah, AR_KEYTABLE_MAC1(entry));
61 ar5211ResetKeyCacheEntry(struct ath_hal *ah, uint16_t entry) argument
64 OS_REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), 0);
65 OS_REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), 0);
66 OS_REG_WRITE(ah, AR_KEYTABLE_KEY2(entry), 0);
67 OS_REG_WRITE(ah, AR_KEYTABLE_KEY3(entry), 0);
68 OS_REG_WRITE(ah, AR_KEYTABLE_KEY
81 ar5211SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
115 ar5211SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
H A Dar5211_reset.c25 #include "ah.h"
107 static HAL_BOOL ar5211SetResetReg(struct ath_hal *ah, uint32_t resetMask);
155 ar5211Reset(struct ath_hal *ah, HAL_OPMODE opmode, argument
163 struct ath_hal_5211 *ahp = AH5211(ah);
176 HALDEBUG(ah, HAL_DEBUG_RESET,
181 OS_MARK(ah, AH_MARK_RESET, bChannelChange);
185 ichan = ath_hal_checkchannel(ah, chan);
195 HALDEBUG(ah, HAL_DEBUG_ANY,
200 HALASSERT(AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER3);
219 saveTsfLow = OS_REG_READ(ah, AR_TSF_L3
561 ar5211PhyDisable(struct ath_hal *ah) argument
570 ar5211Disable(struct ath_hal *ah) argument
594 ar5211ChipReset(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
641 ar5211PerCalibrationN(struct ath_hal *ah, struct ieee80211_channel *chan, u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone) argument
734 ar5211PerCalibration(struct ath_hal *ah, struct ieee80211_channel *chan, HAL_BOOL *isIQdone) argument
741 ar5211ResetCalValid(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
751 ar5211SetResetReg(struct ath_hal *ah, uint32_t resetMask) argument
785 ar5211SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
823 ar5211GetNoiseFloor(struct ath_hal *ah) argument
840 ar5211RunNoiseFloor(struct ath_hal *ah, uint8_t runTime, int16_t startingNF) argument
892 getNoiseFloorThresh(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *nft) argument
921 ar5211IsNfGood(struct ath_hal *ah, struct ieee80211_channel *chan) argument
958 ar5211CalNoiseFloor(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1001 ar5211GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c) argument
1033 ar5211SetRf6and7(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1139 ar5211SetAntennaSwitchInternal(struct ath_hal *ah, HAL_ANT_SETTING settings, const struct ieee80211_channel *chan) argument
1203 ar5211SetBoardValues(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1300 ar5211SetTxPowerLimit(struct ath_hal *ah, uint32_t limit) argument
1313 ar5211SetTransmitPower(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
1374 ar5211SetPowerTable(struct ath_hal *ah, PCDACS_EEPROM *pSrcStruct, uint16_t channel) argument
1493 ar5211SetRateTable(struct ath_hal *ah, RD_EDGES_POWER *pRdEdgesPower, TRGT_POWER_INFO *pPowerInfo, uint16_t numChannels, const struct ieee80211_channel *chan) argument
1909 ar5211InitializeGainValues(struct ath_hal *ah) argument
1923 ar5211InvalidGainReadback(struct ath_hal *ah, GAIN_VALUES *gv) argument
1957 ar5211RequestRfgain(struct ath_hal *ah) argument
1974 ar5211GetRfgain(struct ath_hal *ah) argument
2013 ar5211IsGainAdjustNeeded(struct ath_hal *ah, const GAIN_VALUES *gv) argument
2022 ar5211AdjustGain(struct ath_hal *ah, GAIN_VALUES *gv) argument
2075 ar5211SetRfgain(struct ath_hal *ah, const GAIN_VALUES *gv) argument
2088 ar5211SetOperatingMode(struct ath_hal *ah, int opmode) argument
2117 ar5211SetPCUConfig(struct ath_hal *ah) argument
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_attach.c21 #include "ah.h"
33 static HAL_BOOL ar5210GetChipPowerLimits(struct ath_hal *ah,
36 static void ar5210ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore,
38 static void ar5210DisablePCIE(struct ath_hal *ah);
179 static HAL_BOOL ar5210FillCapabilityInfo(struct ath_hal *ah);
190 struct ath_hal *ah; local
208 ah = &ahp->ah_priv.h;
211 ah->ah_sc = sc;
212 ah->ah_st = st;
213 ah
300 ar5210Detach(struct ath_hal *ah) argument
315 ar5210GetChannelEdges(struct ath_hal *ah, uint16_t flags, uint16_t *low, uint16_t *high) argument
328 ar5210GetChipPowerLimits(struct ath_hal *ah, struct ieee80211_channel *chan) argument
340 ar5210ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore, HAL_BOOL power_off) argument
345 ar5210DisablePCIE(struct ath_hal *ah) argument
353 ar5210FillCapabilityInfo(struct ath_hal *ah) argument
[all...]
H A Dar5210_recv.c21 #include "ah.h"
33 ar5210GetRxDP(struct ath_hal *ah, HAL_RX_QUEUE qtype) argument
37 return OS_REG_READ(ah, AR_RXDP);
44 ar5210SetRxDP(struct ath_hal *ah, uint32_t rxdp, HAL_RX_QUEUE qtype) argument
48 OS_REG_WRITE(ah, AR_RXDP, rxdp);
56 ar5210EnableReceive(struct ath_hal *ah) argument
58 OS_REG_WRITE(ah, AR_CR, AR_CR_RXE);
65 ar5210StopDmaReceive(struct ath_hal *ah) argument
69 OS_REG_WRITE(ah, AR_CR, AR_CR_RXD); /* Set receive disable bit */
71 if ((OS_REG_READ(ah, AR_C
87 ar5210StartPcuReceive(struct ath_hal *ah) argument
97 ar5210StopPcuReceive(struct ath_hal *ah) argument
108 ar5210SetMulticastFilter(struct ath_hal *ah, uint32_t filter0, uint32_t filter1) argument
118 ar5210ClrMulticastFilterIndex(struct ath_hal *ah, uint32_t ix) argument
138 ar5210SetMulticastFilterIndex(struct ath_hal *ah, uint32_t ix) argument
158 ar5210GetRxFilter(struct ath_hal *ah) argument
168 ar5210SetRxFilter(struct ath_hal *ah, uint32_t bits) argument
183 ar5210SetupRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t size, u_int flags) argument
213 ar5210ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t pa, struct ath_desc *nds, uint64_t tsf, struct ath_rx_status *rs) argument
[all...]

Completed in 140 milliseconds

1234567891011>>