Lines Matching refs:ah

21 #include "ah.h"
33 ar5211GetRxDP(struct ath_hal *ah)
35 return OS_REG_READ(ah, AR_RXDP);
42 ar5211SetRxDP(struct ath_hal *ah, uint32_t rxdp)
44 OS_REG_WRITE(ah, AR_RXDP, rxdp);
45 HALASSERT(OS_REG_READ(ah, AR_RXDP) == rxdp);
53 ar5211EnableReceive(struct ath_hal *ah)
55 OS_REG_WRITE(ah, AR_CR, AR_CR_RXE);
62 ar5211StopDmaReceive(struct ath_hal *ah)
64 OS_REG_WRITE(ah, AR_CR, AR_CR_RXD); /* Set receive disable bit */
65 if (!ath_hal_wait(ah, AR_CR, AR_CR_RXE, 0)) {
67 ath_hal_printf(ah, "%s failed to stop in 10ms\n"
70 , OS_REG_READ(ah, AR_CR)
71 , OS_REG_READ(ah, AR_DIAG_SW)
84 ar5211StartPcuReceive(struct ath_hal *ah)
86 OS_REG_WRITE(ah, AR_DIAG_SW,
87 OS_REG_READ(ah, AR_DIAG_SW) & ~(AR_DIAG_SW_DIS_RX));
94 ar5211StopPcuReceive(struct ath_hal *ah)
96 OS_REG_WRITE(ah, AR_DIAG_SW,
97 OS_REG_READ(ah, AR_DIAG_SW) | AR_DIAG_SW_DIS_RX);
105 ar5211SetMulticastFilter(struct ath_hal *ah, uint32_t filter0, uint32_t filter1)
107 OS_REG_WRITE(ah, AR_MCAST_FIL0, filter0);
108 OS_REG_WRITE(ah, AR_MCAST_FIL1, filter1);
115 ar5211ClrMulticastFilterIndex(struct ath_hal *ah, uint32_t ix)
122 val = OS_REG_READ(ah, AR_MCAST_FIL1);
123 OS_REG_WRITE(ah, AR_MCAST_FIL1, (val &~ (1<<(ix-32))));
125 val = OS_REG_READ(ah, AR_MCAST_FIL0);
126 OS_REG_WRITE(ah, AR_MCAST_FIL0, (val &~ (1<<ix)));
135 ar5211SetMulticastFilterIndex(struct ath_hal *ah, uint32_t ix)
142 val = OS_REG_READ(ah, AR_MCAST_FIL1);
143 OS_REG_WRITE(ah, AR_MCAST_FIL1, (val | (1<<(ix-32))));
145 val = OS_REG_READ(ah, AR_MCAST_FIL0);
146 OS_REG_WRITE(ah, AR_MCAST_FIL0, (val | (1<<ix)));
155 ar5211GetRxFilter(struct ath_hal *ah)
157 return OS_REG_READ(ah, AR_RX_FILTER);
164 ar5211SetRxFilter(struct ath_hal *ah, uint32_t bits)
166 OS_REG_WRITE(ah, AR_RX_FILTER, bits);
175 ar5211SetupRxDesc(struct ath_hal *ah, struct ath_desc *ds,
183 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: buffer size %u too large\n",
203 ar5211ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds,
217 if ((ands->ds_status1 & AR_Done) == 0 && OS_REG_READ(ah, AR_RXDP) == pa)