|
#define | ito64(x) |
|
#define | INCR(_l, _sz) |
|
#define | DECR(_l,_sz) |
|
#define | TSF_TO_TU(_h, _l) ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10)) |
|
#define | ATH_TXQ_SETUP(sc, i) ((sc)->tx.txqsetup & (1<<i)) |
|
#define | ATH_TXBUF_RESET(_bf) |
|
#define | ATH_RXBUF_RESET(_bf) |
|
#define | bf_isampdu(bf) (bf->bf_state.bf_type & BUF_AMPDU) |
|
#define | bf_isaggr(bf) (bf->bf_state.bf_type & BUF_AGGR) |
|
#define | ATH_TXSTATUS_RING_SIZE 512 |
|
#define | DS2PHYS(_dd, _ds) ((_dd)->dd_desc_paddr + ((caddr_t)(_ds) - (caddr_t)(_dd)->dd_desc)) |
|
#define | ATH_DESC_4KB_BOUND_CHECK(_daddr) ((((_daddr) & 0xFFF) > 0xF7F) ? 1 : 0) |
|
#define | ATH_DESC_4KB_BOUND_NUM_SKIPPED(_len) ((_len) / 4096) |
|
#define | ATH_RXBUF 512 |
|
#define | ATH_TXBUF 512 |
|
#define | ATH_TXBUF_RESERVE 5 |
|
#define | ATH_MAX_QDEPTH (ATH_TXBUF / 4 - ATH_TXBUF_RESERVE) |
|
#define | ATH_TXMAXTRY 13 |
|
#define | TID_TO_WME_AC(_tid) |
|
#define | ATH_AGGR_DELIM_SZ 4 |
|
#define | ATH_AGGR_MINPLEN 256 /* in bytes, minimum packet length */ |
|
#define | ATH_AGGR_ENCRYPTDELIM 10 |
|
#define | ATH_AGGR_MIN_QDEPTH 2 |
|
#define | ATH_AMPDU_SUBFRAME_DEFAULT 32 |
|
#define | IEEE80211_SEQ_SEQ_SHIFT 4 |
|
#define | IEEE80211_SEQ_MAX 4096 |
|
#define | IEEE80211_WEP_IVLEN 3 |
|
#define | IEEE80211_WEP_KIDLEN 1 |
|
#define | IEEE80211_WEP_CRCLEN 4 |
|
#define | IEEE80211_MAX_MPDU_LEN |
|
#define | ATH_BA_ISSET(_bm, _n) |
|
#define | ATH_BA_INDEX(_st, _seq) (((_seq) - (_st)) & (IEEE80211_SEQ_MAX - 1)) |
|
#define | ATH_BA_INDEX2SEQ(_seq, _offset) (((_seq) + (_offset)) & (IEEE80211_SEQ_MAX - 1)) |
|
#define | ATH_AGGR_GET_NDELIM(_len) |
|
#define | BAW_WITHIN(_start, _bawsz, _seqno) ((((_seqno) - (_start)) & 4095) < (_bawsz)) |
|
#define | ATH_AN_2_TID(_an, _tidno) (&(_an)->tid[(_tidno)]) |
|
#define | IS_CCK_RATE(rate) ((rate >= 0x18) && (rate <= 0x1e)) |
|
#define | ATH_TX_COMPLETE_POLL_INT 1000 |
|
#define | ATH_TXFIFO_DEPTH 8 |
|
#define | AGGR_CLEANUP BIT(1) |
|
#define | AGGR_ADDBA_COMPLETE BIT(2) |
|
#define | AGGR_ADDBA_PROGRESS BIT(3) |
|
#define | ATH_TX_ERROR 0x01 |
|
#define | BSTUCK_THRESH 9 |
|
#define | ATH_BCBUF 8 |
|
#define | ATH_DEFAULT_BINTVAL 100 /* TU */ |
|
#define | ATH_DEFAULT_BMISS_LIMIT 10 |
|
#define | IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) |
|
#define | ATH_STA_SHORT_CALINTERVAL 1000 /* 1 second */ |
|
#define | ATH_AP_SHORT_CALINTERVAL 100 /* 100 ms */ |
|
#define | ATH_ANI_POLLINTERVAL_OLD 100 /* 100 ms */ |
|
#define | ATH_ANI_POLLINTERVAL_NEW 1000 /* 1000 ms */ |
|
#define | ATH_LONG_CALINTERVAL_INT 1000 /* 1000 ms */ |
|
#define | ATH_LONG_CALINTERVAL 30000 /* 30 seconds */ |
|
#define | ATH_RESTART_CALINTERVAL 1200000 /* 20 minutes */ |
|
#define | ATH_PAPRD_TIMEOUT 100 /* msecs */ |
|
#define | ATH_PLL_WORK_INTERVAL 100 |
|
#define | ATH_LED_PIN_DEF 1 |
|
#define | ATH_LED_PIN_9287 8 |
|
#define | ATH_LED_PIN_9300 10 |
|
#define | ATH_LED_PIN_9485 6 |
|
#define | ATH_LED_PIN_9462 4 |
|
#define | ATH_ANT_RX_CURRENT_SHIFT 4 |
|
#define | ATH_ANT_RX_MAIN_SHIFT 2 |
|
#define | ATH_ANT_RX_MASK 0x3 |
|
#define | ATH_ANT_DIV_COMB_SHORT_SCAN_INTR 50 |
|
#define | ATH_ANT_DIV_COMB_SHORT_SCAN_PKTCOUNT 0x100 |
|
#define | ATH_ANT_DIV_COMB_MAX_PKTCOUNT 0x200 |
|
#define | ATH_ANT_DIV_COMB_INIT_COUNT 95 |
|
#define | ATH_ANT_DIV_COMB_MAX_COUNT 100 |
|
#define | ATH_ANT_DIV_COMB_ALT_ANT_RATIO 30 |
|
#define | ATH_ANT_DIV_COMB_ALT_ANT_RATIO2 20 |
|
#define | ATH_ANT_DIV_COMB_LNA1_LNA2_SWITCH_DELTA -1 |
|
#define | ATH_ANT_DIV_COMB_LNA1_DELTA_HI -4 |
|
#define | ATH_ANT_DIV_COMB_LNA1_DELTA_MID -2 |
|
#define | ATH_ANT_DIV_COMB_LNA1_DELTA_LOW 2 |
|
#define | DEFAULT_CACHELINE 32 |
|
#define | ATH_REGCLASSIDS_MAX 10 |
|
#define | ATH_CABQ_READY_TIME 80 /* % of beacon interval */ |
|
#define | ATH_MAX_SW_RETRIES 30 |
|
#define | ATH_CHAN_MAX 255 |
|
#define | ATH_TXPOWER_MAX 100 /* .5 dBm units */ |
|
#define | ATH_RATE_DUMMY_MARKER 0 |
|
#define | PS_WAIT_FOR_BEACON BIT(0) |
|
#define | PS_WAIT_FOR_CAB BIT(1) |
|
#define | PS_WAIT_FOR_PSPOLL_DATA BIT(2) |
|
#define | PS_WAIT_FOR_TX_ACK BIT(3) |
|
#define | PS_BEACON_SYNC BIT(4) |
|
|
int | ath_descdma_setup (struct ath_softc *sc, struct ath_descdma *dd, struct list_head *head, const char *name, int nbuf, int ndesc, bool is_tx) |
|
void | ath_descdma_cleanup (struct ath_softc *sc, struct ath_descdma *dd, struct list_head *head) |
|
int | ath_startrecv (struct ath_softc *sc) |
|
bool | ath_stoprecv (struct ath_softc *sc) |
|
void | ath_flushrecv (struct ath_softc *sc) |
|
u32 | ath_calcrxfilter (struct ath_softc *sc) |
|
int | ath_rx_init (struct ath_softc *sc, int nbufs) |
|
void | ath_rx_cleanup (struct ath_softc *sc) |
|
int | ath_rx_tasklet (struct ath_softc *sc, int flush, bool hp) |
|
struct ath_txq * | ath_txq_setup (struct ath_softc *sc, int qtype, int subtype) |
|
void | ath_txq_lock (struct ath_softc *sc, struct ath_txq *txq) |
|
void | ath_txq_unlock (struct ath_softc *sc, struct ath_txq *txq) |
|
void | ath_txq_unlock_complete (struct ath_softc *sc, struct ath_txq *txq) |
|
void | ath_tx_cleanupq (struct ath_softc *sc, struct ath_txq *txq) |
|
bool | ath_drain_all_txq (struct ath_softc *sc, bool retry_tx) |
|
void | ath_draintxq (struct ath_softc *sc, struct ath_txq *txq, bool retry_tx) |
|
void | ath_tx_node_init (struct ath_softc *sc, struct ath_node *an) |
|
void | ath_tx_node_cleanup (struct ath_softc *sc, struct ath_node *an) |
|
void | ath_txq_schedule (struct ath_softc *sc, struct ath_txq *txq) |
|
int | ath_tx_init (struct ath_softc *sc, int nbufs) |
|
void | ath_tx_cleanup (struct ath_softc *sc) |
|
int | ath_txq_update (struct ath_softc *sc, int qnum, struct ath9k_tx_queue_info *q) |
|
void | ath_update_max_aggr_framelen (struct ath_softc *sc, int queue, int txop) |
|
int | ath_tx_start (struct ieee80211_hw *hw, struct sk_buff *skb, struct ath_tx_control *txctl) |
|
void | ath_tx_tasklet (struct ath_softc *sc) |
|
void | ath_tx_edma_tasklet (struct ath_softc *sc) |
|
int | ath_tx_aggr_start (struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid, u16 *ssn) |
|
void | ath_tx_aggr_stop (struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid) |
|
void | ath_tx_aggr_resume (struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid) |
|
void | ath_tx_aggr_wakeup (struct ath_softc *sc, struct ath_node *an) |
|
void | ath_tx_aggr_sleep (struct ieee80211_sta *sta, struct ath_softc *sc, struct ath_node *an) |
|
void | ath9k_beacon_tasklet (unsigned long data) |
|
bool | ath9k_allow_beacon_config (struct ath_softc *sc, struct ieee80211_vif *vif) |
|
void | ath9k_beacon_config (struct ath_softc *sc, struct ieee80211_vif *vif, u32 changed) |
|
void | ath9k_beacon_assign_slot (struct ath_softc *sc, struct ieee80211_vif *vif) |
|
void | ath9k_beacon_remove_slot (struct ath_softc *sc, struct ieee80211_vif *vif) |
|
void | ath9k_set_tsfadjust (struct ath_softc *sc, struct ieee80211_vif *vif) |
|
void | ath9k_set_beacon (struct ath_softc *sc) |
|
void | ath_tx_complete_poll_work (struct work_struct *work) |
|
void | ath_reset_work (struct work_struct *work) |
|
void | ath_hw_check (struct work_struct *work) |
|
void | ath_hw_pll_work (struct work_struct *work) |
|
void | ath_rx_poll (unsigned long data) |
|
void | ath_start_rx_poll (struct ath_softc *sc, u8 nbeacon) |
|
void | ath_paprd_calibrate (struct work_struct *work) |
|
void | ath_ani_calibrate (unsigned long data) |
|
void | ath_start_ani (struct ath_softc *sc) |
|
void | ath_stop_ani (struct ath_softc *sc) |
|
void | ath_check_ani (struct ath_softc *sc) |
|
int | ath_update_survey_stats (struct ath_softc *sc) |
|
void | ath_update_survey_nf (struct ath_softc *sc, int channel) |
|
void | ath9k_queue_reset (struct ath_softc *sc, enum ath_reset_type type) |
|
void | ath_ant_comb_scan (struct ath_softc *sc, struct ath_rx_status *rs) |
|
void | ath_ant_comb_update (struct ath_softc *sc) |
|
void | ath9k_tasklet (unsigned long data) |
|
int | ath_cabq_update (struct ath_softc *) |
|
u8 | ath9k_parse_mpdudensity (u8 mpdudensity) |
|
irqreturn_t | ath_isr (int irq, void *dev) |
|
int | ath9k_init_device (u16 devid, struct ath_softc *sc, const struct ath_bus_ops *bus_ops) |
|
void | ath9k_deinit_device (struct ath_softc *sc) |
|
void | ath9k_set_hw_capab (struct ath_softc *sc, struct ieee80211_hw *hw) |
|
void | ath9k_reload_chainmask_settings (struct ath_softc *sc) |
|
bool | ath9k_uses_beacons (int type) |
|
void | ath9k_ps_wakeup (struct ath_softc *sc) |
|
void | ath9k_ps_restore (struct ath_softc *sc) |
|
u8 | ath_txchainmask_reduction (struct ath_softc *sc, u8 chainmask, u32 rate) |
|
void | ath_start_rfkill_poll (struct ath_softc *sc) |
|
void | ath9k_rfkill_poll_state (struct ieee80211_hw *hw) |
|
void | ath9k_calculate_iter_data (struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ath9k_vif_iter_data *iter_data) |
|