/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_freebsd.h | 4 extern void ar9300_attach_freebsd_ops(struct ath_hal *ah); 5 extern HAL_BOOL ar9300_reset_freebsd(struct ath_hal *ah, HAL_OPMODE opmode, 11 extern HAL_BOOL ar9300_stop_tx_dma_freebsd(struct ath_hal *ah, u_int q); 12 extern void ar9300_ani_poll_freebsd(struct ath_hal *ah, 14 extern void ar9300_config_defaults_freebsd(struct ath_hal *ah, 16 extern HAL_BOOL ar9300_stop_dma_receive_freebsd(struct ath_hal *ah); 17 extern HAL_BOOL ar9300_get_pending_interrupts_freebsd(struct ath_hal *ah, 19 extern HAL_INT ar9300_set_interrupts_freebsd(struct ath_hal *ah, 21 extern HAL_BOOL ar9300_per_calibration_freebsd(struct ath_hal *ah, 24 extern HAL_BOOL ar9300_reset_cal_valid_freebsd(struct ath_hal *ah, [all...] |
H A D | ar9300_timer.c | 19 #include "ah.h" 61 ar9300_alloc_generic_timer(struct ath_hal *ah, HAL_GEN_TIMER_DOMAIN tsf) argument 63 struct ath_hal_9300 *ahp = AH9300(ah); 84 ar9300_start_tsf2(ah); 92 void ar9300_start_tsf2(struct ath_hal *ah) argument 94 struct ath_hal_9300 *ahp = AH9300(ah); 98 OS_REG_SET_BIT(ah, AR_DIRECT_CONNECT, AR_DC_AP_STA_EN); 99 OS_REG_SET_BIT(ah, AR_RESET_TSF, AR_RESET_TSF2_ONCE); 104 ar9300_free_generic_timer(struct ath_hal *ah, int index) argument 106 struct ath_hal_9300 *ahp = AH9300(ah); 113 ar9300_start_generic_timer( struct ath_hal *ah, int index, u_int32_t timer_next, u_int32_t timer_period) argument 153 ar9300_stop_generic_timer(struct ath_hal *ah, int index) argument 173 ar9300_get_gen_timer_interrupts( struct ath_hal *ah, u_int32_t *trigger, u_int32_t *thresh) argument [all...] |
H A D | ar9300_attach.c | 19 #include "ah.h" 55 static HAL_BOOL ar9300_get_chip_power_limits(struct ath_hal *ah, 58 static inline HAL_STATUS ar9300_init_mac_addr(struct ath_hal *ah); 59 static inline HAL_STATUS ar9300_hw_attach(struct ath_hal *ah); 60 static inline void ar9300_hw_detach(struct ath_hal *ah); 61 static int16_t ar9300_get_nf_adjust(struct ath_hal *ah, 64 int ar9300_get_cal_intervals(struct ath_hal *ah, HAL_CALIBRATION_TIMER **timerp, 69 unsigned long ar9300_get_pll3_sqsum_dvc(struct ath_hal *ah); 71 static int ar9300_init_offsets(struct ath_hal *ah, u_int16_t devid); 75 ar9300_disable_pcie_phy(struct ath_hal *ah); 99 ar9300_start_pcie_error_monitor(struct ath_hal *ah, int b_auto_stop) argument 137 ar9300_read_pcie_error_monitor(struct ath_hal *ah, void* p_read_counters) argument 157 ar9300_stop_pcie_error_monitor(struct ath_hal *ah) argument 558 ar9300_read_revisions(struct ath_hal *ah) argument 639 struct ath_hal *ah; local 2475 ar9300_detach(struct ath_hal *ah) argument 2509 struct ath_hal *ah; local 2609 ar9300_chip_test(struct ath_hal *ah) argument 2658 ar9300_get_channel_edges(struct ath_hal *ah, u_int16_t flags, u_int16_t *low, u_int16_t *high) argument 2679 ar9300_regulatory_domain_override(struct ath_hal *ah, u_int16_t regdmn) argument 2691 ar9300_fill_capability_info(struct ath_hal *ah) argument 3103 ar9300_get_chip_power_limits(struct ath_hal *ah, struct ieee80211_channel *chan) argument 3123 ar9300_config_pci_power_save(struct ath_hal *ah, int restore, int power_off) argument 3193 ar9300_disable_pcie_phy(struct ath_hal *ah) argument 3199 ar9300_init_mac_addr(struct ath_hal *ah) argument 3228 ar9300_hw_attach(struct ath_hal *ah) argument 3258 ar9300_hw_detach(struct ath_hal *ah) argument 3265 ar9300_get_nf_adjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c) argument 3271 ar9300_set_immunity(struct ath_hal *ah, HAL_BOOL enable) argument 3376 ar9300_get_pll3_sqsum_dvc(struct ath_hal *ah) argument 3401 ar9300_rf_gain_cap_apply(struct ath_hal *ah, int is_2GHz) argument 3518 ar9300_rx_gain_table_apply(struct ath_hal *ah) argument 3732 ar9300_tx_gain_table_apply(struct ath_hal *ah) argument 4036 ar9300_ant_div_comb_get_config(struct ath_hal *ah, HAL_ANT_COMB_CONFIG *div_comb_conf) argument 4061 ar9300_ant_div_comb_set_config(struct ath_hal *ah, HAL_ANT_COMB_CONFIG *div_comb_conf) argument 4099 ar9300_init_hostif_offsets(struct ath_hal *ah) argument 4214 ar9340_init_hostif_offsets(struct ath_hal *ah) argument 4302 ar9300_init_offsets(struct ath_hal *ah, u_int16_t devid) argument [all...] |
H A D | ar9300_xmit_ds.c | 19 #include "ah.h" 34 ar9300_tx_req_intr_desc(struct ath_hal *ah, void *ds) argument 36 HALDEBUG(ah, HAL_DEBUG_INTERRUPT, 59 struct ath_hal *ah, 74 desclen = (AR_SREV_JUPITER(ah) || AR_SREV_APHRODITE(ah)) ? 0x18 : 0x17; 136 ar9300_set_desc_link(struct ath_hal *ah, void *ds, u_int32_t link) argument 151 ar9300_get_desc_link_ptr(struct ath_hal *ah, void *ds, u_int32_t **link) argument 159 ar9300_clear_tx_desc_status(struct ath_hal *ah, void *ds) argument 170 ar9300_clear_dest_mask(struct ath_hal *ah, voi argument 58 ar9300_fill_tx_desc( struct ath_hal *ah, void *ds, HAL_DMA_ADDR *buf_addr, u_int32_t *seg_len, u_int desc_id, u_int qcu, HAL_KEY_TYPE key_type, HAL_BOOL first_seg, HAL_BOOL last_seg, const void *ds0) argument 202 ar9300_get_tx_rate_code(struct ath_hal *ah, void *ds, struct ath_tx_status *ts) argument 228 ar9300_get_raw_tx_desc(struct ath_hal *ah, u_int32_t *txstatus) argument 242 ar9300_proc_tx_desc(struct ath_hal *ah, void *txstatus) argument 371 ar9300_calc_tx_airtime(struct ath_hal *ah, void *ds, struct ath_tx_status *ts, HAL_BOOL comp_wastedt, u_int8_t nbad, u_int8_t nframes ) argument 438 ar9300__cont_tx_mode(struct ath_hal *ah, void *ds, int mode) argument 563 ar9300_set_paprd_tx_desc(struct ath_hal *ah, void *ds, int chain_num) argument 570 ar9300_is_tx_done(struct ath_hal *ah) argument 584 ar9300_set_11n_tx_desc( struct ath_hal *ah, void *ds, u_int pkt_len, HAL_PKT_TYPE type, u_int tx_power, u_int key_ix, HAL_KEY_TYPE key_type, u_int flags) argument 637 ar9300_set_rx_chainmask(struct ath_hal *ah, int rxchainmask) argument 642 ar9300_update_loc_ctl_reg(struct ath_hal *ah, int pos_bit) argument 692 ar9300_set_11n_rate_scenario( struct ath_hal *ah, void *ds, void *lastds, u_int dur_update_en, u_int rts_cts_rate, u_int rts_cts_duration, HAL_11N_RATE_SERIES series[], u_int nseries, u_int flags, u_int32_t smart_antenna) argument 846 ar9300_set_11n_aggr_first(struct ath_hal *ah, struct ath_desc *ds, u_int aggr_len, u_int num_delims) argument 861 ar9300_set_11n_aggr_middle(struct ath_hal *ah, struct ath_desc *ds, u_int num_delims) argument 880 ar9300_set_11n_aggr_last(struct ath_hal *ah, struct ath_desc *ds) argument 890 ar9300_clr_11n_aggr(struct ath_hal *ah, struct ath_desc *ds) argument 898 ar9300_set_11n_burst_duration(struct ath_hal *ah, struct ath_desc *ds, u_int burst_duration) argument 908 ar9300_set_11n_rifs_burst_middle(struct ath_hal *ah, void *ds) argument 916 ar9300_set_11n_rifs_burst_last(struct ath_hal *ah, void *ds) argument 924 ar9300_clr_11n_rifs_burst(struct ath_hal *ah, void *ds) argument 932 ar9300_set_11n_aggr_rifs_burst(struct ath_hal *ah, void *ds) argument 941 ar9300_set_11n_virtual_more_frag(struct ath_hal *ah, struct ath_desc *ds, u_int vmf) argument 954 ar9300_get_desc_info(struct ath_hal *ah, HAL_DESC_INFO *desc_info) argument [all...] |
H A D | ar9300desc.h | 422 #define TXCTL_OFFSET(ah) 11 423 #define TXCTL_NUMWORDS(ah) 12 424 #define TXSTATUS_OFFSET(ah) 2 425 #define TXSTATUS_NUMWORDS(ah) 7 427 #define RXCTL_OFFSET(ah) 0 428 #define RXCTL_NUMWORDS(ah) 0 429 #define RXSTATUS_OFFSET(ah) 1 430 #define RXSTATUS_NUMWORDS(ah) 11 495 extern HAL_BOOL ar9300_set_tx_queue_props(struct ath_hal *ah, int q, 497 extern HAL_BOOL ar9300_get_tx_queue_props(struct ath_hal *ah, in [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_xmit.c | 21 #include "ah.h" 38 ar5211UpdateTxTrigLevel(struct ath_hal *ah, HAL_BOOL bIncTrigLevel) argument 41 HAL_INT ints = ar5211GetInterrupts(ah); 47 ar5211SetInterrupts(ah, ints &~ HAL_INT_GLOBAL); 48 txcfg = OS_REG_READ(ah, AR_TXCFG); 62 ar5211SetInterrupts(ah, ints); 67 OS_REG_WRITE(ah, AR_TXCFG, (txcfg &~ AR_TXCFG_FTRIG_M) | 70 ar5211SetInterrupts(ah, ints); 80 ar5211SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo) argument 82 struct ath_hal_5211 *ahp = AH5211(ah); 96 ar5211GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo) argument 112 ar5211SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *qInfo) argument 169 setTxQInterrupts(struct ath_hal *ah, HAL_TX_QUEUE_INFO *qi) argument 199 ar5211ReleaseTxQueue(struct ath_hal *ah, u_int q) argument 233 ar5211ResetTxQueue(struct ath_hal *ah, u_int q) argument 403 ar5211GetTxDP(struct ath_hal *ah, u_int q) argument 413 ar5211SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp) argument 433 ar5211StartTxDma(struct ath_hal *ah, u_int q) argument 454 ar5211NumTxPending(struct ath_hal *ah, u_int q) argument 476 ar5211StopTxDma(struct ath_hal *ah, u_int q) argument 510 ar5211SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower, u_int txRate0, u_int txTries0, u_int keyIx, u_int antMode, u_int flags, u_int rtsctsRate, u_int rtsctsDuration, u_int compicvLen, u_int compivLen, u_int comp) argument 558 ar5211SetupXTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int txRate1, u_int txTries1, u_int txRate2, u_int txTries2, u_int txRate3, u_int txTries3) argument 571 ar5211IntrReqTxDesc(struct ath_hal *ah, struct ath_desc *ds) argument 579 ar5211FillTxDesc(struct ath_hal *ah, struct ath_desc *ds, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int qcuId, u_int descId, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0) argument 620 ar5211ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument 664 ar5211GetTxIntrQueue(struct ath_hal *ah, uint32_t *txqs) argument 673 ar5211GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) argument 680 ar5211SetTxDescLink(struct ath_hal *ah, void *ds, uint32_t link) argument 688 ar5211GetTxDescLink(struct ath_hal *ah, void *ds, uint32_t *link) argument 696 ar5211GetTxDescLinkPtr(struct ath_hal *ah, void *ds, uint32_t **linkptr) argument [all...] |
/freebsd-11-stable/sys/dev/mthca/ |
H A D | mthca_av.c | 156 struct mthca_ah *ah) 161 ah->type = MTHCA_AH_PCI_POOL; 164 ah->av = kmalloc(sizeof *ah->av, GFP_ATOMIC); 165 if (!ah->av) 168 ah->type = MTHCA_AH_KMALLOC; 169 av = ah->av; 182 ah->type = MTHCA_AH_ON_HCA; 183 ah->avdma = dev->av_table.ddr_av_base + 188 if (ah 153 mthca_create_ah(struct mthca_dev *dev, struct mthca_pd *pd, struct ib_ah_attr *ah_attr, struct mthca_ah *ah) argument 240 mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah) argument 261 mthca_ah_grh_present(struct mthca_ah *ah) argument 266 mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah, struct ib_ud_header *header) argument 294 struct mthca_ah *ah = to_mah(ibah); local [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_keycache.c | 21 #include "ah.h" 34 ar5210GetKeyCacheSize(struct ath_hal *ah) argument 43 ar5210IsKeyCacheEntryValid(struct ath_hal *ah, uint16_t entry) argument 46 uint32_t val = OS_REG_READ(ah, AR_KEYTABLE_MAC1(entry)); 57 ar5210ResetKeyCacheEntry(struct ath_hal *ah, uint16_t entry) argument 60 OS_REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), 0); 61 OS_REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), 0); 62 OS_REG_WRITE(ah, AR_KEYTABLE_KEY2(entry), 0); 63 OS_REG_WRITE(ah, AR_KEYTABLE_KEY3(entry), 0); 64 OS_REG_WRITE(ah, AR_KEYTABLE_KEY 77 ar5210SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument 109 ar5210SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument [all...] |
H A D | ar5210_xmit.c | 21 #include "ah.h" 36 ar5210SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo) argument 38 struct ath_hal_5210 *ahp = AH5210(ah); 41 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: invalid queue num %u\n", 45 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], qInfo); 52 ar5210GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo) argument 54 struct ath_hal_5210 *ahp = AH5210(ah); 57 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: invalid queue num %u\n", 61 return ath_hal_getTxQProps(ah, qInfo, &ahp->ah_txq[q]); 68 ar5210SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEU argument 123 ar5210ReleaseTxQueue(struct ath_hal *ah, u_int q) argument 154 ar5210ResetTxQueue(struct ath_hal *ah, u_int q) argument 257 ar5210GetTxDP(struct ath_hal *ah, u_int q) argument 282 ar5210SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp) argument 329 ar5210UpdateTxTrigLevel(struct ath_hal *ah, HAL_BOOL bIncTrigLevel) argument 367 ar5210StartTxDma(struct ath_hal *ah, u_int q) argument 400 ar5210NumTxPending(struct ath_hal *ah, u_int q) argument 428 ar5210StopTxDma(struct ath_hal *ah, u_int q) argument 477 ar5210SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower, u_int txRate0, u_int txTries0, u_int keyIx, u_int antMode, u_int flags, u_int rtsctsRate, u_int rtsctsDuration, u_int compicvLen, u_int compivLen, u_int comp) argument 528 ar5210SetupXTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int txRate1, u_int txTries1, u_int txRate2, u_int txTries2, u_int txRate3, u_int txTries3) argument 541 ar5210IntrReqTxDesc(struct ath_hal *ah, struct ath_desc *ds) argument 549 ar5210FillTxDesc(struct ath_hal *ah, struct ath_desc *ds, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int descId, u_int qcuId, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0) argument 590 ar5210ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument 625 ar5210GetTxIntrQueue(struct ath_hal *ah, uint32_t *txqs) argument 634 ar5210GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) argument 643 ar5210SetTxDescLink(struct ath_hal *ah, void *ds, uint32_t link) argument 654 ar5210GetTxDescLink(struct ath_hal *ah, void *ds, uint32_t *link) argument 665 ar5210GetTxDescLinkPtr(struct ath_hal *ah, void *ds, uint32_t **linkptr) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9280_olc.h | 31 extern void ar9280olcInit(struct ath_hal *ah); 34 extern void ar9280olcGetPDADCs(struct ath_hal *ah, uint32_t initTxGain, 36 extern void ar9280olcGetTxGainIndex(struct ath_hal *ah, 40 extern void ar9280GetGainBoundariesAndPdadcs(struct ath_hal *ah, 46 extern HAL_BOOL ar9280SetPowerCalTable(struct ath_hal *ah, 51 extern void ar9280olcTemperatureCompensation(struct ath_hal *ah);
|
H A D | ar9280.c | 24 #include "ah.h" 39 #define AR9280(ah) ((struct ar9280State *) AH5212(ah)->ah_rfHal) 43 int16_t ar9280GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c); 46 ar9280WriteRegs(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 ar9280SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan) argument 81 OS_MARK(ah, AH_MARK_SETCHANNEL, chan->ic_freq); 83 ar5416GetChannelCenters(ah, cha 220 ar9280GetRfBank(struct ath_hal *ah, int bank) argument 232 ar9280SetRfRegs(struct ath_hal *ah, const struct ieee80211_channel *chan, uint16_t modesIndex, uint16_t *rfXpdGain) argument 245 ar9280SetPowerTable(struct ath_hal *ah, int16_t *pPowerMin, int16_t *pPowerMax, const struct ieee80211_channel *chan, uint16_t *rfXpdGain) argument 280 ar9280GetChannelMaxMinPower(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *maxPow, int16_t *minPow) argument 353 ar9280GetNoiseFloor(struct ath_hal *ah, int16_t nfarray[]) argument 396 ar9280GetNfAdjust(struct ath_hal *ah, const HAL_CHANNEL_INTERNAL *c) argument 405 ar9280RfDetach(struct ath_hal *ah) argument 415 ar9280RfAttach(struct ath_hal *ah, HAL_STATUS *status) argument 453 ar9280RfProbe(struct ath_hal *ah) argument [all...] |
H A D | ar9287_reset.c | 22 #include "ah.h" 45 ar9287SetPowerCalTable(struct ath_hal *ah, argument 55 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; 64 pdGainOverlap_t2 = (uint16_t)(MS(OS_REG_READ(ah, AR_PHY_TPCRG5), 72 AH5416(ah)->initPDADC = pRawDatasetOpenLoop->vpdPdg[0][0]; 87 OS_REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_NUM_PD_GAIN, 89 OS_REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_1, 91 OS_REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_2, 93 OS_REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_3, 103 ar9287olcGetTxGainIndex(ah, cha 127 ar9287SetPowerPerRateTable(struct ath_hal *ah, struct ar9287_eeprom *pEepData, const struct ieee80211_channel *chan, int16_t *ratesArray, uint16_t cfgCtl, uint16_t AntennaReduction, uint16_t twiceMaxRegulatoryPower, uint16_t powerLimit) argument 328 ar9287SetTransmitPower(struct ath_hal *ah, const struct ieee80211_channel *chan, uint16_t *rfXpdGain) argument 452 ar9287SetBoardValues(struct ath_hal *ah, const struct ieee80211_channel *chan) argument [all...] |
H A D | ar9285_reset.c | 27 #include "ah.h" 54 static HAL_BOOL ar9285SetPowerPerRateTable(struct ath_hal *ah, 60 static HAL_BOOL ar9285SetPowerCalTable(struct ath_hal *ah, 64 static void ar9285GetGainBoundariesAndPdadcs(struct ath_hal *ah, 72 ar9285SetTransmitPower(struct ath_hal *ah, argument 79 struct ath_hal_5212 *ahp = AH5212(ah); 88 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; 91 HALASSERT(AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER14_1); 93 AH5416(ah)->ah_ht40PowerIncForPdadc = 2; 96 OS_MEMZERO(AH5416(ah) 189 ar9285SetBoardGain(struct ath_hal *ah, const MODAL_EEP4K_HEADER *pModal, const struct ar5416eeprom_4k *eep, uint8_t txRxAttenLocal) argument 244 ar9285SetBoardValues(struct ath_hal *ah, const struct ieee80211_channel *chan) argument 396 ar9285SetPowerPerRateTable(struct ath_hal *ah, struct ar5416eeprom_4k *pEepData, const struct ieee80211_channel *chan, int16_t *ratesArray, uint16_t cfgCtl, uint16_t AntennaReduction, uint16_t twiceMaxRegulatoryPower, uint16_t powerLimit) argument 564 ar9285SetPowerCalTable(struct ath_hal *ah, struct ar5416eeprom_4k *pEepData, const struct ieee80211_channel *chan, int16_t *pTxPowerIndexOffset) argument 637 ar9285GetGainBoundariesAndPdadcs(struct ath_hal *ah, const struct ieee80211_channel *chan, CAL_DATA_PER_FREQ_4K *pRawDataSet, uint8_t * bChans, uint16_t availPiers, uint16_t tPdGainOverlap, int16_t *pMinCalPower, uint16_t * pPdGainBoundaries, uint8_t * pPDADCValues, uint16_t numXpdGains) argument [all...] |
H A D | ar9285_phy.c | 30 #include "ah.h" 43 ar9285_antdiv_comb_conf_get(struct ath_hal *ah, HAL_ANT_COMB_CONFIG *antconf) argument 47 regval = OS_REG_READ(ah, AR_PHY_MULTICHAIN_GAIN_CTL); 58 ar9285_antdiv_comb_conf_set(struct ath_hal *ah, HAL_ANT_COMB_CONFIG *antconf) argument 62 regval = OS_REG_READ(ah, AR_PHY_MULTICHAIN_GAIN_CTL); 73 OS_REG_WRITE(ah, AR_PHY_MULTICHAIN_GAIN_CTL, regval); 83 ar9285_check_div_comb(struct ath_hal *ah) argument 86 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; 94 if (! AR_SREV_KITE(ah))
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212.h | 133 void (*rfDetach)(struct ath_hal *ah); 136 uint32_t *(*getRfBank)(struct ath_hal *ah, int bank); 142 HAL_BOOL (*setPowerTable)(struct ath_hal *ah, 145 HAL_BOOL (*getChannelMaxMinPower)(struct ath_hal *ah, 361 #define IS_2317(ah) \ 362 ((AH_PRIVATE(ah)->ah_devid == AR5212_AR2317_REV1) || \ 363 (AH_PRIVATE(ah)->ah_devid == AR5212_AR2317_REV2)) 364 #define IS_2316(ah) \ 365 (AH_PRIVATE(ah)->ah_macVersion == AR_SREV_2415) 366 #define IS_2413(ah) \ [all...] |
H A D | ar5212_rfgain.c | 21 #include "ah.h" 64 ar5212InitializeGainValues(struct ath_hal *ah) argument 66 struct ath_hal_5212 *ahp = AH5212(ah); 70 if (IS_RAD5112_ANY(ah)) { 123 ar5212InvalidGainReadback(struct ath_hal *ah, GAIN_VALUES *gv) argument 128 if (IS_RAD5112_ANY(ah)) { 129 mixOvr = ar5212GetRfField(ar5212GetRfBank(ah, 7), 1, 36, 0); 140 gStep = ar5212GetRfField(ar5212GetRfBank(ah, 7), 6, 37, 0); 160 ar5212RequestRfgain(struct ath_hal *ah) argument 162 struct ath_hal_5212 *ahp = AH5212(ah); 179 ar5212IsGainAdjustNeeded(struct ath_hal *ah, const GAIN_VALUES *gv) argument 188 ar5212AdjustGain(struct ath_hal *ah, GAIN_VALUES *gv) argument 243 ar5212GetGainFCorrection(struct ath_hal *ah) argument 279 ar5212GetRfgain(struct ath_hal *ah) argument [all...] |
H A D | ar5212_xmit.c | 21 #include "ah.h" 46 ar5212UpdateTxTrigLevel(struct ath_hal *ah, HAL_BOOL bIncTrigLevel) argument 48 struct ath_hal_5212 *ahp = AH5212(ah); 58 omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL); 60 txcfg = OS_REG_READ(ah, AR_TXCFG); 70 OS_REG_WRITE(ah, AR_TXCFG, 76 ath_hal_setInterrupts(ah, omask); 86 ar5212SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo) argument 88 struct ath_hal_5212 *ahp = AH5212(ah); 89 HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah) 103 ar5212GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo) argument 121 ar5212SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *qInfo) argument 205 setTxQInterrupts(struct ath_hal *ah, HAL_TX_QUEUE_INFO *qi) argument 231 ar5212ReleaseTxQueue(struct ath_hal *ah, u_int q) argument 269 ar5212ResetTxQueue(struct ath_hal *ah, u_int q) argument 515 ar5212GetTxDP(struct ath_hal *ah, u_int q) argument 525 ar5212SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp) argument 545 ar5212StartTxDma(struct ath_hal *ah, u_int q) argument 565 ar5212NumTxPending(struct ath_hal *ah, u_int q) argument 589 ar5212StopTxDma(struct ath_hal *ah, u_int q) argument 689 ar5212SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower, u_int txRate0, u_int txTries0, u_int keyIx, u_int antMode, u_int flags, u_int rtsctsRate, u_int rtsctsDuration, u_int compicvLen, u_int compivLen, u_int comp) argument 761 ar5212SetupXTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int txRate1, u_int txTries1, u_int txRate2, u_int txTries2, u_int txRate3, u_int txTries3) argument 793 ar5212IntrReqTxDesc(struct ath_hal *ah, struct ath_desc *ds) argument 805 ar5212FillTxDesc(struct ath_hal *ah, struct ath_desc *ds, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int qcuId, u_int descId, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0) argument 877 ar5212ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument 952 ar5212GetTxIntrQueue(struct ath_hal *ah, uint32_t *txqs) argument 963 ar5212GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) argument 981 ar5212SetTxDescLink(struct ath_hal *ah, void *ds, uint32_t link) argument 989 ar5212GetTxDescLink(struct ath_hal *ah, void *ds, uint32_t *link) argument 997 ar5212GetTxDescLinkPtr(struct ath_hal *ah, void *ds, uint32_t **linkptr) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ |
H A D | ah_eeprom_v1.c | 21 #include "ah.h" 26 v1EepromGet(struct ath_hal *ah, int param, void *val) argument 28 HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom; 39 if (!ath_hal_eepromRead(ah, AR_EEPROM_MAC(i), &eeval)) { 40 HALDEBUG(ah, HAL_DEBUG_ANY, 50 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: bad mac address %s\n", 72 v1EepromSet(struct ath_hal *ah, int param, int v) argument 78 v1EepromDiag(struct ath_hal *ah, int request, argument 81 HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom; 93 v1EepromGetSpurChan(struct ath_hal *ah, in argument 102 v1EepromDetach(struct ath_hal *ah) argument 111 ath_hal_v1EepromAttach(struct ath_hal *ah) argument [all...] |
H A D | ah.c | 21 #include "ah.h" 66 struct ath_hal *ah; local 71 ah = chip->attach(devid, sc, st, sh, eepromdata, ah_config, 73 if (ah != AH_NULL) { 75 ah->ah_devid = AH_PRIVATE(ah)->ah_devid; 76 ah->ah_subvendorid = AH_PRIVATE(ah)->ah_subvendorid; 77 ah->ah_macVersion = AH_PRIVATE(ah) 89 ath_hal_mac_name(struct ath_hal *ah) argument 169 ath_hal_rfprobe(struct ath_hal *ah, HAL_STATUS *ecode) argument 183 ath_hal_rf_name(struct ath_hal *ah) argument 228 ath_hal_wait(struct ath_hal *ah, u_int reg, uint32_t mask, uint32_t val) argument 236 ath_hal_waitfor(struct ath_hal *ah, u_int reg, uint32_t mask, uint32_t val, uint32_t timeout) argument 286 ath_hal_pkt_txtime(struct ath_hal *ah, const HAL_RATE_TABLE *rates, uint32_t frameLen, uint16_t rateix, HAL_BOOL isht40, HAL_BOOL shortPreamble) argument 351 ath_hal_computetxtime(struct ath_hal *ah, const HAL_RATE_TABLE *rates, uint32_t frameLen, uint16_t rateix, HAL_BOOL shortPreamble) argument 430 ath_hal_get_curmode(struct ath_hal *ah, const struct ieee80211_channel *chan) argument 484 ath_hal_chan2wmode(struct ath_hal *ah, const struct ieee80211_channel *chan) argument 506 ath_hal_mac_clks(struct ath_hal *ah, u_int usecs) argument 534 ath_hal_mac_usec(struct ath_hal *ah, u_int clks) argument 566 ath_hal_setupratetable(struct ath_hal *ah, HAL_RATE_TABLE *rt) argument 599 ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t *result) argument 800 ath_hal_setcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t setting, HAL_STATUS *status) argument 849 ath_hal_getregdump(struct ath_hal *ah, const HAL_REGRANGE *regs, void *dstbuf, int space) argument 871 ath_hal_setregs(struct ath_hal *ah, const HAL_REGWRITE *regs, int space) argument 880 ath_hal_getdiagstate(struct ath_hal *ah, int request, const void *args, uint32_t argsize, void **result, uint32_t *resultsize) argument 955 ath_hal_setTxQProps(struct ath_hal *ah, HAL_TX_QUEUE_INFO *qi, const HAL_TXQ_INFO *qInfo) argument 1016 ath_hal_getTxQProps(struct ath_hal *ah, HAL_TXQ_INFO *qInfo, const HAL_TX_QUEUE_INFO *qi) argument 1054 ath_hal_getChanNoise(struct ath_hal *ah, const struct ieee80211_channel *chan) argument 1084 ath_hal_get_mimo_chan_noise(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *nf_ctl, int16_t *nf_ext) argument 1155 ath_hal_process_noisefloor(struct ath_hal *ah) argument 1212 ath_hal_ini_write(struct ath_hal *ah, const HAL_INI_ARRAY *ia, int col, int regWr) argument 1242 ath_hal_ini_bank_write(struct ath_hal *ah, const HAL_INI_ARRAY *ia, const uint32_t data[], int regWr) argument 1370 ath_hal_adjusttsf(struct ath_hal *ah, int32_t tsfdelta) argument 1380 ath_hal_setcca(struct ath_hal *ah, int ena) argument 1392 ath_hal_getcca(struct ath_hal *ah) argument 1409 ath_hal_EepromDataRead(struct ath_hal *ah, u_int off, uint16_t *data) argument 1431 ath_hal_mhz2ieee_2ghz(struct ath_hal *ah, int freq) argument 1448 ath_hal_survey_clear(struct ath_hal *ah) argument 1459 ath_hal_survey_add_sample(struct ath_hal *ah, HAL_SURVEY_SAMPLE *hs) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_recv.c | 21 #include "ah.h" 33 ar5416GetRxFilter(struct ath_hal *ah) argument 35 uint32_t bits = OS_REG_READ(ah, AR_RX_FILTER); 36 uint32_t phybits = OS_REG_READ(ah, AR_PHY_ERR); 49 ar5416SetRxFilter(struct ath_hal *ah, u_int32_t bits) argument 53 OS_REG_WRITE(ah, AR_RX_FILTER, (bits & 0xffff)); 59 OS_REG_WRITE(ah, AR_PHY_ERR, phybits); 61 OS_REG_WRITE(ah, AR_RXCFG, 62 OS_REG_READ(ah, AR_RXCFG) | AR_RXCFG_ZLFDMA); 64 OS_REG_WRITE(ah, AR_RXCF 73 ar5416StopDmaReceive(struct ath_hal *ah) argument 107 ar5416StartPcuReceive(struct ath_hal *ah) argument 127 ar5416StopPcuReceive(struct ath_hal *ah) argument 140 ar5416SetupRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t size, u_int flags) argument 169 ar5416ProcRxDesc(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...] |
H A D | ar5416_radar.c | 20 #include "ah.h" 54 ar5416GetDfsDefaultThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument 81 ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument 85 val = OS_REG_READ(ah, AR_PHY_RADAR_0); 96 val = OS_REG_READ(ah, AR_PHY_RADAR_1); 101 pe->pe_extchannel = !! (OS_REG_READ(ah, AR_PHY_RADAR_EXT) & 104 pe->pe_usefir128 = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) & 106 pe->pe_blockradar = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) & 108 pe->pe_enmaxrssi = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) & 111 (OS_REG_READ(ah, AR_PHY_RADAR_ 123 ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument 233 ar5416ProcessRadarEvent(struct ath_hal *ah, struct ath_rx_status *rxs, uint64_t fulltsf, const char *buf, HAL_DFS_EVENT *event) argument 427 ar5416IsFastClockEnabled(struct ath_hal *ah) argument [all...] |
H A D | ar5416_xmit.c | 21 #include "ah.h" 34 ar5416StopTxDma(struct ath_hal *ah, u_int q) argument 40 HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues); 42 HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE); 44 OS_REG_WRITE(ah, AR_Q_TXD, 1 << q); 46 if (ar5212NumTxPending(ah, q) == 0) 52 HALDEBUG(ah, HAL_DEBUG_ANY, 54 HALDEBUG(ah, HAL_DEBUG_ANY, 56 OS_REG_READ(ah, AR_QSTS(q)), OS_REG_READ(ah, AR_Q_TX 159 ar5416RateToRateTable(struct ath_hal *ah, uint8_t rate, HAL_BOOL is_ht40) argument 224 ar5416GetTxRatePower(struct ath_hal *ah, uint8_t rate, uint8_t tx_chainmask, uint16_t txPower, HAL_BOOL is_ht40) argument 322 ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower, u_int txRate0, u_int txTries0, u_int keyIx, u_int antMode, u_int flags, u_int rtsctsRate, u_int rtsctsDuration, u_int compicvLen, u_int compivLen, u_int comp) argument 430 ar5416SetupXTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int txRate1, u_int txTries1, u_int txRate2, u_int txTries2, u_int txRate3, u_int txTries3) argument 460 ar5416FillTxDesc(struct ath_hal *ah, struct ath_desc *ds, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int descId, u_int qcuId, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0) argument 524 ar5416ChainTxDesc(struct ath_hal *ah, struct ath_desc *ds, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int keyIx, HAL_CIPHER cipher, uint8_t delims, HAL_BOOL firstSeg, HAL_BOOL lastSeg, HAL_BOOL lastAggr) argument 619 ar5416SetupFirstTxDesc(struct ath_hal *ah, struct ath_desc *ds, u_int aggrLen, u_int flags, u_int txPower, u_int txRate0, u_int txTries0, u_int antMode, u_int rtsctsRate, u_int rtsctsDuration) argument 680 ar5416SetupLastTxDesc(struct ath_hal *ah, struct ath_desc *ds, const struct ath_desc *ds0) argument 718 ar5416ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument 831 ar5416SetGlobalTxTimeout(struct ath_hal *ah, u_int tu) argument 848 ar5416GetGlobalTxTimeout(struct ath_hal *ah) argument 874 ar5416Set11nRateScenario(struct ath_hal *ah, struct ath_desc *ds, u_int durUpdateEn, u_int rtsctsRate, HAL_11N_RATE_SERIES series[], u_int nseries, u_int flags) argument 978 ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds, u_int aggrLen, u_int numDelims) argument 1013 ar5416Set11nAggrMiddle(struct ath_hal *ah, struct ath_desc *ds, u_int numDelims) argument 1032 ar5416Set11nAggrLast(struct ath_hal *ah, struct ath_desc *ds) argument 1042 ar5416Clr11nAggr(struct ath_hal *ah, struct ath_desc *ds) argument 1052 ar5416Set11nVirtualMoreFrag(struct ath_hal *ah, struct ath_desc *ds, u_int vmf) argument 1067 ar5416Set11nBurstDuration(struct ath_hal *ah, struct ath_desc *ds, u_int burstDuration) argument 1098 ar5416GetTxCompletionRates(struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries) argument 1124 ar5416SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *qInfo) argument 1216 setTxQInterrupts(struct ath_hal *ah, HAL_TX_QUEUE_INFO *qi) argument 1245 ar5416ResetTxQueue(struct ath_hal *ah, u_int q) argument [all...] |
/freebsd-11-stable/sys/netinet/libalias/ |
H A D | alias_dummy.c | 60 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah); 63 fingerprint(struct libalias *la, struct alias_data *ah) argument 70 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL || 71 ah->maxpktsize == 0) 77 if (ntohs(*ah->dport) == 123 78 || ntohs(*ah->sport) == 456) 89 protohandler(struct libalias *la, struct ip *pip, struct alias_data *ah) argument 92 AliasHandleDummy(la, pip, ah); 149 AliasHandleDummy(struct libalias *la, struct ip *ip, struct alias_data *ah) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5312_eeprom.c | 24 #include "ah.h" 35 ar5312EepromRead(struct ath_hal *ah, u_int off, uint16_t *dataIn) argument 38 const char *eepromAddr = AR5312_RADIOCONFIG(ah);
|
/freebsd-11-stable/stand/libsa/ |
H A D | arp.c | 75 struct ether_arp *ah; local 103 ah = &wbuf.data.arp; 104 ah->arp_hrd = htons(ARPHRD_ETHER); 105 ah->arp_pro = htons(ETHERTYPE_IP); 106 ah->arp_hln = sizeof(ah->arp_sha); /* hardware address length */ 107 ah->arp_pln = sizeof(ah->arp_spa); /* protocol address length */ 108 ah->arp_op = htons(ARPOP_REQUEST); 109 MACPY(d->myea, ah 166 struct ether_arp *ah; local [all...] |