Lines Matching refs:ah

22 static void ar9002_hw_rx_enable(struct ath_hw *ah)
24 REG_WRITE(ah, AR_CR, AR_CR_RXE(ah));
32 static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked,
37 struct ath9k_hw_capabilities *pCap = &ah->caps;
40 struct ath_common *common = ath9k_hw_common(ah);
42 if (!AR_SREV_9100(ah)) {
43 if (REG_READ(ah, AR_INTR_ASYNC_CAUSE(ah)) & AR_INTR_MAC_IRQ) {
44 if ((REG_READ(ah, AR_RTC_STATUS(ah)) & AR_RTC_STATUS_M(ah))
46 isr = REG_READ(ah, AR_ISR);
50 sync_cause = REG_READ(ah, AR_INTR_SYNC_CAUSE(ah)) &
59 isr = REG_READ(ah, AR_ISR);
65 isr2 = REG_READ(ah, AR_ISR_S2);
82 REG_WRITE(ah, AR_ISR_S2, isr2);
88 isr = REG_READ(ah, AR_ISR_RAC);
109 s0_s = REG_READ(ah, AR_ISR_S0_S);
110 s1_s = REG_READ(ah, AR_ISR_S1_S);
112 s0_s = REG_READ(ah, AR_ISR_S0);
113 REG_WRITE(ah, AR_ISR_S0, s0_s);
114 s1_s = REG_READ(ah, AR_ISR_S1);
115 REG_WRITE(ah, AR_ISR_S1, s1_s);
123 ah->intr_txqs = MS(s0_s, AR_ISR_S0_QCU_TXOK);
124 ah->intr_txqs |= MS(s0_s, AR_ISR_S0_QCU_TXDESC);
125 ah->intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXERR);
126 ah->intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXEOL);
137 if (!AR_SREV_9100(ah) && (isr & AR_ISR_GENTMR)) {
141 s5_s = REG_READ(ah, AR_ISR_S5_S(ah));
143 s5_s = REG_READ(ah, AR_ISR_S5);
146 ah->intr_gen_timer_trigger =
149 ah->intr_gen_timer_thresh =
152 if (ah->intr_gen_timer_trigger)
160 REG_WRITE(ah, AR_ISR_S5, s5_s);
166 REG_WRITE(ah, AR_ISR, isr);
167 REG_READ(ah, AR_ISR);
170 if (AR_SREV_9100(ah))
195 REG_WRITE(ah, AR_RC, AR_RC_HOSTIF);
196 REG_WRITE(ah, AR_RC, 0);
204 REG_WRITE(ah, AR_INTR_SYNC_CAUSE_CLR(ah), sync_cause);
205 (void) REG_READ(ah, AR_INTR_SYNC_CAUSE_CLR(ah));
212 ar9002_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
229 if (AR_SREV_9285(ah)) {
316 static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds,
356 ath9k_hw_updatetxtriglevel(ah, true);
365 ath9k_hw_updatetxtriglevel(ah, true);
369 ath9k_hw_updatetxtriglevel(ah, true);
388 static int ar9002_hw_get_duration(struct ath_hw *ah, const void *ds, int index)
406 void ath9k_hw_setuprxdesc(struct ath_hw *ah, struct ath_desc *ds,
419 void ar9002_hw_attach_mac_ops(struct ath_hw *ah)
421 struct ath_hw_ops *ops = ath9k_hw_ops(ah);